[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
Dear mani Do you develop your application in Eclipse SDK? If so, you need to add .jar that you want under out\target\common\obj\JAVA_LIBRARIES\framework_intermediates\ to your Eclipse project. I guess that com.android.internal.R.class is not include in android.jar released by Google You may make and add .jar if you want to use other APIs not included in android.jar If not, I can't help you.. I don't know the way... Good luck.. Binggrae. On Sep 14, 12:03 pm, mani smanikanda...@gmail.com wrote: I gotta one more question if you could assist me with that. I couldnot find where resource files for ex. import com.android.internal.R; inflater.inflate(R.layout.keyguard_screen_tab_unlock, this, true); If you see the files under /mydroid/frameworks/policies/base/phone/com/android/internal/policy/ impl/LockScreen.java. I tried searching for these android internal Resource files. I couldnt find out. Do you know where these layout.xml files are present. From which this com.android.internal.R points to ? On Sep 14, 9:18 am, Binggrae bangg...@gmail.com wrote: For your additional information. All packages included in system.img are written on build/target/product/generic.mk I'm not sure.. but You may modify generic.mk for inserting your apk into your emulator automatically when building totally. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
Thanks Binggrae...!! Finally .apk file is generated. !! Why is it generated of engineering variants not for other variants...? Any idea ? And when i restarted the emulator i couldnt see the apk picked up automatically...!! I need to install through adb install command. Is it expected ? if the .apk is present in /out/target/product/generic/system/app/ hellomani.apk wont the emulator automatically pick it up ? - mani On Sep 13, 8:45 am, Binggrae bangg...@gmail.com wrote: Sorry it' not helpful.. I'm not sure the following is helpful but recommend try it (Maybe you've tried it already) ~/froyo$ source build/envsetup.sh including device/htc/dream/vendorsetup.sh including device/htc/passion/vendorsetup.sh including device/htc/sapphire/vendorsetup.sh ~/froyo$ choosecombo Build for the simulator or the device? 1. Device 2. Simulator Which would you like? [1] 1 Build type choices are: 1. release 2. debug Which would you like? [1] 1 Which product would you like? [generic] generic Variant choices are: 1. user 2. userdebug 3. eng Which would you like? [eng] 3 PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=2.2 TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR=false TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=MASTER ~/froyo$ cd packages/apps/HelloWorld$ ~/froyo/packages/apps/HelloWorld$ mm . . . Install: out/target/product/generic/system/app/HelloWorld.apk Good luck.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
I am happy to hear that you generated .apk 1. If you want to generate .apk for other variants you may write the following line in your Android.mk LOCAL_MODULE_TAGS := user --- For reference : This variable controls what build flavors the package gets included in. For example: user: include this in user/userdebug builds eng: include this in eng builds tests: the target is a testing target and makes it available for tests optional: don't include this - 2. If you want your .apk to include into system.img you may generate .apk and then $ mksys this command will make system.img including all apks under /out/ target/product/generic/system/app/ I guess the system.img will be loaded on your emulator. hopefully all your things will be done. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
For your additional information. All packages included in system.img are written on build/target/product/generic.mk I'm not sure.. but You may modify generic.mk for inserting your apk into your emulator automatically when building totally. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
This is so informative...for naive beginners in AOSP...!! Thanks a lot.. i will try out all these...!! On Sep 14, 9:18 am, Binggrae bangg...@gmail.com wrote: For your additional information. All packages included in system.img are written on build/target/product/generic.mk I'm not sure.. but You may modify generic.mk for inserting your apk into your emulator automatically when building totally. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
I gotta one more question if you could assist me with that. I couldnot find where resource files for ex. import com.android.internal.R; inflater.inflate(R.layout.keyguard_screen_tab_unlock, this, true); If you see the files under /mydroid/frameworks/policies/base/phone/com/android/internal/policy/ impl/LockScreen.java. I tried searching for these android internal Resource files. I couldnt find out. Do you know where these layout.xml files are present. From which this com.android.internal.R points to ? On Sep 14, 9:18 am, Binggrae bangg...@gmail.com wrote: For your additional information. All packages included in system.img are written on build/target/product/generic.mk I'm not sure.. but You may modify generic.mk for inserting your apk into your emulator automatically when building totally. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
I think it' s not good to refer Launcher2's Android.mk see here http://source.android.com/porting/build_cookbook.html The following is a very simple example. You just need to change LocalPackage to Helloworld you want to create as APK's name. Building a simple APK --- LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # Build all java files in the java subdirectory LOCAL_SRC_FILES := $(call all-subdir-java-files) # Name of the APK to build LOCAL_PACKAGE_NAME := LocalPackage # Tell it to build an APK include $(BUILD_PACKAGE) - On Sep 12, 12:11 pm, mani smanikanda...@gmail.com wrote: I wanted to run a helloworld application with the AOSP and see it in emulator. [ Not through Android SDK setup] I followed the steps inhttp://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. I tried two things. 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 'LOCAL_PACKAGE_NAME := helloworld' and placed the folder in packages/app folder and compiled at /. I couldnt see .apk file created for helloworld in ~/mydroid/out/ target/product/generic/system/app. 2 - I went to Launcher2 folde /package/apps/Launcher2. 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( i gave) 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 Could anyone please share the steps of compiling a simple Helloworld program in AOSP.? Thanks, Mani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
Hi Binggare thanks for the reply...!! I changed the .mk file as below and kept my helloworld folder under / package/apps and compiled at / Still i couldnt see the .apk generated in ~/mydroid/out/target/product/generic/system/app. I couldnt see in the emulator list though...!! Why is it so tough to build a Helloworld along with full source code. THere is no wiki available in http://source.android.com . - mani On Sep 12, 12:17 pm, Binggrae bangg...@gmail.com wrote: I think it' s not good to refer Launcher2's Android.mk see herehttp://source.android.com/porting/build_cookbook.html The following is a very simple example. You just need to change LocalPackage to Helloworld you want to create as APK's name. Building a simple APK --- LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) # Build all java files in the java subdirectory LOCAL_SRC_FILES := $(call all-subdir-java-files) # Name of the APK to build LOCAL_PACKAGE_NAME := LocalPackage # Tell it to build an APK include $(BUILD_PACKAGE) --- -- On Sep 12, 12:11 pm, mani smanikanda...@gmail.com wrote: I wanted to run a helloworld application with the AOSP and see it in emulator. [ Not through Android SDK setup] I followed the steps inhttp://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. I tried two things. 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 'LOCAL_PACKAGE_NAME := helloworld' and placed the folder in packages/app folder and compiled at /. I couldnt see .apk file created for helloworld in ~/mydroid/out/ target/product/generic/system/app. 2 - I went to Launcher2 folde /package/apps/Launcher2. 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( i gave) 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 Could anyone please share the steps of compiling a simple Helloworld program in AOSP.? Thanks, Mani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to compile a helloworld in AOSP- Entire android source code..!! Couldnt see apk generated.
Sorry it' not helpful.. I'm not sure the following is helpful but recommend try it (Maybe you've tried it already) ~/froyo$ source build/envsetup.sh including device/htc/dream/vendorsetup.sh including device/htc/passion/vendorsetup.sh including device/htc/sapphire/vendorsetup.sh ~/froyo$ choosecombo Build for the simulator or the device? 1. Device 2. Simulator Which would you like? [1] 1 Build type choices are: 1. release 2. debug Which would you like? [1] 1 Which product would you like? [generic] generic Variant choices are: 1. user 2. userdebug 3. eng Which would you like? [eng] 3 PLATFORM_VERSION_CODENAME=REL PLATFORM_VERSION=2.2 TARGET_PRODUCT=generic TARGET_BUILD_VARIANT=eng TARGET_SIMULATOR=false TARGET_BUILD_TYPE=release TARGET_BUILD_APPS= TARGET_ARCH=arm HOST_ARCH=x86 HOST_OS=linux HOST_BUILD_TYPE=release BUILD_ID=MASTER ~/froyo$ cd packages/apps/HelloWorld$ ~/froyo/packages/apps/HelloWorld$ mm . . . Install: out/target/product/generic/system/app/HelloWorld.apk Good luck.. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en