[android-developers] Re: How to start a launcher directly (without FallbackHome) in AndroidN
Yes, but I fixed it by modifying android framework. There is another way: to add "android:directBootAware="true" in app's AndroidManifest.xml 在 2016年12月6日星期二 UTC+8下午11:55:27,Anatoliy Shuba写道: > > Hi, > > I have faced same issue. > My device doesn't need any lock or encryption but FallbackHome still > starts. > Did you solve that issue for you? > Thanks > > понедельник, 22 августа 2016 г., 7:22:12 UTC-4 пользователь kai zhao > написал: >> >> I try to run AndroidN on my device. The device *doesn't need any lock or >> encryption.* >> >> Issue: >> I find that ActivityManagerService starts Settings.FallbackHome before >> real Launcher. >> This process takes more than 1000ms, so I wanna remove FallbackHome >> process for quick-startup. >> >> Modify: >> original: ams.systemReady -> startHomeActivityLocked -> resolveIntent -> >> FallbackHome -> User unlocked and real home found -> real Launcher >> goal: ams.systemReady -> startHomeActivityLocked -> resolveIntent -> real >> Launcher >> >> Status: >> If I remove FallbackHome and modify PackageUserState, the resolveIntent >> and startHome will be failed. >> Anyone knows about this activity in AndroidN? >> >> Thanks. >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/92ebe9f2-7806-44e1-b088-771dba814455%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] How to start a launcher directly (without FallbackHome) in AndroidN
I try to run AndroidN on my device. The device *doesn't need any lock or encryption.* Issue: I find that ActivityManagerService starts Settings.FallbackHome before real Launcher. This process takes more than 1000ms, so I wanna remove FallbackHome process for quick-startup. Modify: original: ams.systemReady -> startHomeActivityLocked -> resolveIntent -> FallbackHome -> User unlocked and real home found -> real Launcher goal: ams.systemReady -> startHomeActivityLocked -> resolveIntent -> real Launcher Status: If I remove FallbackHome and modify PackageUserState, the resolveIntent and startHome will be failed. Anyone knows about this activity in AndroidN? Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e4ae71a2-495e-4e39-ab32-766d0c2c5816%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] FragmentGridPagerAdapter (wearable) together with support fragment
I develop an Android app that has a mobile and a wearable part. I put some common things in a shared library, like a fragment that is used on the mobile device and also the wearable. Unfortunately the fragment is extends android.support.v4.app.Fragment, but android.support.wearable.view.FragmentGridPagerAdapter can't provide such support fragments via getFragment (only android.app.Fragment is supported). Is there a FragmentGridPagerAdapter that supports android.support.v4.app.Fragment? Or any other suggestions how to solve this (without switching everything to android.app.Fragment)? I also thought about wrapping a android.support.v4.app.Fragment inside android.app.Fragment (using a XML layout) and that with FragmentGridPagerAdapter, but this throws a runtime error. Best regards, Kai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/9f25feb1-6321-46e1-95f2-3b03be569fb9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: Why my service in Broadcast Receiver gone in seconds.
Hello, The broadcast receiver and service are in the same process.I guest it is because the mobile rom is modified by the mobile manufacturer.When I request location in the back ground.The service can not last for long.When I change my app to another mobile the service works well.Thanks for your reply. Thanks, zhangkai 2016-03-22 6:31 GMT+08:00 'Indicator Veritatis' via Android Developers < android-developers@googlegroups.com>: > Hi, Kai- > > We cannot tell from what you posted what is going on. Please take a look > at how and when you create the Application, the BroadcastReceiver and the > Service. Are they all in the same process? Recall that, for example, if you > create the BroadcastReceiver using the tag in the Manifest, if > you specify no flags, it defaults to running in the same process as the > Application ( > http://developer.android.com/reference/android/R.styleable.html#AndroidManifestReceiver_process > ). > > But if, for example, the process 'hosting' the BroadcastReceiver has no > other component, then when the BroadcastReceiver is done, the OS will > aggressively kill the hosting process. > > The simplest approach is to use the same process for all three: > Application, Service & BroadcastReceiver. Then the process will stick > around until all three are backgrounded or killed (except under "conditions > of extreme memory pressure"). See > http://developer.android.com/guide/topics/processes/process-lifecycle.html > for details on what is liable to be killed under what circumstances. > > On Saturday, March 19, 2016 at 5:53:57 AM UTC-7, Kai Zhang wrote: >> >> Hello all, >> My app runs in background. I use alarmmanager to trig a alarm every >> minutes.When my Broadcast receiver receive the alarm I start a service.But >> I found that the service only last for about 4~5 seconds.I think every time >> the alarmmanager trig a alarm and a new Broadcast receiver instance >> created.the Broadcast receiver goes quickly.So the service gone with it?But >> the android.os.Proccess.myPid() is always the same.I am confusing with it. >> Thanks, >> zhangkai >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/fAdfdKyURcw/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > android-developers+unsubscr...@googlegroups.com. > To post to this group, send email to android-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/4bcb8438-2a7f-4fc0-aea1-11637d2e22df%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/4bcb8438-2a7f-4fc0-aea1-11637d2e22df%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CACeJ9PPH2wsmTVt_bkPM5gY83MZRu0tt-RzoCGL-pmxuPaf%3Dkg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: When I get gps location in background.I got ANR
Hello, Now I am clear with service.It runs in UI thread.I face a problem that.When I start app in background I start a service in broadcast receiver,then I start a handler thread.But the service gone for seconds,the thread do not execute as normal.Is the service starts from broadcast receiver not lasts long?[my code]( https://github.com/GisKook/gpstracker/tree/master/app/src/main/java/com/example/zhangkai/gpstraker ). Thank, zhangkai 2016-03-21 15:24 GMT+08:00 gjs <garyjamessi...@gmail.com>: > Hi, > > Yes - > > *Caution:* A service runs in the main thread of its hosting process—the > service does *not* create its own thread and does *not* run in a separate > process (unless you specify otherwise). This means that, if your service is > going to do any CPU intensive work or blocking operations (such as MP3 > playback or networking), you should create a new thread within the service > to do that work. By using a separate thread, you will reduce the risk of > Application Not Responding (ANR) errors and the application's main thread > can remain dedicated to user interaction with your activities. > - see http://developer.android.com/guide/components/services.html > Regards > > > > On Sunday, March 20, 2016 at 11:22:07 PM UTC+11, Kai Zhang wrote: >> >> Hello, >> I start a service from broadcast receiver.Then use thread.sleep in >> service's onStartCommand function.Then the ANR shows.the code is here( >> https://github.com/GisKook/testservice).So the service is in UI thread >> too? >> Thanks, >> zhangkai >> >> 2016-03-20 16:13 GMT+08:00 gjs <garyjam...@gmail.com>: >> >>> Hi, >>> >>> ANR usually means you are doing too much work on a UI thread, long >>> running tasks should be run on other non UI threads. >>> >>> Regards >>> >>> On Saturday, March 19, 2016 at 5:43:30 PM UTC+11, Kai Zhang wrote: >>>> >>>> Hello, >>>> I start a service(main service) from broadcast receiver(No 1).I know >>>> that If I do things more than 10s android will pop a ANR window.In case of >>>> this happen.I only request gps location for 6s.But only 6s I can not get >>>> gps location.So I register 3 broadcast receiver.The others(broadcast >>>> receiver No 2 and No 3) only request for gps location.The service's will >>>> return the location value to another broadcast receiver(result collect >>>> broadcast receiver No 4). In the No 4 receiver.If I do not do anything, The >>>> app works correctly.But If I request for a network service It will pop ANR >>>> sometimes.How can I debug the ANR situation? >>>> Thanks, >>>> zhangkai >>>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Android Developers" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/android-developers/1UT00xeVFqA/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> android-developers+unsubscr...@googlegroups.com. >>> To post to this group, send email to android-d...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/android-developers. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com >>> <https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com?utm_medium=email_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/1UT00xeVFqA/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > android-developers+unsubscr...@googlegroups.com. > To post to this group, send email to android-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/fd0da8ab-40c5-40f7-9d54-a9ed7122721d%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/fd0da8ab-40c5-40f7-9d54-a9ed7122721d%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CACeJ9PNB1MZ1Pb_-6UjQeaLUsWWgThv1rHYSjWx7wjjhFbJZNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: When I get gps location in background.I got ANR
https://github.com/GisKook/testservice 2016-03-20 20:17 GMT+08:00 Kai Zhang <zhangkai@gmail.com>: > Hello, > I start a service from broadcast receiver.Then use thread.sleep in > service's onStartCommand function.Then the ANR shows.the code is here( > https://github.com/GisKook/testservice).So the service is in UI thread > too? > Thanks, > zhangkai > > 2016-03-20 16:13 GMT+08:00 gjs <garyjamessi...@gmail.com>: > >> Hi, >> >> ANR usually means you are doing too much work on a UI thread, long >> running tasks should be run on other non UI threads. >> >> Regards >> >> On Saturday, March 19, 2016 at 5:43:30 PM UTC+11, Kai Zhang wrote: >>> >>> Hello, >>> I start a service(main service) from broadcast receiver(No 1).I know >>> that If I do things more than 10s android will pop a ANR window.In case of >>> this happen.I only request gps location for 6s.But only 6s I can not get >>> gps location.So I register 3 broadcast receiver.The others(broadcast >>> receiver No 2 and No 3) only request for gps location.The service's will >>> return the location value to another broadcast receiver(result collect >>> broadcast receiver No 4). In the No 4 receiver.If I do not do anything, The >>> app works correctly.But If I request for a network service It will pop ANR >>> sometimes.How can I debug the ANR situation? >>> Thanks, >>> zhangkai >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Android Developers" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/android-developers/1UT00xeVFqA/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> android-developers+unsubscr...@googlegroups.com. >> To post to this group, send email to android-developers@googlegroups.com. >> Visit this group at https://groups.google.com/group/android-developers. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com >> <https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com?utm_medium=email_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CACeJ9PMp1dYPVEZGhyxJOgYmP-42Jb43GbeMzROYcXXL0_mBtQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: When I get gps location in background.I got ANR
Hello, I start a service from broadcast receiver.Then use thread.sleep in service's onStartCommand function.Then the ANR shows.the code is here( https://github.com/GisKook/testservice).So the service is in UI thread too? Thanks, zhangkai 2016-03-20 16:13 GMT+08:00 gjs <garyjamessi...@gmail.com>: > Hi, > > ANR usually means you are doing too much work on a UI thread, long running > tasks should be run on other non UI threads. > > Regards > > On Saturday, March 19, 2016 at 5:43:30 PM UTC+11, Kai Zhang wrote: >> >> Hello, >> I start a service(main service) from broadcast receiver(No 1).I know that >> If I do things more than 10s android will pop a ANR window.In case of this >> happen.I only request gps location for 6s.But only 6s I can not get gps >> location.So I register 3 broadcast receiver.The others(broadcast receiver >> No 2 and No 3) only request for gps location.The service's will return the >> location value to another broadcast receiver(result collect broadcast >> receiver No 4). In the No 4 receiver.If I do not do anything, The app works >> correctly.But If I request for a network service It will pop ANR >> sometimes.How can I debug the ANR situation? >> Thanks, >> zhangkai >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/1UT00xeVFqA/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > android-developers+unsubscr...@googlegroups.com. > To post to this group, send email to android-developers@googlegroups.com. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/96fd07c6-413b-41e2-8c82-8658ad7042a5%40googlegroups.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CACeJ9PP%3DrE6aCu%3DYB543BzZv-jfq64DbM%3DUgY84L-Oj%3DW-Y9sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Why my service in Broadcast Receiver gone in seconds.
Hello all, My app runs in background. I use alarmmanager to trig a alarm every minutes.When my Broadcast receiver receive the alarm I start a service.But I found that the service only last for about 4~5 seconds.I think every time the alarmmanager trig a alarm and a new Broadcast receiver instance created.the Broadcast receiver goes quickly.So the service gone with it?But the android.os.Proccess.myPid() is always the same.I am confusing with it. Thanks, zhangkai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/d7493f0e-5a8a-4e41-9e85-47d3402e2f7a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] When I get gps location in background.I got ANR
Hello, I start a service(main service) from broadcast receiver(No 1).I know that If I do things more than 10s android will pop a ANR window.In case of this happen.I only request gps location for 6s.But only 6s I can not get gps location.So I register 3 broadcast receiver.The others(broadcast receiver No 2 and No 3) only request for gps location.The service's will return the location value to another broadcast receiver(result collect broadcast receiver No 4). In the No 4 receiver.If I do not do anything, The app works correctly.But If I request for a network service It will pop ANR sometimes.How can I debug the ANR situation? Thanks, zhangkai -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/5c862fd9-39e6-48d9-aad8-59cb5f3b7d8b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] HTML Pagination
Hi guys, hope you are all doing fine. I need to convert a pdf document into android standalone application. I had the options of just using texts views and just copy paste the text of that document in text views. But then I came to know that applications can be made using only HTML and CSS and then use WebView. Then I came to know about something called as *Pagination*. Now let me define the problem, *Problem* : I wish to put all the text of document in html file and then use pagination to show that large html as many pages. Can I get some help?...Can any one point me to some concrete tutorials about using pagination in WebView. I tried searching stack overflow but either there was nothing I needed or I couldn't understand what was there. Any help will be appreciated. Thanks *Saqib Khan * *Saqib Khan * -- 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] HTML Pagination
Hi guys, hope you are all doing fine. I need to convert a pdf document into android standalone application. I had the options of just using texts views and just copy paste the text of that document in text views. But then I came to know that applications can be made using only HTML and CSS and then use WebView. Then I came to know about something called as *Pagination*. Now let me define the problem, *Problem* : I wish to put all the text of document in html file and then use pagination to show that large html as many pages. Can I get some help?...Can any one point me to some concrete tutorials about using pagination in WebView. I tried searching stack overflow but either there was nothing I needed or I couldn't understand what was there. Any help will be appreciated. Thanks *Saqib Khan * -- 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] Using an adapter from another class/activity
hi, Have you try to create a singleton model for ArrayAdapter? All your ArrayAdapters in different activities can share the same model. Kai, On Jan 11, 2012, at 4:19 PM, galapogos wrote: Hi, How can I use an ArrayAdapter from another activity? I tried doing the following in MyListActivity.onCreate(): setListAdapter(SomeOtherActivity.myAdapter); where myAdapter is defined and initialized in SomeOtherActivity. However, I get an empty list, even though I verified that SomeOtherActivity.myAdapter is fully populated via a call to SomeOtherActivity.myAdapter.getCount(); If I define and initialize my own adapter in MyListActivity with setListAdapter(myLocalAdapter), it works. Once I switch it to setListAdapter(SomeOtherActivity.myAdapter), I get an empty list. Help please? Thanks. -- 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] video codec on device
Hi all, Is there a way to query what media format is supported on a particular device running android (1.6+)? For example, I would like to know determine whether a device is capable of playing H.263 and/or H.264 media. Then serve the best quality video to the user. Thanks, Allen -- 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: let users select a audio file on tmobile mytouch 4g - activity not found exception
why are the activities only not found on mytouch 4g? what can I do to make it work on mytouch 4g? On Feb 16, 10:56 am, TreKing treking...@gmail.com wrote: On Tue, Feb 15, 2011 at 8:50 AM, Kai snowst...@gmail.com wrote: what's going on here? An activity is not found to handle the intent requested. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] let users select a audio file on tmobile mytouch 4g - activity not found exception
hi, I have a button that when a user clicks it, he should see a list of audio files, then he can select one, and my app knows what he selects. the following codes work fine on g1 and mytouch 3g(aka g2), but always throw a activity not found exception for Intent.ACTION_GET_CONTENT or Intent.ACTION_PICK: protected void onClick() { super.onClick(); Intent intent = null; intent = new Intent(Intent.ACTION_PICK); try{ startActivityToPickSong(intent); }catch(android.content.ActivityNotFoundException e){ intent = new Intent(Intent.ACTION_GET_CONTENT); startActivityToPickSong(intent); } } private void startActivityToPickSong(Intent intent){ intent.setData(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI); parent.startActivityForResult(intent, req_song_pic); } what's going on here? Kai -- 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: Barcode Reader and Soft Input
Update: 2.3 does not work as well. -- 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] Barcode Reader and Soft Input
Hello together, I use an Opticon OPN-2002 which I have configured as an HID device (keyboard). The SPP application crashes with a NullPointerException, hence it's useless and I do not want to wait for an update. Long story, short meaning: The problem is, that I still need the soft keyboard for text input. I already tried to force show it via InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE); if(imm != null) { imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); } The other approach was to use the iOS - Toggle Soft Keyboard-Option of the device. However, this just works on an old version of Android; the current version (2.2.1) behaves not the way I intented. However, this still does not work if my scanner is attached via Bluetooth. Ideas/Suggestions are very welcome. Thanks in advance. Cheers, Kai -- 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] in-app purchase with single-click checkout service?
just saw this single-click checkout service for Android at http://www.readwriteweb.com/mobile/2010/11/new-service-brings-single-click-checkout-to-android.php looks pretty cool. But again, I think it's a violation of Android Market TOS to use this kind of solution for in-app digital purchase(such as buying music, ringtone, app upgrades, virtual goods). any thought? Kai -- 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] SimpleCursorAdapter and database update
Hi All, I just started with Android development and love it so far. To get some experience, I am writing a little todo application. In my database I have a state for a todo item, represented as int. I use a checkbox in a list view to represent this state. To bind the data to the view, I use a subclass of SimpleCursorAdapter. I add an onClickListener to the checkbox that updates the state in the database for the used list item. The problem is, if I use the following code, the list is screwed up in the display (many items will be checked): @Override public View getView(final int pos, View inView, ViewGroup parent) { View view = inView; if (view == null) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); view = inflater.inflate(R.layout.toodoolist_item, null); } cursor.moveToPosition(pos); ... checkBox.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { int state = 0; if (checkBox.isChecked()) { titleView.setPaintFlags(titleView.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); titleView.setEnabled(false); state = 1; } else { titleView.setPaintFlags(titleView.getPaintFlags() ^ Paint.STRIKE_THRU_TEXT_FLAG); titleView.setEnabled(true); } ContentValues values = new ContentValues(); values.put(TooDooTable.STATE, state); context.getContentResolver() .update(ContentUris.withAppendedId( TooDooTable.CONTENT_URI, id), values, null, null); cursor.requery(); } }); My current workaround is to use the inflater every time, even if the inView is not null: @Override public View getView(final int pos, View inView, ViewGroup parent) { View view = inView; LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); view = inflater.inflate(R.layout.toodoolist_item, null); This works, but I don't understand why I have to do this hack. What would be the best practice to update the database in a CurserAdapter and get the changes reflected immediately in the view? Thanks Kai -- 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 detect if a phone is running HTC sense UI
I need a way to programatically determine if a HTC device runs sense UI. maybe use reflection to determine if some Sense UI packages exist? but what are the names of these packages? On Aug 1, 9:21 pm, YuviDroid yuvidr...@gmail.com wrote: On the HTC Desire the standard android home is not available, even by clearing defaults of the Sense home. On Sun, Aug 1, 2010 at 12:37 PM, Mark Murphy mmur...@commonsware.comwrote: On Sun, Aug 1, 2010 at 6:20 AM, { Devdroid } webnet.andr...@gmail.com wrote: You can't remove it if phone is not rooted as you got no write access to /system, true, but once you root your device you can wipe sense packages. Ah, true, wasn't thinking of rooting. Sorry! I believe you could do this on any device, by just clearing defaults in app prefs as you do for any other app and installing i.e. Launcher Pro. On next Home press you will be asked what app shall be used, select Launcher Pro, mark it to be default and bye-bye Sense. I saw reference recently that suggested this did not work everywhere. I'm was thinking maybe Sense 2 (the current generation) vs. the original Sense. But it works on a HTC Hero (just tried it), so that's clearly not it. -- Mark Murphy (a Commons Guy) http://commonsware.com|http://github.com/commonsguy http://commonsware.com/blog|http://twitter.com/commonsguy Android 2.2 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!)http://android.yuvalsharon.net -- 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 detect if a phone is running HTC sense UI
Hi, I need to detect if a phone is running HTC sense UI. is there a way to do it? I can't just blindly assume every HTC device runs sense UI(eg: nexus one doesn't run it). Kai -- 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] paypal mobile payment allowed?
Paypal recently released a mobile payment library for android. see news at http://www.intomobile.com/2010/05/22/paypals-mobile-payments-library-now-available-for-android-too/ https://www.x.com/community/ppx/xspaces/mobile/mep I recalled that the android market TOS doesn't allow non-google checkout payment solution. has TOS been changed to allow paypal integration?? -- 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: Problematic HTTPS Posts, help needed
Thank you very much for those suggestions, I will definitely take a look at them. Have your worked at all with httpS though? and if so, are there any differences in the implementation. As mentioned in the original post, I have no problem getting HTTP to work, it is only when I switch to HTTPS that I start having problems. On Jan 27, 2:46 pm, WoodManEXP woodman...@gmail.com wrote: Hello, I have done a lot of work with the Android communicating via http, Get and Post, with servers. Most of it seems to work pretty much the same as the org.apache.http.* libraries on other platforms (which is in itself pretty neat!). Couple of things that might be helpful - Do the http work off the UI thread because of the way server communication delays and times-out and such. Otherwise the Android app manager will freak-out and the ANR dialog will appear (App not responding). - This may be wrong but our apps tend to create and dispose of DefaultHttpClients often, rather then keeping them around for re-use. We experienced problems trying to reuse object like these (kind of like to describe with the java.io.IOExceptions) On Jan 27, 11:30 am,Kaikai.umez...@hotmail.com wrote: Hi all, I'm in the middle of developing my first android application and have finally hit a significant roadblock that I can't seem to figure a way around. The application involves HTTPS posting from an activity within the app to my test server. While I've worked around accepting the self-signed certificate, the behavior of the post and response has been problematic and non-standard and so I'm wondering if this issue is android related and what some possible solutions might be. Essentially this transaction is completed on a click. On the click I create and connect a HttpsURLConnection to the server, setting DoOutput and DoInput to true. I get the connection output stream and wrap it in a BufferedOutputStream. I write the transaction to the BuffStream, flush and close it. Then I handle the response. If the response is HTTP_OK, I get and wrap the connection input stream in a BufferedInputStream. I then take the input and put it into a byte array to be handled by the app and close the input stream. Now this all seems straight forward but when tested doesn't work properly. From the activity, the process is always successful on the first try, but then from the same activity if I wait a few seconds then click again, the same process will fail claiming a java.io.IOException(stream is closed), and then if I wait a few more seconds and try again it will work and this pattern continues on. To make things even more confusing, if I execute all of the clicks in rapid succession they will all work. It only complains if I wait in between transactions. I've come to think that the problem has something to do with Android HTTPS as when I try just a simple HTTP post, everything works fine. I also don't think it has anything to do with my custom certificate accepting as when I removed that and tried HTTPS posting to a trusted well known certificate, the problem still occurred. I'm leaning towards the thought that this has something to do with setting up and tearing down HTTPS connections in android, but as I do this all in an onClick event I'm not sure why I'm experiencing problems half the time. I'm also inclined to think its the inputStream that is having issues as the server seems to recieve the transactions. Anyone with any ideas as to what could be going wrong, or anyone who can outline how they went about setting up an HTTPS post on click would be greatly appreciated! Thanks so much for your time and consideration. -- 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] Problematic HTTPS Posts, help needed
Hi all, I'm in the middle of developing my first android application and have finally hit a significant roadblock that I can't seem to figure a way around. The application involves HTTPS posting from an activity within the app to my test server. While I've worked around accepting the self-signed certificate, the behavior of the post and response has been problematic and non-standard and so I'm wondering if this issue is android related and what some possible solutions might be. Essentially this transaction is completed on a click. On the click I create and connect a HttpsURLConnection to the server, setting DoOutput and DoInput to true. I get the connection output stream and wrap it in a BufferedOutputStream. I write the transaction to the BuffStream, flush and close it. Then I handle the response. If the response is HTTP_OK, I get and wrap the connection input stream in a BufferedInputStream. I then take the input and put it into a byte array to be handled by the app and close the input stream. Now this all seems straight forward but when tested doesn't work properly. From the activity, the process is always successful on the first try, but then from the same activity if I wait a few seconds then click again, the same process will fail claiming a java.io.IOException(stream is closed), and then if I wait a few more seconds and try again it will work and this pattern continues on. To make things even more confusing, if I execute all of the clicks in rapid succession they will all work. It only complains if I wait in between transactions. I've come to think that the problem has something to do with Android HTTPS as when I try just a simple HTTP post, everything works fine. I also don't think it has anything to do with my custom certificate accepting as when I removed that and tried HTTPS posting to a trusted well known certificate, the problem still occurred. I'm leaning towards the thought that this has something to do with setting up and tearing down HTTPS connections in android, but as I do this all in an onClick event I'm not sure why I'm experiencing problems half the time. I'm also inclined to think its the inputStream that is having issues as the server seems to recieve the transactions. Anyone with any ideas as to what could be going wrong, or anyone who can outline how they went about setting up an HTTPS post on click would be greatly appreciated! Thanks so much for your time and consideration. -- 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] extra space/padding around imageview?
Hi, I am trying to get the image to consume just enough space and get last_line to be just below the image. but it seems that the image always have some extra space/padding on top and below. Why? ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=wrap_content android:layout_width=fill_parent android:orientation=vertical TextView android:layout_height=wrap_content android:layout_width=fill_parent android:text=header / LinearLayout android:orientation=horizontal android:layout_height=wrap_content android:layout_width=fill_parent ImageView android:layout_width=0dip android:layout_height=wrap_content android:scaleType=fitCenter android:layout_weight=1 android:src=@drawable/jayzhou_album_cover_orginal / TextView android:layout_height=wrap_content android:layout_width=0dip android:autoLink=all android:text=a asaa asaa asaa asaa asa android:layout_marginLeft=5dip android:layout_weight=3 / /LinearLayout TextView android:layout_height=wrap_content android:id=@+id/ last_line android:layout_width=fill_parent android:text=another line of text / /LinearLayout -- 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] rename a app's name after it's installed
Hi, is it possible to let users rename the app's name as it appears in the app menu? Some users want to make my app appear on a different name of their choice. Thanks, Kai -- 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] need help in getting screenshots on HTC Hero/Droid Eris, Samsung Moment and Moto CLIQ
Hi, users of my fake-call me apps(http://blog.mobileappbuilder.com/tagged/ Fake-Call%20Me) have reported that the fake call screens look different from the real call screens on HTC Hero/Eris, Samsung Moment and Moto CLIQ. Since I don't have any of these phones, can someone hook up a debugger to his/her Hero/Eris, Samsung Moment or Moto CLIQ and take screenshots of the real incoming-call screen, call-in-progress screen? In return, I will give you fake-call me pro for free(refund you the fee you pay via android market). Thanks, Kai -- 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] Call Webservice From Android
Hi, I need to call a webservice from Android,the webservcie was created by Axis.I make a simple client to invoke the webservice on computer,get right response.But when I move the project to Android.there is one error:java.rmi; I dont's know where use this library. How can I do ? Please help me , thank you. -- 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] Digest for android-developers@googlegroups.com - 25 Messages in 19 Topics
android-developers@googlegroups.com wrote: = Today's Topic Summary = Group: android-developers@googlegroups.com Url: http://groups.google.com/group/android-developers/topics - getLastKnownLocation *again* [1 Update] http://groups.google.com/group/android-developers/t/458624ff8f78bafa - problem in aligning right column in the list [1 Update] http://groups.google.com/group/android-developers/t/c8f3fddc884c1c32 - Soft keypad doesn't appear if EditText.setOnClickListener() is set? [1 Update] http://groups.google.com/group/android-developers/t/2651e329a1535c7d - are Animations always clipped to ViewGroup bounds? [3 Updates] http://groups.google.com/group/android-developers/t/759d18c63cf7bfba - Is there a way to get notified when a new task is starting or finishing ? [2 Updates] http://groups.google.com/group/android-developers/t/297a664d0fc2a44a - The GPS Shutdown Thing [1 Update] http://groups.google.com/group/android-developers/t/e687b3bfa9146f31 - onTouch() not working properly, HTC Magic [2 Updates] http://groups.google.com/group/android-developers/t/b2a20f0a79aa442f - running sqlite3 commands from app? [1 Update] http://groups.google.com/group/android-developers/t/2a5e51bf59819368 - GK : How to Use Android Open source Platform code [1 Update] http://groups.google.com/group/android-developers/t/865673b00ca4a59a - Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml [1 Update] http://groups.google.com/group/android-developers/t/63a44163a8d07cd9 - Complex Object Collision Detection [1 Update] http://groups.google.com/group/android-developers/t/a48ec22e9cf2b9e9 - Android 2.0 emulator (Droid skin) crawls [1 Update] http://groups.google.com/group/android-developers/t/9c09cd007eb18aa8 - Can not access internet with emulator [1 Update] http://groups.google.com/group/android-developers/t/3a5a089b9cc87653 - Questin about gmail intents [2 Updates] http://groups.google.com/group/android-developers/t/6eff92acec2dc563 - How to detect the Widget is active in the current panel? [1 Update] http://groups.google.com/group/android-developers/t/4a977d9e5ff502b2 - ADC2 rank [1 Update] http://groups.google.com/group/android-developers/t/7551df15eb9365e6 - emulator sleep? [2 Updates] http://groups.google.com/group/android-developers/t/c840eae7ae49d321 - Accessing Remote Database using Android [1 Update] http://groups.google.com/group/android-developers/t/46de389800cb5560 - Checked List View am I missing something [1 Update] http://groups.google.com/group/android-developers/t/e9e1dea18aaa176 = Topic: getLastKnownLocation *again* Url: http://groups.google.com/group/android-developers/t/458624ff8f78bafa = -- 1 of 1 -- From: stanlick stanl...@gmail.com Date: Dec 02 11:53AM -0800 Url: http://groups.google.com/group/android-developers/msg/686c7ff2fb30052a Didn't we put a man on the moon? It can't be done seems a little lazy today! I have read all the posts about this topic and I understand the arguments being made. However, I would like to know how Google Maps can return my *current* location yet while driving the same stretch of road, the Android API often (not always) gives me a last known location that was miles back. I need to be able to rely on the API to provide me with a *current location* and I have tried all the tricks being proposed here and elsewhere. Is there lower level code someplace that could ping the phone's radio for a fresh fix? If you have solved this riddle, I would be happy to pay for your solution. Peace, Scott = Topic: problem in aligning right column in the list Url: http://groups.google.com/group/android-developers/t/c8f3fddc884c1c32 = -- 1 of 1 -- From: adag adjo...@googlemail.com Date: Dec 02 11:47AM -0800 Url: http://groups.google.com/group/android-developers/msg/475bf4c4699e6908 Worked out with android:weightSum quite nice..!!! = Topic: Soft keypad doesn't appear if EditText.setOnClickListener() is set? Url: http://groups.google.com/group/android-developers/t/2651e329a1535c7d = -- 1 of 1 -- From: Mark Wyszomierski mar...@gmail.com Date: Dec 02 11:46AM -0800 Url: http://groups.google.com/group/android-developers/msg/90ec7fa7174f7fb6 Still stuck on this, if anyone has a suggested work around -
[android-developers] why isn't there a easy way to let users take screenshots
Users report problems. I need them to take some screenshots and email to me. But most users don't know or have the needs to install the dev. env to just take screenshots. It's just too hard for them. Why can't Android make it as easy as on iPhone(pushing two buttons together)? -- 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: building for 1.5 using 2.0...
I have the same question. 1.5 compiler is having problem with the new layout directories that I need for 1.6 and 2.0 how can I support 1.5, 1.6 and 2.0 at the same time? On Nov 3, 9:50 pm, sdphil phil.pellouch...@gmail.com wrote: i need my app to support1.5and above. i noticed that if I create my build.xml file using -- c:\tools\android\2.0r3\tools\android update project --name MyProject -- path C:\MyProject --target 2 it complains about my resource directory names res/drawable-hdpi, res/ drawable-ldpi, etc... res/layout-large, etc... saying invalid resource directory name. If I use 1.6r1 tool set c:\tools\android\1.6r1\tools\android update project --name MyProject -- path C:\MyProject --target 2 Everything works fine. If I use target 3 (1.6 and above) c:\tools\android\2.0r3\tools\android update project --name MyProject -- path C:\MyProject --target 3 Everything works fine. So, do I basically *have* to use 1.6r1 to build for1.5? And does that mean that those special directory names will only work on 1.6 and above? tia. -- 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: building for 1.5 using 2.0...
If I have layout-xxx folders, compilation in 1.5 would just fail. how can I deal with that? I don't think reflection would help. On Nov 17, 6:12 pm, Jason Proctor jason.android.li...@gmail.com wrote: indeed, but don't use reflection, instantiate OS-dependent classes which implement a common interface by *name*. this breaks the class loading chain. reflection == last resort, IMHO At 6:01 PM -0800 11/17/09, sdphil wrote: i think what this boils down to, is that you need to build everything with2.0SDK, and then just make sure you're not using any APIs from versions you don't want. And you will want to abstract away calls you don't have using reflection. Simply doing something like if (version =2.0) then makeSpecialCallTo20Feature(); won't work since the JVM pre-verifies and will wind up barfing saying it can't find that special feature anywhere (even though when it goes to execute, it won't need it anyway). somewhat annoying, and it sure would have been nice if the android folks had just provided a big reflection abstraction layer for all new SDK features... On Nov 17, 1:23 pm, Kai snowst...@gmail.com wrote: I have the same question. 1.5 compiler is having problem with the new layout directories that I need for1.6and2.0 how can I support 1.5,1.6and2.0at the same time? On Nov 3, 9:50 pm, sdphil phil.pellouch...@gmail.com wrote: i need my app to support1.5and above. i noticed that if I create my build.xml file using -- c:\tools\android\2.0r3\tools\android update project --name MyProject -- path C:\MyProject --target 2 it complains about my resource directory names res/drawable-hdpi, res/ drawable-ldpi, etc... res/layout-large, etc... saying invalid resource directory name. If I use1.6r1 tool set c:\tools\android\1.6r1\tools\android update project --name MyProject -- path C:\MyProject --target 2 Everything works fine. If I use target 3 (1.6and above) c:\tools\android\2.0r3\tools\android update project --name MyProject -- path C:\MyProject --target 3 Everything works fine. So, do I basically *have* to use1.6r1 to build for1.5? And does that mean that those special directory names will only work on1.6and above? tia. -- 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 -- jason.vp.engineering.particle -- 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 Market and Application Add-ons
How do you guys usually deploy add-ons (like sound packs) to your apps? Does android allow a resource-only install to an existing application directory? Do you make the sound add-ons another application that's basically just a provider? 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
[android-developers] Missed Calls - Notification
Hi I'm trying to received missed call notifications to my application, however I cant find one which is a specific listener for a missed call, I could poll/use the TelephonyManager.GetCall() method for a CALL_STATE_RINGING which then turns to CALL_STATE_IDLE without a CALL_STATE_OFFHOOK in between I suppose but Im not sure if im missing something or if this is the _best_ way. Can anyone offer any advice? Thanks in advance System: Vista 32Bit Eclipse J2EE ADT Latest SDK --~--~-~--~~~---~--~~ 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 block incoming call?
I tried Panda firewall. The call blocking works. My G1 doesn't even ring. The call goes straight to voicemail. so there must be a way to do it. On Sep 6, 10:18 pm, Roman ( T-Mobile USA) roman.baumgaert...@t- mobile.com wrote: I am not aware that you can intercept an incoming call only from SDK level. Firewall programs which are claiming to block incoming calls are not working on my phone. If there is a mechanism out there, please let me know. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 6, 8:50 pm, feeling3_4 lanwen.ban...@gmail.com wrote: Hi, all I know there are some posts from the group have talked about this ( likehttps://groups.google.com/group/android-developers/browse_thread/thre... andhttps://groups.google.com/group/android-beginners/browse_thread/threa...), but I can not find exactly the offical answer of this issue. in android market, there are some apps which can set up a black list and block the incoming call, seehttp://www.cyrket.com/search?q=block+call for details. is there something like backdoor or unkown api for blocking incoming call. any idea? thanks . --~--~-~--~~~---~--~~ 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] easy way to synchronize data between phone and server
Hi, if I write a app that'd store local data on phone as well as online, and users can modify the data on their phones with a Android client and modify the remote data stored in a server through a browser interface. The assumption is that the app would need to work offline and synch. when it's online. One example is that you have address book data on a server and a android client. what's the best way to keep the data synchronized and detect conflicts? Thanks Kai --~--~-~--~~~---~--~~ 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: China to have there own Android Market?
China is a very different market. Each carriers is working on running its own app store that supports different platforms(like app stores inside carrier app store). The 3 carriers are very powerful so that you won't see a standalone app store like Apple App Store across carriers. The traditional way of paying apps via credit card doesn't work in China cause most Chinese still don't have credit cards. oPhone SDK is based on Android 1.1. It integrates with China Mobile's services. You can easily port and localize your Android app to oPhone. You can read more about the mobile market in China below: China Mobile's Mobile Market app store: http://blog.agilestorm.com/2009/08/26/ouch-china-mobiles-messy-mobile-market-app-store-clone-stumbling-out-of-gate/ China Unicom's App Store that's not only going to support iPhone but also other platforms as well: http://www.kai-mai.com/node/171 Kai On Aug 25, 2:23 pm, CraigsRace craig...@gmail.com wrote: Thanks for the info. Going to stay well clear of them. Cheers. On Aug 26, 1:04 am, Hong lordh...@gmail.com wrote: They also operate jailbreak iPhone apps and pirated iPhone apps, if you so care. --~--~-~--~~~---~--~~ 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] Andriod Market in China: Ouch! China Mobile’s (Messy) Mobile Market(App Store Clone) Stum bling Out of Gate
Hi, I just wrote a blog post to shine some light on the newly launched Mobile Market(app store for OPhone(China Mobile's customized Android), windows mobile, symbian) from China Mobile: http://blog.agilestorm.com/2009/08/26/ouch-china-mobiles-messy-mobile-market-app-store-clone-stumbling-out-of-gate/ In theory, you can easily port your apps to OPhone. But right now, it's just too easy to get your apps pirated there, and there are not enough OPhones out there. so be really careful of dealing anyone promosing to help you sell your apps in China. Kai --~--~-~--~~~---~--~~ 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: Send combination key events
Thanks for your help Marco, I tried exactly the same way but it doesn't work. It brings me search box of google and put e in it, instead of launching email using 'search + e' shortcut. On May 11, 2:43 pm, Marco Nelissen marc...@android.com wrote: Use Instrumentation.sendKeySync() to send the key-down and key-up events yourself, e.g. search-down, e-down, e-up, search-up. This should be interpreted by the application in the same way as pressing search+e on the keyboard. On Mon, May 11, 2009 at 2:32 PM, Kai Hu leon.k...@gmail.com wrote: Hi there, I am sending key events using sendKeys() but how could I send combination keys, like Search + e ? Anyone could help me on the issue? Thanks. K --~--~-~--~~~---~--~~ 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] KeyEvent.KEYCODE_ENDCALL doesn't work
Hi there, I am doing an experimental project and I found I couldn't make KeyEvent.KEYCODE_ENDCALL work for me. I could inject KeyEvent.KEYCODE_CALL, KeyEvent.KEYCODE_DPAD_CENTER and so on, but not for KeyEvent.KEYCODE_ENDCALL. Anybody could help me on that? Thanks for your time. Thanks, Kai --~--~-~--~~~---~--~~ 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] Anyway to bypass permission checking
Hi there, I am doing an experimental project and want to send key events from one application to another. I know android doesn't allow applications to interfere each other in this way due to security concern. Is there any way i could bypass the security check? I've looked into the WindowManagerService class and made some modifications but it seems not working for me. Anybody could help me? Thanks for your time. - Kai --~--~-~--~~~---~--~~ 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: Anyway to bypass permission checking
Thanks for your comment, Mark. On May 7, 10:20 am, Mark Murphy mmur...@commonsware.com wrote: I am doing an experimental project and want to send key events from one application to another. I know android doesn't allow applications to interfere each other in this way due to security concern. Is there any way i could bypass the security check? At the level of the SDK, I sure hope not. I've looked into the WindowManagerService class and made some modifications but it seems not working for me. Anybody could help me? Questions regarding modifying the Android firmware are best asked on a discussion list pertaining to the Android firmware: http://source.android.com/discuss -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 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 -~--~~~~--~~--~--~---
[android-developers] How to create a native c process from android java program
Hi, I write a jni so file which can be called from the android java program. This so file will use execl to create a native c process. However from adb logcat, it says execl error with Bad address(errno 14) Is it possible to create a native c process from android java program Thanks for any help --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---