English 中文(简体)
如何汇编 Helloworld with Anders Code
原标题:How to compile Helloworld with Android source code

I wanted to run a helloworld application with the AOSP and see it in emulator. [ Not through Android SDK setup]

I followed the steps in http://source.android.com/source/download.html and compiled successfully the full code from / directory.

I could see contacts.apk, camera.apk all applications apk in ~/mydroid/out/target/product/generic/system/app.

我尝试了两件事。

1 - Went to /package/apps folder. Took a helloworld application( helloworld folder which was created in android-sdk), and copied a Android.mk file from Launcher2 folder, kept my new name for application and placed the folder in packages/app folder and compiled at /. I couldnt see .apk file created for ~/mydroid/out/target/product/generic/system/app.

2 - I changed the package name for Launcher2 in packages/app folder in Android,mk file and compiled at root. I couldnt see a new apk created on the new packaged name under ~/mydroid/out/target/product/generic/system/app.

I tried several times with changes in activity names, application names in manifest.xml file. Nothing reflects.But it is sure, both helloworld, and change in package name is getting picked up while compiling. I could see intermediate classes getting created. ~/mydroid/out/target/common/obj/APPS/manifirst_intermediates/src/com/android/mani --> manifirst is like a helloworld which i created and run. ~/mydroid/out/target/common/obj/APPS/Launcher2_intermediates/src/com/android/launcher

是否有任何人可以同意将简单的“Helloworld”方案汇编成册?

Thanks, Mani

最佳回答

<代码>Android.mk from any other protocol and only to change the LOCAL_PACKAGE_NAME and make that onecomper name in Pack/apps.

另外,在清单中添加以下内容:

在对您进行汇编之后,应当找到你所期望的灯塔。

问题回答

暂无回答




相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签