Re: [android-developers] Re: ICS build error:GC overhead limit exceeded
in my 64bit machine I installed 32bit java and build worked fine. Thanks anyways. -- Regards, Pratik On Sat, Jul 21, 2012 at 2:23 AM, Justlovejoy justlove...@gmail.com wrote: i did, had to get proper version of java think it's java 1.6.20 or something but not just 1.6 plain. also had to remove current java On Fri, Jul 20, 2012 at 3:09 PM, pratik.prajap...@gmail.com pratik.prajap...@gmail.com wrote: Any one fixed this? On Sunday, April 8, 2012 5:11:38 AM UTC-7, justlove joyous wrote: any clues? On Thursday, April 5, 2012 4:27:31 AM UTC-4, kcobra wrote: The error is as following: UNEXPECTED TOP-LEVEL ERROR: Exception in thread main java.lang.OutOfMemoryError: GC overhead limit exceeded make: *** [out/target/common/obj/JAVA_**LIBRARIES/ framework_intermediates/**noproguard.classes-with-local.**dex] Error 1 I make ICS on Ubuntu 10.10 with jdk 1.6.Does anyone know the reason? Thanks in advance! -- 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 -- 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 -- 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
Re: [android-developers] Re: Building android contact source code (eclair version) on eclipse.
I am making new platform sdk, from the platform build. I found that android.jar created with sdk build contains only public APIs. I wanted all APIs marked as @hide also be part of android.jar. I can not write stub for all thousand od hidden apis! any better way? Regards, Pratik On Tue, Jul 17, 2012 at 2:38 PM, Kristopher Micinski krismicin...@gmail.com wrote: What do you mean? You either use reflection, or write the stubs yourself. kris On Tue, Jul 17, 2012 at 5:20 PM, pratik.prajap...@gmail.com pratik.prajap...@gmail.com wrote: Hi Raghu, Have you been able to expose hidden APIs in custom android.jar? Please help. On Friday, August 27, 2010 3:34:16 AM UTC-7, Raghavendra Singh wrote: Hi all I am having the contact source code which i want to build on eclipse test on emulator,but the contact application uses some of the hidden APIs of base code which is not present in default android.jar because of that i am getting lot of error in my code. I am trying to generate my own android.jar using Android sdk - Including hidden APIs. option in android.mk of framework directory, but still the hidden APIs not getting exposed in android.jar. Please tell how to customize the android.jar in order to make all hidden APIs exposed to application. Thanks in advance Raghu -- 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 -- 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 -- 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
Re: [android-developers] Re: How to install APK programmatically without user prompt
It was my hack. Which worked in my device, as is not for any smart phone, tablet. I run System command from java and user pm utility of android to install apk. On Sun, May 27, 2012 at 9:10 AM, Antonin Chazalet antonin.chaza...@gmail.com wrote: Hello, Pratik, can you tell us how you skipped the user prompt? Thanks, Regards, Antonin. Le mardi 27 septembre 2011 18:04:37 UTC+2, pratik.p...@gmail.com a écrit : Its in rooted device, but no option for user to do adb. Its nigher for phone nor for tablet market. -- Regards, Pratik Prajapati -- 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
Re: [android-developers] start activity
http://stackoverflow.com/questions/736571/using-intent-in-an-android-application-to-show-another-activity Regards, Pratik Prajapati On Wed, May 2, 2012 at 11:55 PM, asheesh arya asheesharya...@gmail.comwrote: probably use intent to start another activity!!! -- 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 -- 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
Re: [android-developers] Someone help me
http://developer.android.com/resources/samples/WiFiDirectDemo/index.html Regards, Pratik Prajapati On Wed, May 2, 2012 at 11:53 PM, asheesh arya asheesharya...@gmail.comwrote: what you have tried so far???google is your friend -- 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 -- 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] Platform independent APIs for non mobile platform.
I am checking about possibilties of implementing APIs for non mobile platforms. My device is Inflight entertainment. My GUI app would be based on android sdk only. But there will be one middle layer library which would be independent of android. I understand it can not be 100% independent but I want to keep independent as far as possible. This is very open question, but what are the things one should take care in this case? Regards, -- 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
Re: [android-developers] Platform independent APIs for non mobile platform.
Independant of Android's Intents, Services, Content Providers etc. For many things my system would rely on intents. I can run stand alone Java server ( just like unbound services, i.e. keep running all the time) and do corba for RPC/IPC. rather than using Content providers, I can manage my own java based services to manage it. What else I must take care? On Sat, Jan 21, 2012 at 6:30 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Jan 21, 2012 at 7:55 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: I am checking about possibilties of implementing APIs for non mobile platforms. My device is Inflight entertainment. My GUI app would be based on android sdk only. But there will be one middle layer library which would be independent of android. I understand it can not be 100% independent but I want to keep independent as far as possible. Independent of... what? You can make a layer be independent of Android simply by not referencing any android.* classes. However, your layer is still dependent on Java (since you say you are using the Android SDK), and even something independent of Android might not run on Java ME due to the latter's significant changes in the java.* and javax.* packages. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3 Available! -- 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 -- 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
Re: [android-developers] Platform independent APIs for non mobile platform.
On Sat, Jan 21, 2012 at 8:19 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Jan 21, 2012 at 9:26 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: I can run stand alone Java server ( just like unbound services, i.e. keep running all the time) and do corba for RPC/IPC. Please don't. For starters, it won't work, because Android will get rid of your process. You are certainly welcome to create some business logic classes that might be reusable on other compatible Java-based environments. So, there is no alternative to bound/unbound services in Android? rather than using Content providers, I can manage my own java based services to manage it. I have no idea what java based services are. What else I must take care? You need to become an expert in Android development before you will become expert in creating code that works well on Android and well on other compatible Java-based environments. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3 Available! -- 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 -- Regards, Pratik Prajapati Cell: +91-997-974-7961 -- 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
Re: [android-developers] Platform independent APIs for non mobile platform.
I want to keep my piece of software Independent of android architecture. I still need android for market apps, games and its cool GUI as my base platform. but my jars and libraries should not depend on android. (or very less dependent). e.g. There is bound/unbound services in Android for doing background task. Is there any other way to achieve the same thing i.e. my java code runs in background and if some app wants to use it, then it would do some IPC rather than AIDL? means an alternative solution to bound/unbound services of android? Hope you got what I mean! On Sat, Jan 21, 2012 at 8:44 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Jan 21, 2012 at 10:07 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: So, there is no alternative to bound/unbound services in Android? Alternative for what? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.3 Available! -- 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 -- 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: chmod 777 file not working with init.rc
Ok. Thanks. In fact I modified the driver which was exporting this sysfs entry. Not driver creates the the entry with 777 perm only. -- Regards, Pratik Prajapati On Wed, Nov 2, 2011 at 12:38 PM, Sylvain Huard sylvain.hu...@admetric.cawrote: I had a very similar problem with a chmod 0777 filename not working in my init.rc. It took me hours to figure it out. Just in case you face the same thing, here is what was my problem. The directory where filename was had less rights than what I wanted for filename. So, even though filename was supposed to be 0777, the effective rights were the one of parent directory. To fix it I did: chmod 0777 parentdirectory chmod 0777 parentdirectory/filename -- 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
Re: [android-developers] Re: How to install APK programmatically without user prompt
Implemented and working fine now. -- Regards, Pratik Prajapati On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK martyg...@gmail.com wrote: I truly hope you nor anyone else ever figures out how to do it. Windows is plagued with such junk. On Sep 17, 2:32 am, Pratik Prajapati pratik.prajap...@gmail.com wrote: I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but all those mechanism will prompt the user. Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? -- Regards, Pratik Prajapati -- 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 -- 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
Re: [android-developers] Re: How to install APK programmatically without user prompt
Its in rooted device, but no option for user to do adb. Its nigher for phone nor for tablet market. -- Regards, Pratik Prajapati On Tue, Sep 27, 2011 at 8:55 AM, Kristopher Micinski krismicin...@gmail.com wrote: On a non rooted device? Well that's a nice security hole to hear about. Kris On Tue, Sep 27, 2011 at 11:28 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Implemented and working fine now. -- Regards, Pratik Prajapati On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK martyg...@gmail.com wrote: I truly hope you nor anyone else ever figures out how to do it. Windows is plagued with such junk. On Sep 17, 2:32 am, Pratik Prajapati pratik.prajap...@gmail.com wrote: I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but all those mechanism will prompt the user. Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? -- Regards, Pratik Prajapati -- 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 -- 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 -- 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 -- 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
Re: [android-developers] Re: How to install APK programmatically without user prompt
yup, Thanks. On Tue, Sep 27, 2011 at 1:17 PM, Indicator Veritatis mej1...@yahoo.comwrote: I hope and assume that by 'nigher', you meant, 'neither'. For it is a security hole. Then again, every rooted device is like swiss cheese when it comes to security holes. Now that I know you are developing this for a rooted device (it would have helped had you mentioned this in your first post on this issue), I can see the general architecture of a solution: write your own installer, bypass the built-in installer completely. Since the user has root privileges, so does the custom installer; you can violate security in SO many ways! On Sep 27, 9:04 am, Pratik Prajapati pratik.prajap...@gmail.com wrote: Its in rooted device, but no option for user to do adb. Its nigher for phone nor for tablet market. -- Regards, Pratik Prajapati On Tue, Sep 27, 2011 at 8:55 AM, Kristopher Micinski krismicin...@gmail.com wrote: On a non rooted device? Well that's a nice security hole to hear about. Kris On Tue, Sep 27, 2011 at 11:28 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Implemented and working fine now. -- Regards, Pratik Prajapati On Tue, Sep 27, 2011 at 12:10 AM, martypantsROK martyg...@gmail.com wrote: I truly hope you nor anyone else ever figures out how to do it. Windows is plagued with such junk. On Sep 17, 2:32 am, Pratik Prajapati pratik.prajap...@gmail.com wrote: I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but all those mechanism will prompt the user. Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? -- Regards, Pratik Prajapati -- 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 -- 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 -- 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 -- 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 -- 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
Re: [android-developers] Re: How to install APK programmatically without user prompt
In this complex world, there are always some un-common requirements to implement un-common stuff. It is upto the architect to understand the security loophole to clear. -- Regards, Pratik Prajapati On Mon, Sep 26, 2011 at 10:40 PM, akay ak.kiet...@gmail.com wrote: Are you asking this because of recent headlines about android security issues that allow apps to install w/O you knowing? -- 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 -- 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
Re: [android-developers] openmax framework android
http://free-electrons.com/pub/video/2011/elc/elc-2011-garcia-matsubara-hayama-munakata-video-codec-android-openmax-il.webm http://free-electrons.com/pub/video/2011/elc/elc-2011-garcia-matsubara-hayama-munakata-video-codec-android-openmax-il.webm -- Regards, Pratik Prajapati On Fri, Sep 23, 2011 at 3:00 PM, kdı gjofd android.develope...@gmail.comwrote: i dont know what is openmax :D 2011/9/23, ProblemZone navi44...@gmail.com: i want to integrate openmax framework android for media player , give me guide line for implement that one. -- 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 -- 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 -- 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
Re: [android-developers] regarding call handling and screen off
use wakelock On Wed, Sep 21, 2011 at 10:17 PM, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I developed an application and android 2.1 api level, its working fine.But my request is when running application how to handle calls and also screen should not off. So please help me. Thanking you, nagu. -- 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 -- Regards, Pratik Prajapati -- 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] chmod 777 file not working with init.rc
Hi There, I'm setting permission to 777 (R+W+E for all) to a script file. But after kernel built and flashed to the system, permission does not get changed as expected. I understand I can give permission in make file while creating filesystem to be flashed on system. But same thing is happening for some sysfs entries. These sysfs entries are created by drivers at boot up time. I have also tried on device-added-device node path chmod 777 sys fs file name But I can not set the mode by this method also. However on console (adb shell) i can change the permission. I'm running on 2.1 Any idea, what could be wrong? Regards, Pratik -- 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: [android-kernel] chmod 777 file not working with init.rc
Hi, I'm doing below things in init.rc only. (1) on device-added-device node path chmod 777 sys fs file name (2) on boot chmod 777 sys fs file name But it does not work. -- Regards, Pratik Prajapati On Tue, Sep 20, 2011 at 8:58 AM, jagan 402ja...@gmail.com wrote: You can't give the permissions directly on android source. We need to give the permissions on init.rc. Better to read the file from system/core/init/readme.txt Regards, Jagan On Tue, Sep 20, 2011 at 9:18 PM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Hi There, I'm setting permission to 777 (R+W+E for all) to a script file. But after kernel built and flashed to the system, permission does not get changed as expected. I understand I can give permission in make file while creating filesystem to be flashed on system. But same thing is happening for some sysfs entries. These sysfs entries are created by drivers at boot up time. I have also tried on device-added-device node path chmod 777 sys fs file name But I can not set the mode by this method also. However on console (adb shell) i can change the permission. I'm running on 2.1 Any idea, what could be wrong? Regards, Pratik -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel -- 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] How to install APK programmatically without user prompt
I need to install some non market place APK programmatically *without *user prompt. I found some links on stackoverflow, but all those mechanism will prompt the user. Is there any way to do it with some APIs or I should use 'pm install apk name' command (doing with system() api)? -- Regards, Pratik Prajapati -- 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] help on dalvik VM.
Dear All, There are a lot of classes in my (big) APK which are used no where(some test code is part of the APK with the actual service). Will dalvik VM keep these classes in memory at runtime? ( many classes are not used to create any object out of them). As per my understanding, dalvik creates a single .dex file by combining all the .class in the apk. Does dalvik breaks this .dex file while running its bytecode and use the minimum code in memory? -- Regards, Pratik Prajapati -- 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] java object passing in android: json or binder?
which ones give better performance while marshaling/de-marshaling of java objects between two android apks, json or binder aidl? Regards, Pratik -- 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
Re: [android-developers] Re: java Thread class vs Android HanderThread: which is better?
yup. got it. Thanks On Fri, Sep 9, 2011 at 11:12 AM, Doug beafd...@gmail.com wrote: On Sep 7, 8:52 pm, Pratik Prajapati pratik.prajap...@gmail.com wrote: Android documentation says that consider usingAsyncTask http://developer.android.com/reference/android/os/AsyncTask.html or HandlerThread http://developer.android.com/reference/android/os/HandlerThread.html, instead of the traditional Threadhttp://developer.android.com/reference/java/lang/Thread.html class Any specific reason for this? Is it like HanderThread is just simpler implantation or also provides better performance? HandlerThread is (surprise) a thread with a Handler attached to it to process the messages in the thread's Looper. If you don't need or use a Handler for processing messages, then you don't need HandlerThread. Doug -- 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 -- Kind Regards, Pratik Prajapati -- 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
Re: [android-developers] What is wavelock in PowerManager API
copied Wakelock documentation below. Wakelocks = A locked wakelock, depending on its type, prevents the system from entering suspend or other low-power states. When creating a wakelock, you can select if it prevents suspend or low-power idle states. If the type is set to WAKE_LOCK_SUSPEND, the wakelock prevents a full system suspend. If the type is WAKE_LOCK_IDLE, low-power states that cause large interrupt latencies, or that disable a set of interrupts, will not be entered from idle until the wakelocks are released. Unless the type is specified, this document refers to wakelocks with the type set to WAKE_LOCK_SUSPEND. If the suspend operation has already started when locking a wakelock, it will abort the suspend operation as long it has not already reached the suspend_late stage. This means that locking a wakelock from an interrupt handler or a freezeable thread always works, but if you lock a wakelock from a suspend_late handler you must also return an error from that handler to abort suspend. Wakelocks can be used to allow user-space to decide which keys should wake the full system up and turn the screen on. Use set_irq_wake or a platform specific api to make sure the keypad interrupt wakes up the cpu. Once the keypad driver has resumed, the sequence of events can look like this: - The Keypad driver gets an interrupt. It then locks the keypad-scan wakelock and starts scanning the keypad matrix. - The keypad-scan code detects a key change and reports it to the input-event driver. - The input-event driver sees the key change, enqueues an event, and locks the input-event-queue wakelock. - The keypad-scan code detects that no keys are held and unlocks the keypad-scan wakelock. - The user-space input-event thread returns from select/poll, locks the process-input-events wakelock and then calls read in the input-event device. - The input-event driver dequeues the key-event and, since the queue is now empty, it unlocks the input-event-queue wakelock. - The user-space input-event thread returns from read. It determines that the key should not wake up the full system, releases the process-input-events wakelock and calls select or poll. Key pressed Key released | | keypad-scan ++ input-event-queue+++ +++ process-input-events +++ +++ On Thu, Sep 8, 2011 at 3:45 PM, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 8, 2011 at 5:42 PM, Sarath Krishna sarathkrishn...@gmail.com wrote: I was reading about PowerManager API . But, I couldn't understand the term wavelock. What is a wavelock? What does it exactly do? There is no wavelock. There is WakeLock. An acquired WakeLock keeps the device awake (e.g., CPU powered on), until it is later released. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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 -- Kind Regards, Pratik Prajapati -- 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] java Thread class vs Android HanderThread: which is better?
Hi All, Android documentation says that consider usingAsyncTaskhttp://developer.android.com/reference/android/os/AsyncTask.html or HandlerThreadhttp://developer.android.com/reference/android/os/HandlerThread.html, instead of the traditional Threadhttp://developer.android.com/reference/java/lang/Thread.html class Any specific reason for this? Is it like HanderThread is just simpler implantation or also provides better performance? -- Kind Regards, Pratik Prajapati -- 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
Re: [android-developers] video issue
you can also try http://developer.android.com/reference/android/text/util/Linkify.html On Wed, Sep 7, 2011 at 9:31 PM, arun kumar hariarun2...@gmail.com wrote: hai venu just using condition format On 9/7/11, venugopal peparthi venugopal.myfri...@gmail.com wrote: Hi, friend how to convert the general phone number which is 1234567890 have to change tothe format of 1 (234) 567-9801 while clicking on keypad in android. Thank u . venugopal.p -- 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 -- 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 -- Kind Regards, Pratik Prajapati -- 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
Re: [android-developers] Re: APK signing and certificate for production device
Hi Narayanan, Thank you for you inputs. Any idea for, differece between certificate and key? * * On Wed, Aug 31, 2011 at 10:50 PM, C++ Narayanan cnarayan12s...@gmail.comwrote: Pratik, well signing your application is only for the purpose of security while uploading it on android market! once you have genrate ur private keystore , u have to signed ur application with that private keystore to publish it on android market once publish that apk and later if u redesigned or made change in your app source code and want replace the app in the market u have to use the same private keystore without that same keystore u cannt change or modify the application thats the only purpose of it! as far as i know -- 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 -- Kind Regards, Pratik Prajapati -- 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] APK signing and certificate for production device
Dear All, For production of the device, android APKs needs to be signed. I have created keystore as explained in http://developer.android.com/guide/publishing/app-signing.html and signed my APKs with that keystore. I am doing it for eclair. I need to know following things. (1) Do I need to sign the andoird framework build as well, apart from APKs that I'll provide in my production device? the older guidelines say it. http://www.kandroid.org/online-pdk/guide/release_keys.html (2) Is there any difference between APK signing and APK certificate? (3) Any thing else I need to do for signing and certificate? Thanks in advance. Regards, Pratik -- 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: APK signing and certificate for production device
Can any one provide some inputs? On Wed, Aug 31, 2011 at 9:15 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: Dear All, For production of the device, android APKs needs to be signed. I have created keystore as explained in http://developer.android.com/guide/publishing/app-signing.html and signed my APKs with that keystore. I am doing it for eclair. I need to know following things. (1) Do I need to sign the andoird framework build as well, apart from APKs that I'll provide in my production device? the older guidelines say it. http://www.kandroid.org/online-pdk/guide/release_keys.html (2) Is there any difference between APK signing and APK certificate? (3) Any thing else I need to do for signing and certificate? Thanks in advance. Regards, Pratik -- Kind Regards, Pratik Prajapati -- 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] APK signing and certificate for production device
Hi, For production of the device, android APKs needs to be signed. I have created keystore as explained in http://developer.android.com/guide/publishing/app-signing.html and signed my APKs with that keystore. I am doing it for eclair. I need to know following things. (1) Do I need to sign the andoird framework build as well, apart from APKs that I'll provide in my production device? the older guidelines say it. http://www.kandroid.org/online-pdk/guide/release_keys.html (2) Is there any difference between APK signing and APK certificate? (3) Any thing else I need to do for signing and certificate? Thanks in advance. Regards, Pratik -- 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] Android screen timed out in power manager
Hi, Can any one please let me know, how/where the screen timeout is implemented? Its like when user does not press any key or touch on the screen, the screen goes timed out and turn off the back light or reduces the brightness! Regards, Pratik -- 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
Re: [android-developers] How to disable key press events!!
Hi, Do you mean, I should implement an IOCTL in key board sub-system of linux that should do report key pressed event to upper layer. This ioctl can be fired by a native call and my .apk call it with jni interface? Does it makes sense? or any better idea? On Sat, Apr 23, 2011 at 7:45 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Apr 23, 2011 at 9:51 AM, Pratik Prajapati pratik.prajap...@gmail.com wrote: For the In-flight entertainment kind of device. When ever there is any accoutrement to be made, the android based unit must get muted and all key ( mounted on the device + external key pad ) must get disabled for that much time. Any effective solution? An in-flight entertainment kind of device is custom hardware running custom firmware and therefore will solve this problem via that custom firmware. Android SDK applications should not be involved in the process at all. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 Programming Books: http://commonsware.com/books -- 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 -- Regards, Pratik Prajapati -- 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
Re: [android-developers] How to disable key press events!!
Hi Marcin, For the In-flight entertainment kind of device. When ever there is any accoutrement to be made, the android based unit must get muted and all key ( mounted on the device + external key pad ) must get disabled for that much time. Any effective solution? Regards, Pratik Prajapati On Fri, Apr 22, 2011 at 4:35 PM, Marcin Orlowski webnet.andr...@gmail.comwrote: Use own listener and eat all releated events. But anyway, this does not sound as good idea though. What for you need this (especially most devices got nothing like keys available all the time) for? Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/* and *Twitterhttp://webnetmobile.com/twitter/ * On 22 April 2011 12:08, Pratik pratik.prajap...@gmail.com wrote: Dear all, I need to disable the key events (any key pressed) for some predefined time. How the key pressed events be disabled? Regards, Pratik -- 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 -- 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 -- Regards, Pratik Prajapati -- 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] [Froyo]deleting file from internal storage
Dear All, I'm working on adding support of internal storage content get displayed in Gallery. Almost all things are done, like images/video gets displayed with correct thumbs. ( as it works with external storage). But while I delete any file from internal storage, it does not get deleted from it. Although it's record gets deleted from the corresponding database. It's like, when I click on delete for the image, it gets disappeared from the Gallery, But as soon as I run MediaScanner it find the file again. Means when I delete the file from Gallery, its record gets deleted correctly but file physically does not get deleted. File Delete works fine with external storage. I tried to trace the code from where file gets deleted. But no luck. I could not understand how the file gets deleted from Gallery. Any help will be really appreciated. Regards, Pratik -- 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: [Froyo]deleting file from internal storage
Any help will be really appreciated. Regards, Pratik - Original Message - From: Pratik Prajapati - Embedded pratik.prajap...@einfochips.com To: android-developers@googlegroups.com Sent: Tuesday, November 30, 2010 5:29:23 PM Subject: [Froyo]deleting file from internal storage Dear All, I'm working on adding support of internal storage content get displayed in Gallery. Almost all things are done, like images/video gets displayed with correct thumbs. ( as it works with external storage). But while I delete any file from internal storage, it does not get deleted from it. Although it's record gets deleted from the corresponding database. It's like, when I click on delete for the image, it gets disappeared from the Gallery, But as soon as I run MediaScanner it find the file again. Means when I delete the file from Gallery, its record gets deleted correctly but file physically does not get deleted. File Delete works fine with external storage. I tried to trace the code from where file gets deleted. But no luck. I could not understand how the file gets deleted from Gallery. Any help will be really appreciated. Regards, Pratik -- 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