Re: [android-building] calculator app

150 views
Skip to first unread message

Jean-Baptiste Queru

unread,
May 20, 2013, 3:40:58 PM5/20/13
to android-...@googlegroups.com
As it stands, it only contains files that are necessary to build it as part of the whole Android, there are no files in there that allow to build it as an IDE project. Because it depends on 3 static libraries, it might take some effort to replicate the setup in an IDE.

JBQ


On Mon, May 20, 2013 at 12:11 PM, bob smith <b...@coolfone.comze.com> wrote:
To further my understanding of Android, I am attempting to build the calculator app.

I basically created a directory, and ran a command like this:


However, I can't figure out how to build it.  

I don't think there are the right project files to bring it into Eclipse.

I managed to get it into Android Studio but ran into a plethora of errors.

Can someone help me see what IDE this is designed for and/or how to build it with minimal hassle?

Thanks.

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jean-Baptiste M. "JBQ" Queru
Technical Lead, Android Open Source Project, Google.

Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning.

Magnus Bäck

unread,
May 20, 2013, 3:41:52 PM5/20/13
to android-...@googlegroups.com
On Monday, May 20, 2013 at 15:11 EDT,
bob smith <b...@coolfone.comze.com> wrote:

> To further my understanding of Android, I am attempting to build the
> calculator app.
>
> I basically created a directory, and ran a command like this:
>
> git clone https://android.googlesource.com/platform/packages/apps/Calculator
>
> However, I can't figure out how to build it.
>
> I don't think there are the right project files to bring it into
> Eclipse.
>
> I managed to get it into Android Studio but ran into a plethora of
> errors.
>
> Can someone help me see what IDE this is designed for and/or how to
> build it with minimal hassle?

That application is designed to be built together with the full Android
platform. It might be possible to build it against an SDK via Eclipse,
but it's going to take some work. If your goal is to experiment with
Android app development rather than build this app in particular, I
suggest you just find another example app.

--
Magnus Bäck
ba...@google.com

Magnus Bäck

unread,
May 23, 2013, 4:31:45 PM5/23/13
to android-...@googlegroups.com
On Thursday, May 23, 2013 at 16:14 EDT,
bob smith <b...@coolfone.comze.com> wrote:

> Any suggestions as to which apps might be easy for me to get working?

How about http://developer.android.com/training/index.html ?

> I tried several but ran into many hardships.

Unless you're more specific than that we can't help out.

--
Magnus Bäck
ba...@google.com

Magnus Bäck

unread,
May 24, 2013, 10:25:33 AM5/24/13
to android-...@googlegroups.com
On Thursday, May 23, 2013 at 20:44 EDT,
bob smith <b...@coolfone.comze.com> wrote:

> I picked the Browser App next.
>
> Here are some of the errors I get when trying to build it:
>
> BrowserBookmarksAdapter.java:23: package
> android.provider.BrowserContract does not exist
>
> ThreadedCursorAdapter.java:24: cannot find symbol
> symbol : class SystemProperties
> location: package android.os
>
>
> BaseUi.java:49: cannot find symbol
> symbol : class WebViewClassic
> location: package android.webkit
>
> Have you ever built any of the built-in apps as a standalone?

I'd expect few of them to be buildable outside of the platform build.

If you only want an example application to learn Android, ignore the
stock applications altogether. I could've been clearer on this before.
There must be thousands of other examples that you can follow, like
for example the official training material at developer.android.com.

[...]

--
Magnus Bäck
ba...@google.com

Tom Brennan

unread,
May 24, 2013, 11:13:10 AM5/24/13
to android-...@googlegroups.com
Just loading up the individual sources for each package into eclipse will pain you more!!!

There is a reason why having to initialize the build environment (. build/envsetup.sh first) and lunch then make last - to prepare the target for the output of generated object code. Eclipse knows squat, zero, about that hence build errors if you attempt to bring them in as the dependencies are all pointing to the target's generated object codes etc.


On Fri, May 24, 2013 at 3:47 PM, Tom Brennan <tommie....@gmail.com> wrote:
You need to build the entire AOSP source first as per the instructions on building the Android source, then issue `mm Calculator` or `mm Browser` which will pull in the compiled frameworks etc from the previous build of AOSP.


Reply all
Reply to author
Forward
0 new messages