[android-developers] question about NsdManager, the network service discovery
Hello all, There is NsdManager in android.net.nsd, which can be used for service discovery. There is WiFiP2PManager ( Wi-Fi Direct ) can used for service discovery in P2P wi-Fi connection. I found there is android.net.wifi.p2p.nsd, so first maybe stupid question: what's the relationship of the two function, the NSD and the WiFiP2P ? I found only WiFiP2P has nsd module, does that mean NSD only work for Wi-Fi P2P, not for Wi-Fi LAN? if only the WiFi P2P support NSD function, what's the purpose of NsdManager? will the NsdManager support the Bluetooth or NFC or other kinds of connections? If I use NsdManager, what kind of service I can found? any service in Wi-Fi LAN? or only the service register as Wi-Fi P2P service? Regards, Zhihong -- 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/CAMhUYgzH--2kkoPubxCZd_%3Db_80c_wruwHQHqcfNSZfGatdwMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] jobscheduler how to
Hello, I create a jobscheduler in onReceive method of boot complete receiver. The job is not scheduled to run after two minutes. The device is in idle and wi-fi connected. Can anyone give help? Thanks, James public void onReceive(Context context, Intent intent) { JobScheduler tm = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); tm.cancel(JOB_ID); JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, new ComponentName(context, TestService.class)); builder.setPeriodic(TWO_MINUTES); builder.setPersisted(true); builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); builder.setRequiresDeviceIdle(true); tm.schedule(builder.build()); } then in the TestService @Override public boolean onStartJob(final JobParameters params) { Log.i(LOG_TAG, "job started"); new Thread(new Runnable() { @Override public void run() { //do something here, then call jobFinished jobFinished(params, true); } }).start(); return true; } -- 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/CAMhUYgyqqBqBsqpwo%2BqYm%3DEdF_Ff-e1_q1%3D%2B-32X_5uU8PvY4Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: jobscheduler how to
Hello, I got more logs printed out 12-18 21:41:48.5452850-2850/? D/ActivityManager﹕ isAutoRunBlockedApp:: org.zhihong.test, Auto Run ON 12-18 21:41:48.5452850-2850/? E/LpnetManagerService﹕ isAutoRunBlockedPackage isAutoRunBlocked:false,processName: org.zhihong.test 2015-12-18 19:08 GMT+08:00 Zhihong GUO <gzhh...@gmail.com>: > Hello, > > I create a jobscheduler in onReceive method of boot complete receiver. The > job is not scheduled to run after two minutes. The device is in idle and > wi-fi connected. > > Can anyone give help? > > Thanks, > > James > > public void onReceive(Context context, Intent intent) { > > JobScheduler tm = > (JobScheduler) > context.getSystemService(Context.JOB_SCHEDULER_SERVICE); > tm.cancel(JOB_ID); > > JobInfo.Builder builder = new JobInfo.Builder(JOB_ID, new > ComponentName(context, TestService.class)); > builder.setPeriodic(TWO_MINUTES); > builder.setPersisted(true); > builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED); > builder.setRequiresDeviceIdle(true); > > tm.schedule(builder.build()); > } > > then in the TestService > > > @Override > public boolean onStartJob(final JobParameters params) { > > Log.i(LOG_TAG, "job started"); > > new Thread(new Runnable() { > @Override > public void run() { > //do something here, then call jobFinished > jobFinished(params, true); > } > }).start(); > > return true; > } > > -- 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/CAMhUYgzuEzFNvWWk%2BaRKfAwjRZ8t8D1En7rjZS3th2wpPRz%3D5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] Re: the download manager can't resume the download at broken point
Thank you Deepak, The issue is caused by there is no ETag header in the response message, by which Android download manager will consider if resume or report an error. Regards, James 2015-04-21 14:39 GMT+08:00 deepak deepakraor1...@gmail.com: Hi James, Android DownloadManager uses HTTP range-request when a download is being paused or broken. So, Kindly make sure, the server supports range requests for the file you are requesting. And if possible have a proxy app installed if your device is rooted and get the network logs, so that you can know what is the actual request and response after it is paused. Thanks, Deepak On Tuesday, 21 April 2015 06:52:06 UTC+5:30, Zhihong GUO wrote: Hello all, I want the download manager to download something from a server, here are the http response message from server for the download request from android download manager: *HTTP/1.1 200 OK* *Date: Mon, 20 Apr 2015 12:49:06 GMT* *Server: Apache-Coyote/1.1* *Set-Cookie: proxyIn_com_pphom=mspvr363; path=/; domain=aaa.bbb.com http://aaa.bbb.com; expires=Mon, 20-Apr-2015 12:59:06 GMT* *Cache-Control: public, must-revalidate, post-check=0, pre-check=0* *Content-Description: File Transfer* *Content-Disposition: attachment; filename=6d7a7ea9-e89f-4916-8c82-fc342c677cbf* *Expires: 0* *Content-Transfer-Encoding: binary* *Accept-Ranges: bytes* *Content-Type: application/octet-stream* *Content-Length: 5037313* *Set-Cookie: PLAY_FLASH=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *Set-Cookie: PLAY_ERRORS=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *Set-Cookie: PLAY_SESSION=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *P3P: CP=NOI* *Connection: close* The current issue is, when there is error cause the download broken, the Android download manager didn't resume the download at broken point when the error fixed. I know that the downloadmanager should support resuming download, so it seems the server side has configuration issue. Any one can give comments? Thanks, James -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. 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 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] the download manager can't resume the download at broken point
Hello all, I want the download manager to download something from a server, here are the http response message from server for the download request from android download manager: *HTTP/1.1 200 OK* *Date: Mon, 20 Apr 2015 12:49:06 GMT* *Server: Apache-Coyote/1.1* *Set-Cookie: proxyIn_com_pphom=mspvr363; path=/; domain=aaa.bbb.com http://aaa.bbb.com; expires=Mon, 20-Apr-2015 12:59:06 GMT* *Cache-Control: public, must-revalidate, post-check=0, pre-check=0* *Content-Description: File Transfer* *Content-Disposition: attachment; filename=6d7a7ea9-e89f-4916-8c82-fc342c677cbf* *Expires: 0* *Content-Transfer-Encoding: binary* *Accept-Ranges: bytes* *Content-Type: application/octet-stream* *Content-Length: 5037313* *Set-Cookie: PLAY_FLASH=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *Set-Cookie: PLAY_ERRORS=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *Set-Cookie: PLAY_SESSION=; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/plus/plus_expo/* *P3P: CP=NOI* *Connection: close* The current issue is, when there is error cause the download broken, the Android download manager didn't resume the download at broken point when the error fixed. I know that the downloadmanager should support resuming download, so it seems the server side has configuration issue. Any one can give comments? Thanks, James -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] question about WebChromeClient
Hi all, Can anyone tell me what's WebChromeClient for? I read the document on developer.android.com but still some unclear issues: what's the onShowCustomView for? when it will be called ? can you give an example or user experience on that ? thanks a lot James -- 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] question about WebChromeClient
Hi Mark, Thank you so much! 2011/11/19 Mark Murphy mmur...@commonsware.com On Sat, Nov 19, 2011 at 8:22 AM, Zhihong GUO gzhh...@gmail.com wrote: Can anyone tell me what's WebChromeClient for? It is for events that might be triggered by HTML or JavaScript that would affect a browser but (typically) not in the HTML rendering area. The canonical example is the alert() function in JavaScript -- which normally pops up a dialog box in a browser -- triggers onJsAlert() in your WebChromeClient. Whether you pop up a dialog, or show a Toast, or log this to LogCat, or display it in some status bar, is up to you . what's the onShowCustomView for? when it will be called ? can you give an example or user experience on that ? Most of what I'm seeing on Google points to popping up HTML5 videos: http://stackoverflow.com/questions/4989738/how-to-play-a-video-in-a-webview-with-android/4990544#4990544 http://www.devdaily.com/java/jwarehouse/android/core/java/android/webkit/HTML5VideoViewProxy.java.shtml -- 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 Android Development_ Version 3.6 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] new features of ICS
Hi all, It is said in Android 4.0 platform information that: the CSS 3D transformations are supported. can someone tell me what kind of hardware required by this feature? CPU, GPU, MEMORY and others? Thanks a lot. James -- 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 download and continue the editing a patch on review server
hi all, I have a patch on review server https://review.source.android.com. I can download it by repo download command. but when I made a change and use git add -A, git commit --amend and repo upload, I got error no branches ready for upload. I check the active branches by git branch: * (no branch) branch_a branch_b I think the repo download does not create a branch on my local repository, so that I can not upload branch. how to fix the issue? -- 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 make my app as the only one NFC tag handler
Thank you so much Dominik. so that I need also define the intent filter of my activity: intent-filter action android:name=android.nfc.action.NDEF_DISCOVERED / data android:mimeType=text/x-yourcompany / category android:name=android.intent.category.DEFAULT / /intent-filter right? 2011/6/29 Dominik dominik.gru...@fhnw.ch simply define your own mime-type and write your private text in your own format, i.e. as new NdefRecord( NdefRecord.TNF_MIME_MEDIA, text/x-yourcompany.getBytes(), new byte[0], payload); and define an intent filter for exactly this mime type, then only your application will react on your strings. Dominik -- 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] how to make my app as the only one NFC tag handler
Hi all, My NFC tag written a private text string, start with , and I want to dev a tag reader app. How can I make my tag reader to be the only one that will handler a tag stored a string begin with ? thanks you so much -- 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] about new features in Email of 3.1
Hi all, it is said in 3.1 platform highlight that: To conserve battery power and minimize cell data usage, the application now prefetches email from the server only when the device is connected to a Wi-Fi access point. Does that mean the email application can not get new email notification when the device connected by 3G? I don't know detail about IMAP but I think prefetching may be used in new email notificaiton. Thanks for the answer in advance, James -- 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: does NFC in gingerbread support card simulate?
Hi Michael, The Tag application on Gingerbread have a fouction called smart poster, is it the card simulation? or just a tag emulation. Thanks 2011/3/23 nadam a...@anyro.se There seems to be some work-around though using undocumented features. http://www.youtube.com/watch?v=28TwCpx4Dng On 23 mar, 16:03, Michael Roland mi.rol...@gmail.com wrote: Hallo, the current SDK does not allow you to use card emulation. Anyways, with card *emulation* you will not be able to simulate an *NFC tag* (i.e. a tag where you store simple NDEF messages). Card emulation mode allows to emulate a contactless smartcard (typically used for applications with high security requirements, like credit cards). While such a card (emulated or real) can be used to carry NDEF messages, I really doubt that this possibility will be made available for the Android phones. br, Michael On Mar 23, 5:14 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, about NFC in Gingerbread, is it possible to simulate a tag by the SDK? I have found the support for tag read/write and P2P push message, but haven't found any support on card simulate. thanks James -- 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: does NFC in gingerbread support card simulate?
Hi Michael, Thank you so much. 2011/3/23 Michael Roland mi.rol...@gmail.com Hallo, the current SDK does not allow you to use card emulation. Anyways, with card *emulation* you will not be able to simulate an *NFC tag* (i.e. a tag where you store simple NDEF messages). Card emulation mode allows to emulate a contactless smartcard (typically used for applications with high security requirements, like credit cards). While such a card (emulated or real) can be used to carry NDEF messages, I really doubt that this possibility will be made available for the Android phones. br, Michael On Mar 23, 5:14 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, about NFC in Gingerbread, is it possible to simulate a tag by the SDK? I have found the support for tag read/write and P2P push message, but haven't found any support on card simulate. thanks James -- 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] does NFC in gingerbread support card simulate?
Hi all, about NFC in Gingerbread, is it possible to simulate a tag by the SDK? I have found the support for tag read/write and P2P push message, but haven't found any support on card simulate. thanks James -- 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] NFC Question
Hi all, I have the same issue. I write the tag by Ndef class, but the tag can't be read by any readers application, it cause them crash. The source code is below: ... Tag tagFromIntent = null; void writeTag(){ NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], this is a write tag.getBytes()); try { NdefRecord[] records = {record}; NdefMessage message = new NdefMessage(records); Ndef tag = Ndef.get(tagFromIntent); tag.connect(); if(tag.isConnected() tag.isWritable()){ tag.writeNdefMessage(message); tag.close(); Log.d(TAG, write tag successfully); }else{ Log.d(TAG, the tag is not connected or not writeable); } } catch (Exception e){ //do error handling e.printStackTrace(); } } public void onNewIntent(Intent intent) { tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); } the log write tag successfully print out. 2011/3/17 Nick Pelly n...@android.com Hi Manuel, You can write to a formatted card using the Ndef technology class (as long as it was not made read-only). Nick On Tue, Mar 15, 2011 at 4:50 PM, Manuel Roman manuelro...@google.comwrote: Hi, I am writing an NFC application on Gingerbread 2.3.3. The application writes and reads data to and from tags. I am using the white plastic tags that look like a badge. I have been able to write data to the tags. However, it only works when the tag is unformatted. That is, I get a brand new tag, use my app and write data using NDEFFormatable. Data is properly written and I can see it with any reader app. However, when I try to write again into the same tag, NDEFFormatable.get() returns null so I cannot write to it. The reason is because after I write into the tag, the second time I try to write again the tag only displays 3 technologies and NDEFFormatable is not one of them. Do you know why the tag does not show NDEFFormatable as one of its technologies? The only technologies it shows at this point is MyFareClassic and I believe NfcA. Using the NXP tag writer app I can re-write the tags but they show up as MifareClassic. Manuel -- 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] NFC Question
hi all, the exception is due to the intent action, it is NfcAdapter.ACTION_NDEF_DISCOVERED, not ACTION_TAG_DISCOVERED, which is listened by tag or tagwriter app. 2011/3/22 Zhihong GUO gzhh...@gmail.com Hi all, I have the same issue. I write the tag by Ndef class, but the tag can't be read by any readers application, it cause them crash. The source code is below: ... Tag tagFromIntent = null; void writeTag(){ NdefRecord record = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, NdefRecord.RTD_TEXT, new byte[0], this is a write tag.getBytes()); try { NdefRecord[] records = {record}; NdefMessage message = new NdefMessage(records); Ndef tag = Ndef.get(tagFromIntent); tag.connect(); if(tag.isConnected() tag.isWritable()){ tag.writeNdefMessage(message); tag.close(); Log.d(TAG, write tag successfully); }else{ Log.d(TAG, the tag is not connected or not writeable); } } catch (Exception e){ //do error handling e.printStackTrace(); } } public void onNewIntent(Intent intent) { tagFromIntent = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); } the log write tag successfully print out. 2011/3/17 Nick Pelly n...@android.com Hi Manuel, You can write to a formatted card using the Ndef technology class (as long as it was not made read-only). Nick On Tue, Mar 15, 2011 at 4:50 PM, Manuel Roman manuelro...@google.comwrote: Hi, I am writing an NFC application on Gingerbread 2.3.3. The application writes and reads data to and from tags. I am using the white plastic tags that look like a badge. I have been able to write data to the tags. However, it only works when the tag is unformatted. That is, I get a brand new tag, use my app and write data using NDEFFormatable. Data is properly written and I can see it with any reader app. However, when I try to write again into the same tag, NDEFFormatable.get() returns null so I cannot write to it. The reason is because after I write into the tag, the second time I try to write again the tag only displays 3 technologies and NDEFFormatable is not one of them. Do you know why the tag does not show NDEFFormatable as one of its technologies? The only technologies it shows at this point is MyFareClassic and I believe NfcA. Using the NXP tag writer app I can re-write the tags but they show up as MifareClassic. Manuel -- 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: marketbilling project closed?
Hi Dalvinder, Thanks for the answer. I am interested in the market billing of Android and want to read the source code, and I want to know if there will be big changes before I use it. I am wandering if there will be changes due to the close of the project. James 2011/3/11 Dalvinder Singh singh.dal...@gmail.com What is your objective ? As far as I can understand following link might be of your interest. http://developer.android.com/guide/market/billing/index.html Thanks Dalvinder Singh http://developer.android.com/guide/market/billing/index.html On Fri, Mar 11, 2011 at 1:55 PM, Zhihong GUO gzhh...@gmail.com wrote: anyone can give me help? thank a lot 2011/3/10 Zhihong GUO gzhh...@gmail.com Hi all, why the download and source code is not available on page http://code.google.com/p/marketbilling/ . Is there any changes on the project? -- 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
[android-developers] where can buy some tags can be read by nexus S
Hi all, I want to demo some application based on NFC in nexus S. Where can I buy some tags with big storage, for about 50K~100K. Where can I buy the tag writer. Or can any one give me the interface spec of the NFC in nexus s. Thank you so much in advanced. James -- 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: marketbilling project closed?
anyone can give me help? thank a lot 2011/3/10 Zhihong GUO gzhh...@gmail.com Hi all, why the download and source code is not available on page http://code.google.com/p/marketbilling/ . Is there any changes on the project? -- 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] marketbilling project closed?
Hi all, why the download and source code is not available on page http://code.google.com/p/marketbilling/ . Is there any changes on the project? -- 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] about the heap size in honeycomb
thanks a lot. 2011/2/24 Romain Guy romain...@android.com The heap size is set to 48MB. On Wed, Feb 23, 2011 at 9:18 PM, Zhihong GUO gzhh...@gmail.com wrote: Hi all, it is said in the link http://developer.android.com/intl/zh-CN/sdk/android-3.0.html that honeycomb support larger heap size. what is the upper-limit of the heap that the applications can used. 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 -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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] question about a View's hardware and software layer
Hi all, The view in Honeycomb can be specified be backed by either a hardware or software layer. I am not familiar with it and I want to know what can be done by the hardware and software layer of a view. it should be a special look and feel effect, or it make a effect happened quickly than before? Thanks a lot. -- 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] drag and drop only between views in the same layout?
Hi all, A question about drag drop in Honeycomb, is it available between two app widgets or fragments on homescreen? or it is only available between views in the same activity. 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] about the heap size in honeycomb
Hi all, it is said in the link http://developer.android.com/intl/zh-CN/sdk/android-3.0.html that honeycomb support larger heap size. what is the upper-limit of the heap that the applications can used. 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
Re: [android-developers] Re: animate part of the app widget
Hi DatNQ, Thank you so much. I am really eager to know the solution. 2011/2/24 Nguyen Dat nguyenda...@gmail.com Thanks Metal for helpful information @Zhihong: i'm sorry for late response, we have successful creat widget animation by used RemoteViews. When we complete document we will post solution to this topic. Regards, DatNQ On Wed, Feb 23, 2011 at 12:43 PM, metal mikey coref...@gmail.com wrote: Refer to my posts on the following thread: http://groups.google.com/group/android-developers/browse_frm/thread/ef1eb3ddfd40153a/f0c68dee4e18d9c0 On Feb 22, 9:06 pm, Zhihong GUO gzhh...@gmail.com wrote: Hi all, is it possible to animate part of an app widget? for example, there is a text string, an image, and a number in my widget, I want to animate the number or image in the widget, which is only part of whole widget on the home screen. does it possible on Honeycomb? -- 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
[android-developers] about drag and drop on Honeycomb
Hi all, I am wondering if the drag and drop can only be available in a single activity, from one fragment to another, or it can be done between two activities. Does it support drag and drop between app widgets on home screen? Thanks a lot. -- 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] animate part of the app widget
Hi all, is it possible to animate part of an app widget? for example, there is a text string, an image, and a number in my widget, I want to animate the number or image in the widget, which is only part of whole widget on the home screen. does it possible on Honeycomb? -- 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] memory limit of the clipboard in Honeycomb
Hi All, what is the upper-limit of the memory of an object in clipboard, for example, image. thanks a lot! James -- 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] what is HIPRI connection
Hi all, There is a kind of connection called HIPRI, which is categoried by Android as a connection like MMS, or SUPL, DUN or Mobile. It is said by the SDK web page that it is : A High Priority Mobile data connection. This connection is typically the same as TYPE_MOBILEhttp://developer.android.com/reference/android/net/ConnectivityManager.html#TYPE_MOBILE but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via requestRouteToHost(int, int)http://developer.android.com/reference/android/net/ConnectivityManager.html#requestRouteToHost(int, int) will route over this interface if a default route exists. I am not very clear about the description. If we start connection on HIPRI, will the connection be teared down when Wi-Fi connection established? If we use the connection after there is Wi-Fi connection, that means, we want to make dual connection on Wi-Fi and HIPRI, do we have to use the IP explicitly request instead of the string like http://www.google.com? 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] LVL question: how the method VerifyLicense in the class ResultListener in class LicenseChecker be called.
Hi all, I want to make it clear how the VerifyLicense method of the class ResultListener in class LicenseChecker be called. Is it be called by Android Market client? The VerifyLicense code is as below: public void verifyLicense(final int responseCode, final String signedData, final String signature) { mHandler.post(new Runnable() { public void run() { Log.i(TAG, Received response.); // Make sure it hasn't already timed out. if (mChecksInProgress.contains(mValidator)) { clearTimeout(); mValidator.verify(mPublicKey, responseCode, signedData, signature); finishCheck(mValidator); } } }); } How the method mValidator.verify can guarantee the response is not faked, by its three parameters, mPublicKey, signedData, and signature, if the signature here can be get from SDK API? -- 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: LVL question: how the method VerifyLicense in the class ResultListener in class LicenseChecker be called.
a little modification on the last question. The SDK API can't get the signature, but it still possible for the developers to get the signature by hack the platform code 2010/12/14 Zhihong GUO gzhh...@gmail.com Hi all, I want to make it clear how the VerifyLicense method of the class ResultListener in class LicenseChecker be called. Is it be called by Android Market client? The VerifyLicense code is as below: public void verifyLicense(final int responseCode, final String signedData, final String signature) { mHandler.post(new Runnable() { public void run() { Log.i(TAG, Received response.); // Make sure it hasn't already timed out. if (mChecksInProgress.contains(mValidator)) { clearTimeout(); mValidator.verify(mPublicKey, responseCode, signedData, signature); finishCheck(mValidator); } } }); } How the method mValidator.verify can guarantee the response is not faked, by its three parameters, mPublicKey, signedData, and signature, if the signature here can be get from SDK API? -- 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: Application wake up
Hi Prill, How to send binary SMS to the specific port on the phone, can we do the test on emulator? Thanks 2010/5/11 Timo Prill timo.pr...@googlemail.com Send binary SMS to the specific port on the phone, they won't be shown in the inbox.. (except the HTC Tattoo sometimes shows binary SMS in the inbox.. seems to be a device-specific bug) cheers Am 11.05.2010 15:36, schrieb SAM: Hi, Has anyone found any solution for Port directed SMS OR App directed SMS in android? Although the Inbox SMS hook is working but I am still unable to delete this SMS from Inbox. I dont want user to see this SMS notification. Thanks Sam On Apr 16, 5:04 pm, SAMgulati...@gmail.com wrote: Thanks Guys. Its working now. So the process goes like this: 1. In your manifest file, make a activity and a receiver. Mention your receiver class name here. 2. Make a entry foruses-permission android:name = android.permission.RECEIVE_SMS 3. To test on emulator, test by DDMS perspective view. 4. You application will receive SMS while its dead too. in Onreceive(), read the SMS and do whatever you want. you can also start your activity from here. Thanks sam On Mar 19, 7:56 am, Andreasandreas.bex...@gmail.com wrote: Hi, Please note that there is no longer any class called IntentReceiver. It is now called BroadcastReceiver. Also, to get this to work, you need to register the receiver in the AndroidManifest.xml like this: receiver android:name=.RespToSMS intent-filter action android:name=android.provider.Telephony.SMS_RECEIVED / /intent-filter /receiver Regards, Andreas On Mar 18, 2:50 pm, Vaibhav Kulkarnivaibhavkul...@gmail.com wrote: Hi Sam, I think you should create a service for that!!! You can use Intent for SMS in following way public class RespToSMS extends IntentReceiver { /* package name for Intent */ static final String ACTION = android.provider.Telephony.SMS_RECEIVED; public void onReceiveIntent(Context context, Intent intent) { if (intent.getAction().equals(ACTION)) { StringBuilder buf = new StringBuilder(); Bundle bundle = intent.getExtras(); if (bundle != null) { SmsMessage[] messages = Telephony.Sms.Intents.getMessagesFromIntent(intent); for (int i = 0; ilt; messages.length; i++) { SmsMessage message = messages[i]; buf.append(message.getDisplayMessageBody()); /* Check your SMS format and respond here... */ } } NotificationManager nm = (NotificationManager) context.getSystemService( Context.NOTIFICATION_SERVICE); nm.notifyWithText(123, buf.toString(), NotificationManager.LENGTH_LONG, null); } } } Thanks, Vaibhav On Thu, Mar 18, 2010 at 10:33 AM, SAMgulati...@gmail.com wrote: Hi, I have a requirement to wake up my application upon receiving a particular formatted SMS or App directed notification from server. My application is in dead state. Whenever the device receives a event may be a SMS in a particular format OR some notification(eg app directed notification from server), android OS will start my application. Its possible in Windows Mobile and BREW. Please let me know if its possible in Android and how. Thanks Sam -- 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 android-developers%2bunsubs限cr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- 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 athttp:// groups.google.com/group/android-developers?hl=en- Hide quoted text - - Show quoted text - -- 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 -- You received this message because you are subscribed to the Google Groups Android
Re: [android-developers] Re: can C2DM running on Eclair
Hi Bibek, Thank you for your quickly answer. Can you tell me what module added in the platform of Froyo to support C2DM? Thanks 2010/10/20 Kumar Bibek coomar@gmail.com No it wont. On Oct 20, 9:47 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, It seems that the Android market on Eclari can search, download and install the c2dm-based applications. It seems that if the C2DM support code is imported in the application source code direclty, the application can running on Eclair, is that true? Thanks a lot. James -- 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 -- 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] can C2DM running on Eclair
Hi all, It seems that the Android market on Eclari can search, download and install the c2dm-based applications. It seems that if the C2DM support code is imported in the application source code direclty, the application can running on Eclair, is that true? Thanks a lot. James -- 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] Flash games for Android is it possible?
If you have the actionscript source code of the game, you can build the game to android native application by AIR. otherwise you can have a try to reuse the flash file in an empty flash project 2010/10/11 Miguel Morales therevolti...@gmail.com You might be able to create an application with a WebView in which you embed your flash game. Or you might be able to create an application which simply launches the browser to the page specified. Although I really doubt any but the simplest flash game will be playable in Android. On Thu, Oct 7, 2010 at 9:44 AM, Josh foxvalleysoc...@gmail.com wrote: I have several games I have developed for flash and use as google gadgets. I want to package them for the addroid market. Is this possible? Can you package flash games for use on android phones. I can play them if i like directly to the swfs on my server. Can you point out any tutorials on how to do this in the sdk? Im a complete newbie in this realm. Thanks for your help Josh -- 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 -- ~ Jeremiah:9:23-24 Android 2D MMORPG: http://developingthedream.blogspot.com/, http://diastrofunk.com, http://www.youtube.com/user/revoltingx -- 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 -- 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] does the backup service on Froyo backup the data of a specific user
Hi all, After checking the API of the backup service, I haven't find any parameters related to the google ID of a user. My question is if the backup service can backup the data of a specific user, for example, his/her score in a game; if so, how -- 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] question about search suggestion rating
Hi All, I am reading the source code that are related to search function. I can't find the algorithm about the rating of the search suggestion, does anyone can give me a hand? Thanks a lot, James -- 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: UPnP
Hi skonno, All of the java code is downloaded, but I can't find a Android project to run in emulator or on read device James 'http://sourceforge.net/projects/cgupnpjava/develop'; please relocate 2010/1/29 skonno skonno.cybergar...@gmail.com Hi Abhi, I have already ported the following my UPnP framework into Android. CyberLink for Java http://www.cybergarage.org/cgi-bin/twiki/view/Main/CyberLinkForJava To run the framework on Android, please get the latest source codes from the following SVN repository on SourceForge.net. https://sourceforge.net/projects/cgupnpjava/develop Please check it :-) Thanks, Sastoshi Konno http://www.cybergarage.org -- 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 -- 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] Can I use the permission INJECT_EVENTS in a unit testing project?
Hi All, I am writing a unit test case based on the Instrumentation class. My scenario is: in my activity to be tested, it will start the browser. Now I want to send a back key event to the browser application and then I can go back to my activity to continue the testing. But it seems that the android.permission.INJECT_EVENTS not work for the testing project. Is it possible? Thanks James -- 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] question about testing on activity
Hi all, Now I am writing a test case for an Activity. The activity will send a Http request to a server and the server will give response back to it. Based on the response from the server, the Activty may make call, connect to a web site and etc. The question is: Can I implement a MockServer, just like MockContext in the android.test package? In the MockServer, I can set the response message and test if the Activity can launch dialer or browser correctly? Thanks James -- 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] question about Market
Hi All, I got two devices, HTC G1 and Tattoo, both running 1.6 ROM. When searching flashcode in both of Market application on the two devices, only G1 return matched applications, while Tattoo can't, why Thanks, James -- 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 clear activity stack in task
Hi all, I have three activities. Activity A start activity B by the method startActivityForResult, and Activity B start activity C by the method startActivity. Then, after starting activity C, activity B kill himself by finish(). Now the task stack stored two activities: A and C. My question is: how can I finish activity A when I finish activity C. or how can I clear the whole stack of the task. Thanks a lot! James -- 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 clear acti vity stack in task
thanks for the quick answer. but is there any other solutions? i mean do not change the code of activity a and b, just clear the task stack. 在 2010-1-6 下午7:55,jwei512 jwei...@gmail.com编写: Are you looking for a practical answer? Or was this more of a theoretical thought experiment type of question? If you want the practical answer, then I guess the simple thing to do would be to kill Activity A in it's onActivityResult method (which should be overridden since you are calling startActivityForResult on Activity B). In other words, before B kills itself, do something like setResult(RESULT_OK) and then kill B. Once this happens, it will return to Activity A's onActivityResult method, and in there you can have something like if(resultCode == RESULT_OK) { finish(); } And so at this point, Activity C is what your user should see, and Activity A/B have been killed off, and so once you kill Activity C your Activity stack is cleared and you're good to go. Hope this is what you were looking for. - jwei http://thinkandroid.wordpress.com On Jan 6, 1:12 am, Zhihong GUO gzhh...@gmail.com wrote: Hi all, I have three activities. Ac... -- 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 -- 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] Is the facebook application in Motorola Droid open source?
Hi All, Can I download the facebook application in Droid? or it is not open source in Android project. Thank you so much James -- 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: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange
Hi All, Just make clear of my question: is there an open source plugin for account management and contact sync for facebook in Andorid? Thanks a lot. James 2009/12/5 Zhihong GUO gzhh...@gmail.com Hi all, I am wandering if there is any examples on the account and sync plugin in Android Open Source project. For example, if there are any code on Facebook plugin in contacts and sync. If not, can any one help me give the codes in Eclair contacts and email application related to the topic. Thanks James 2009/12/3 Jerry Brady jerry.br...@gmail.com The droids run 2.0, but the published Eclair source is 2.1 and that was the fastest way to get an emulator that included the Accounts Sync settings that isn't in the 2.0 emulator. AFAIK you'll need that in order to affect any testing that will work on shipping 2.0 devices. I don't have time to look into this any further at the moment as I'm currently looking into the *next* issue which is the way in which the contacts application handles contacts from account sources other than the built-in Google and Exchange sources... Cheers, Jerry On Dec 1, 8:02 pm, Dan Dumont ddum...@gmail.com wrote: Drat...I don't want to build 2.1... I thought the droids ran 2.0? anyway...I updated the project. Please let me know if it works :) I get an error still in the 2.0 emulator... 12-01 19:54:36.454: ERROR/AndroidRuntime(93): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.SYNC_SETTINGS (has extras) } On Tue, Dec 1, 2009 at 4:18 PM, Dan Dumont ddum...@gmail.com wrote: I'll update my project asap!Thanks for looking into this!! when we create the binder, do we need to verify that the account variable is for us? IE... will the intent be triggered for all providers, and we must figure out if the info is our or not? On Mon, Nov 30, 2009 at 2:35 PM, Jerry Brady jerry.br...@gmail.com wrote: Guys following this issue, I found the ultimate cause of the error and found a workaround that will allow you to work on a Droid. One thing that's helpful is building yourself an Eclair 2.1 SDK so you can use an emulator (2.1) that includes the Accounts Sync settings option we need in working with accounts: - From the the root of the android source tree: . build/envsetup.sh lunch sdk-eng make sdk (may want to use -jsomething based on your number of cores) find the SDK in out/host/linux/sdk/... From the SDK, copy platforms/android-#.# into your SDK/platform on your destination pc. If that's running windows, copy platforms/android-2.0/tools/* into your newly created platforms tools folder. Use the AVD Manager to create an AVD for this new platform. --- The crash is caused by an undocumented assumption in the Android code that handles accounts and sync. They are *very* closely related. It turns out that the Accounts and Sync settings plugin after getting the accounts on the system, uses the content service to scan for services on the system that implement the intent android.content.SyncAdapter. Since our code doesn't implement this, the search came up empty handed and since the code assumed this would never happen, BAM, null pointer exception and crash. It turns out that the solution is to have your application (or something on the system) implement a service that catches the intent android.content.SyncAdapter that returns an IBinder to an object that extends AbstractThreadedSyncAdapter (just like we did for our AbstractAccountAuthenticator). I took examples from the source code for the Email application in android, but here are the relevant bits to setup an empty sync adapter for contacts that does nothing but gets you past the exception: AndroidManifest.xml: --- - !--Required stanza to register the ContactsSyncAdapterService with SyncManager -- service android:name=com.YOURDOMAIN.YOURAPP.ContactsSyncAdapterService android:exported=true intent-filter action android:name=android.content.SyncAdapter / /intent-filter meta-data android:name=android.content.SyncAdapter android:resource=@xml/syncadapter_contacts / /service xml/syncadapter_contacts - : --- - sync-adapter xmlns:android=http://schemas.android.com/apk/res/ android android:contentAuthority=com.android.contacts android:accountType=com.YOURDOMAIN.YOURAPP / ContactSyncAdapter: = public class ContactsSyncAdapterService extends Service { private static final String TAG
Re: [android-developers] Re: 2.0 AccountManager - Implementing a new account type with Google, Facebook and Exchange
Hi all, I am wandering if there is any examples on the account and sync plugin in Android Open Source project. For example, if there are any code on Facebook plugin in contacts and sync. If not, can any one help me give the codes in Eclair contacts and email application related to the topic. Thanks James 2009/12/3 Jerry Brady jerry.br...@gmail.com The droids run 2.0, but the published Eclair source is 2.1 and that was the fastest way to get an emulator that included the Accounts Sync settings that isn't in the 2.0 emulator. AFAIK you'll need that in order to affect any testing that will work on shipping 2.0 devices. I don't have time to look into this any further at the moment as I'm currently looking into the *next* issue which is the way in which the contacts application handles contacts from account sources other than the built-in Google and Exchange sources... Cheers, Jerry On Dec 1, 8:02 pm, Dan Dumont ddum...@gmail.com wrote: Drat...I don't want to build 2.1... I thought the droids ran 2.0? anyway...I updated the project. Please let me know if it works :) I get an error still in the 2.0 emulator... 12-01 19:54:36.454: ERROR/AndroidRuntime(93): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.SYNC_SETTINGS (has extras) } On Tue, Dec 1, 2009 at 4:18 PM, Dan Dumont ddum...@gmail.com wrote: I'll update my project asap!Thanks for looking into this!! when we create the binder, do we need to verify that the account variable is for us? IE... will the intent be triggered for all providers, and we must figure out if the info is our or not? On Mon, Nov 30, 2009 at 2:35 PM, Jerry Brady jerry.br...@gmail.com wrote: Guys following this issue, I found the ultimate cause of the error and found a workaround that will allow you to work on a Droid. One thing that's helpful is building yourself an Eclair 2.1 SDK so you can use an emulator (2.1) that includes the Accounts Sync settings option we need in working with accounts: - From the the root of the android source tree: . build/envsetup.sh lunch sdk-eng make sdk (may want to use -jsomething based on your number of cores) find the SDK in out/host/linux/sdk/... From the SDK, copy platforms/android-#.# into your SDK/platform on your destination pc. If that's running windows, copy platforms/android-2.0/tools/* into your newly created platforms tools folder. Use the AVD Manager to create an AVD for this new platform. --- The crash is caused by an undocumented assumption in the Android code that handles accounts and sync. They are *very* closely related. It turns out that the Accounts and Sync settings plugin after getting the accounts on the system, uses the content service to scan for services on the system that implement the intent android.content.SyncAdapter. Since our code doesn't implement this, the search came up empty handed and since the code assumed this would never happen, BAM, null pointer exception and crash. It turns out that the solution is to have your application (or something on the system) implement a service that catches the intent android.content.SyncAdapter that returns an IBinder to an object that extends AbstractThreadedSyncAdapter (just like we did for our AbstractAccountAuthenticator). I took examples from the source code for the Email application in android, but here are the relevant bits to setup an empty sync adapter for contacts that does nothing but gets you past the exception: AndroidManifest.xml: --- - !--Required stanza to register the ContactsSyncAdapterService with SyncManager -- service android:name=com.YOURDOMAIN.YOURAPP.ContactsSyncAdapterService android:exported=true intent-filter action android:name=android.content.SyncAdapter / /intent-filter meta-data android:name=android.content.SyncAdapter android:resource=@xml/syncadapter_contacts / /service xml/syncadapter_contacts - : --- - sync-adapter xmlns:android=http://schemas.android.com/apk/res/ android android:contentAuthority=com.android.contacts android:accountType=com.YOURDOMAIN.YOURAPP / ContactSyncAdapter: = public class ContactsSyncAdapterService extends Service { private static final String TAG = ContactsSyncAdapterService; private static SyncAdapterImpl sSyncAdapter = null; private static final Object sSyncAdapterLock = new Object(); public ContactsSyncAdapterService() {
[android-developers] how to know if the device is to be powered off
Hi All, My application want to know the device is to be power off, so that it can send out the logout message to the server. How to do that? Thanks a lot. James -- 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 know if the device is to be powered off
I don't think it is not good design. For example, a presence status updating can be done by such design. 2009/12/5 jotobjects jotobje...@gmail.com Ultimately it is not a good design to require log off. What if the user goes into a building where there is no reception and it is not possible to contact the server? On Dec 4, 12:33 am, Zhihong GUO gzhh...@gmail.com wrote: Hi All, My application want to know the device is to be power off, so that it can send out the logout message to the server. How to do that? Thanks a lot. James -- 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 -- 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] can I get system service in a my personal service?
Hi all, I got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service { @Override public IBinder onBind(Intent intent) { return mBinder; } /** * The implementation of IMyService defined through AIDL. */ public IBinder mBinder = new IMyService.Stub() { public Map getConfig() { ... TelephonyManager tel = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); ... The code will throw an NullPointerException on the line: (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); why?? -- 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] can I get system service in a my personal service?
Thanks for the reply, I uses the permission as: uses-permission android:name=android.permission.READ_PHONE_STATE / uses-permission android:name=android.permission.ACCESS_NETWORK_STATE / I had test the code TelephonyManager tel = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE) in an activity and it works well. 2009/11/30 Wojciech Topolski wojciech.topol...@gmail.com Hi 2009/11/30 Zhihong GUO gzhh...@gmail.com Hi all, I got an problem on getting the TelephonyManager in my personal service. The code as below: public class MyService extends Service { @Override public IBinder onBind(Intent intent) { return mBinder; } /** * The implementation of IMyService defined through AIDL. */ public IBinder mBinder = new IMyService.Stub() { public Map getConfig() { ... TelephonyManager tel = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); ... The code will throw an NullPointerException on the line: (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); why?? Maybe permission in AndroidManifest.xml is required? On TelephoneManeger website is information: Note that acess to some telephony information is permission-protected. Your application cannot access the protected information unless it has the appropriate permissions declared in its manifest file. Where permissions apply, they are noted in the the methods through which you access the protected information. -- === Wojciech Topolski wojciech.topol...@gmail.com === -- 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 -- 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] getInstalledApplications of the PackageManager can't return all of the applicaitons
Hi all, I just found that when I use the getInstalledApplicationshttp://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledApplications(int) of PackageManager, I can't get all of the applications installed. The code as below: PackageManager pm = context.getPackageManager(); Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); ListResolveInfo appList = pm.queryIntentActivities(mainIntent, 0); Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm)); int count = appList.size(); it seems that the code above doesn't return some of the applications installed from SD. Why? -- 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: getInstalledApplications of the PackageManager can't return all of the applicaitons
Another question is about how can I get the vendor information of an application by 1.5 sdk, thanks a lot! 2009/11/25 Zhihong GUO gzhh...@gmail.com Hi all, I just found that when I use the getInstalledApplicationshttp://developer.android.com/reference/android/content/pm/PackageManager.html#getInstalledApplications(int) of PackageManager, I can't get all of the applications installed. The code as below: PackageManager pm = context.getPackageManager(); Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); ListResolveInfo appList = pm.queryIntentActivities(mainIntent, 0); Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm)); int count = appList.size(); it seems that the code above doesn't return some of the applications installed from SD. Why? -- 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: Wallpaper
make the question clear, how can I add images to the wallpaper gallery? 2009/11/7 Zhihong GUO gzhh...@gmail.com But where is the wallpaper gallery locate. It seems that only one image in /data/data/ com.android.settings/files/wallpaper 2009/2/12 Rohit mord...@gmail.com Talking to myself here :( Here is what I figured out. The wallpaper is saved in /data/data/ com.android.settings/files/wallpaper and yes there is a wallpaper service. Rohit --~--~-~--~~~---~--~~ 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: Wallpaper
In fact, providing multiple wallpaper picker will makes the customers puzzled. It is not good user experience. On Hero or Click, there are HTC's wallpaper picker, Google's wallpaper picker and may be 3rd party's picker. That is a disaster for user experience. 2009/11/9 Dianne Hackborn hack...@android.com You can't, these are just the default images that are built into the platform. You can make your own wallpaper picker that the user can go through instead of the built-in one (or the image picker that is also available to them). On Sun, Nov 8, 2009 at 5:13 AM, Zhihong GUO gzhh...@gmail.com wrote: make the question clear, how can I add images to the wallpaper gallery? 2009/11/7 Zhihong GUO gzhh...@gmail.com But where is the wallpaper gallery locate. It seems that only one image in /data/data/ com.android.settings/files/wallpaper 2009/2/12 Rohit mord...@gmail.com Talking to myself here :( Here is what I figured out. The wallpaper is saved in /data/data/ com.android.settings/files/wallpaper and yes there is a wallpaper service. Rohit --~--~-~--~~~---~--~~ 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- 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: Wallpaper
But where is the wallpaper gallery locate. It seems that only one image in /data/data/ com.android.settings/files/wallpaper 2009/2/12 Rohit mord...@gmail.com Talking to myself here :( Here is what I figured out. The wallpaper is saved in /data/data/ com.android.settings/files/wallpaper and yes there is a wallpaper service. Rohit --~--~-~--~~~---~--~~ 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] does XT9 keyboard support in Android 2.0?
Hi all, Could anyone give the information whether XT9 is supported on Andoird 2.0? Thanks James -- 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: does XT9 keyboard support in Android 2.0?
Another question is when 2.0 source code will be published, also. 2009/11/6 Zhihong GUO gzhh...@gmail.com Hi all, Could anyone give the information whether XT9 is supported on Andoird 2.0? Thanks James -- 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 know if it the emulator or device
Hi all, How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the application is running on emulator, just skip the wifi detection, while on real device, the wifi connection check should be done. how to do that? Thank a lot, James -- 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 know if it the emulator or device
Hi lianwei, what's the means of ro.kernel.qemu? 2009/11/4 lianwei lianwei.w...@gmail.com if (1.equals(android.os.SystemProperties.get(ro.kernel.qemu))) { // Run in Emulator } On Nov 4, 9:21 am, Emmanuel emmanuel.ast...@gmail.com wrote: On Nov 3, 2:29 pm, Zhihong GUO gzhh...@gmail.com wrote: Hi all, How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the application is running on emulator, just skip the wifi detection, while on real device, the wifi connection check should be done. how to do that? Thank a lot, James Alternatively, you can check the phone model variable: PhoneModel = android.os.Build.MODEL; On my G1 phone, it gives me HTC DREAM For the emulator, it gives sdk. I don't know what method is preferred by google, but it feels more secure to me than using the ANDROID_ID var... Emmanuelhttp://androidblogger.blogspot.com/http://www.alocaly.com/ -- 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 -- 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 know if it the emulator or device
It can not work. There is no exception throws and the wifiManager returned can be used as wifiManager.isEnabled() 2009/11/4 Dianne Hackborn hack...@android.com On Tue, Nov 3, 2009 at 11:10 AM, Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com wrote: Furthermore the API call (WifiManager)mContext.getSystemService(mWifiService); gives you an exception on the Emulator which is an indication that Wifi radio is not supported. That's only because it doesn't happen to currently be implemented in the emulator. This could very well change in the future. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- 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 read the app package under /data/app
Hi all, I just find a solution on get app package binary: first, the manifest.xml should have permission: INSTALL_PACKAGE then: PackageManager pm = this.getPackageManager(); Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); ListResolveInfo appList = pm.queryIntentActivities(mainIntent, 0); Collections.sort(appList, new ResolveInfo.DisplayNameComparator(pm)); int count = appList.size(); for (int i = 0 ;i count; i++){ new File f = new File(/data/app/+appList.get(i).activityInfo.applicationInfo.packageName+.apk); if (f != null){ read file binary here } } My question now is why the application's name under system/app have different format from the app under /data/app. For example, the app under system folder is looks like AlarmClock.apk, while the app under /data/app fold is com..xxx.test.apk. 2009/10/28 vovkab vov...@gmail.com Seems like, you don't know what you need. Use WallpaperManager to get wallpapper. Why you need filename from package o_O? On 28 окт, 10:46, Zhihong GUO gzhh...@gmail.com wrote: Can you give some example code on how to get the file name of the current wallpaper? Thanks 2009/10/27 vovkab vov...@gmail.com Yes you can. Just read it with File apkfile = new File(/data/app/com.package.name); On 27 окт, 11:43, Zhihong GUO gzhh...@gmail.com wrote: Hi All, I want to read out the binary content of the .apk packages installed in /data/app. Not only the package information, but the content of the package itselt. How can I do that. Thanks a lot, James --~--~-~--~~~---~--~~ 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 read the app package under /data/app
Can you give some example code on how to get the file name of the current wallpaper? Thanks 2009/10/27 vovkab vov...@gmail.com Yes you can. Just read it with File apkfile = new File(/data/app/com.package.name); On 27 окт, 11:43, Zhihong GUO gzhh...@gmail.com wrote: Hi All, I want to read out the binary content of the .apk packages installed in /data/app. Not only the package information, but the content of the package itselt. How can I do that. Thanks a lot, James --~--~-~--~~~---~--~~ 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 read the app package under /data/app
Hi All, I want to read out the binary content of the .apk packages installed in /data/app. Not only the package information, but the content of the package itselt. How can I do that. Thanks a lot, James --~--~-~--~~~---~--~~ 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 read the app package under /data/app
but how can I get the com.package.name. It seems that you can't get all of the files' name by listFile() method. 2009/10/27 vovkab vov...@gmail.com Yes you can. Just read it with File apkfile = new File(/data/app/com.package.name); On 27 окт, 11:43, Zhihong GUO gzhh...@gmail.com wrote: Hi All, I want to read out the binary content of the .apk packages installed in /data/app. Not only the package information, but the content of the package itselt. How can I do that. Thanks a lot, James --~--~-~--~~~---~--~~ 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: Deep sleep behaviour
Hi Murphy, Thanks for the reply. Will the data connection over 3G/GPRS keep alive when the CPU sleep? Will the CPU be waked up when there is data transmition on the data connection? James 2009/9/16 Mark Murphy mmur...@commonsware.com Yusuf Saib (T-Mobile USA) wrote: Activity.onDestroy() onDestroy() is called when the activity is destroyed. Nothing is called on the activity when the CPU shuts down. With that in mind... On Sep 15, 6:36 am, Zhihong GUO gzhh...@gmail.com wrote: how to get notification before the CPU get to deep sleep? There is no notification when the CPU shuts down. I want to do some task before my application be killed by the system. When the CPU shuts down, your application is not killed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html --~--~-~--~~~---~--~~ 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: Deep sleep behaviour
how to get notification before the CPU get to deep sleep? I want to do some task before my application be killed by the system. 2009/9/9 Dianne Hackborn hack...@android.com When no wake locks are held, the CPU will not run at all, and time has effectively stopped for most scheduling (that is scheduling based on SystemClock.uptimeMillis(), which is what most things like Handler and Java timeouts use). On Tue, Sep 8, 2009 at 10:19 PM, sukumar bhashyam bhashyam.suku...@gmail.com wrote: Hello, I have some basic doubts with Deep Sleep on Android device. Deep sleep will turn the CPU to OFF. Suppose if I have a service which does some operations every 5 sec and I din't acquire any power manager locks in my service. When device goes to Deep sleep, will my service still running?. If CPU is turned off on Deep Sleep, when Device comes out of Deep Sleep, will my service continues(resumes) its operations which it was doing earlier?. Can anyone please help me out in understanding this. Thanks, Sukumar. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ 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: Unbale to opem IM app.
you have to open the project under IM/samples/PluginDemo with eclipse, build and install the project to emulator. 2009/4/29 srinivas nivasn...@gmail.com Hi, On cupcake builds we are unable to open IM app from main menu. When we open the app, it gets closed immediately and adb logs show the following error. 01-07 03:28:15.939 E/ImApp ( 3147): [IM.FrontDoorPlugin] no plugins found! bail... 01-07 03:28:16.139 E/IM ( 3147): Ignore bad IM frontdoor plugin: ResolveInfo{43780a30 com.android.im.app.FrontDoorPlugin p=0 o=0 m=0x108000}. No providers found 01-07 03:28:16.139 E/IM ( 3147): [onCreate] load plugin failed, no plugin found! It is trying to load some thirdpartyplugins in packages/apps/IM/src/ com/android/im/app/FrontDoorPlugin.java file. Here it is getting plugins count zero and after that the app gets closed. Can any one suggest what can be wrong? Do we need some thirdpartyplugins for this to work? Any pointers will be very very helpful. Thanks In advance, Srinivas --~--~-~--~~~---~--~~ 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: Unbale to opem IM app.
Hi all, I got errors when I install the plugin, sometime. I build a system image from the source code and copy the system.img to androidsdk1.5/platforms/android-1.5/images/. When I build the sample IM plugin and install it. Sometime I got error: package com.android.im.plugin.demo has no signatures that match those in shared user android.uid.im; ignoring It seems that the demo plugin use same user id as the IM.apk in system image. But how to get the signature of the IM app in system image and how to add the signature to demo plugin? 2009/5/27 Zhihong GUO gzhh...@gmail.com you have to open the project under IM/samples/PluginDemo with eclipse, build and install the project to emulator. 2009/4/29 srinivas nivasn...@gmail.com Hi, On cupcake builds we are unable to open IM app from main menu. When we open the app, it gets closed immediately and adb logs show the following error. 01-07 03:28:15.939 E/ImApp ( 3147): [IM.FrontDoorPlugin] no plugins found! bail... 01-07 03:28:16.139 E/IM ( 3147): Ignore bad IM frontdoor plugin: ResolveInfo{43780a30 com.android.im.app.FrontDoorPlugin p=0 o=0 m=0x108000}. No providers found 01-07 03:28:16.139 E/IM ( 3147): [onCreate] load plugin failed, no plugin found! It is trying to load some thirdpartyplugins in packages/apps/IM/src/ com/android/im/app/FrontDoorPlugin.java file. Here it is getting plugins count zero and after that the app gets closed. Can any one suggest what can be wrong? Do we need some thirdpartyplugins for this to work? Any pointers will be very very helpful. Thanks In advance, Srinivas --~--~-~--~~~---~--~~ 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: SyncML on android
http://www.funambol.com/news/pressrelease_2007.11.14.php it works 2009/4/1 Gulfam gulfa...@gmail.com Hi all, I want to implement SyncML on android. I want to sync my contacts and calendar on my server.Is it possible in android ? if yes then how ?. I am waiting your response. Thanks, Gulfam --~--~-~--~~~---~--~~ 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: why there are two DRM implementation in Android
You mean the DRM in opencore is not used at all, right?. Then how to play a video protected by DRM? 2008/11/13 [EMAIL PROTECTED] [EMAIL PROTECTED] The only DRM in use at this time is forward lock in android.drm.mobile1. There are hooks for DRM in OpenCore, but it is not used at all. On Nov 12, 10:55 pm, Zhihong GUO [EMAIL PROTECTED] wrote: Hi all, I found two DRM implementation in Android. One is locate in the package android.drm.mobile1, which is used in Ringtone, MMS and picture viewer. The other is provided by PacketVideo, used in video download and playing. It seems that the two implementation are separate and have no relationship at all. Why there is no uniform DRM solution in Android. Or Google will merge the two in the future. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Source Code Now Available
some questions about the email application in the source package. 1 Why there is no email providers like contacts and calendar applications. The email application has to do everything, and make it very huge and complicate. 2 The email application will start a email service that will synchronize with the mail server, so that the push mail is actually done by a cycle pull action, right? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] does the syncml package follow OMA DS 1.2 completely
Hi all, I have read the the source code in android.syncml, but I am not sure if it follow OMA DS 1.2 or not. Can anyone tell me? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: does the syncml package follow OMA DS 1.2 completely
but I really don't know how the code of the package be used. 2008/10/27 Zhihong GUO [EMAIL PROTECTED] http://git.source.android.com/?p=platform/frameworks/base.git;a=tree;f=core/java/android/syncml;h=c53ec87a1557aac9cdb6c49b1070062d71912428;hb=1ef4564d4ad14f2c5dcb162636875ca8aed5e4d9 2008/10/27 Sean Sullivan [EMAIL PROTECTED] On Oct 26, 5:17 am, Zhihong GUO [EMAIL PROTECTED] wrote: I have read the the source code in android.syncml, but I am not sure if it follow OMA DS 1.2 or not. Can anyone tell me? Where did you find android.syncml code? Is this code in the Git repository? I looked in the Git repository and didn't see anything http://git.source.android.com/ Sean --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Source Code Now Available
Hi hackbod, Where can I find the code of these packages: android.provider.Sync android.speech.recognition com.android.internal or they will not open? 2008/10/21 Al Sutton [EMAIL PROTECTED] http://source.android.com/ For those that missed the announcements. Al. http://andappstore.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Source Code Now Available
got it, thank you so much 2008/10/24 tauntz [EMAIL PROTECTED] They are all in the platform/frameworks/base.git @ http://android.git.kernel.org Specifically: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/provider/Sync.java http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android/speech/recognition http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/com/android/internal Tauno On Fri, Oct 24, 2008 at 11:54 AM, Zhihong GUO [EMAIL PROTECTED] wrote: Hi hackbod, Where can I find the code of these packages: android.provider.Sync android.speech.recognition com.android.internal or they will not open? 2008/10/21 Al Sutton [EMAIL PROTECTED] http://source.android.com/ For those that missed the announcements. Al. http://andappstore.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Source Code Now Available
can anyone tell me where is the maps source code? 2008/10/21 Al Sutton [EMAIL PROTECTED] http://source.android.com/ For those that missed the announcements. Al. http://andappstore.com/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android Source Code Now Available
So where is the maps code in sdk package com.google.android.maps ? 2008/10/23 Romain Guy [EMAIL PROTECTED] The Maps application is not open sourced. On Wed, Oct 22, 2008 at 11:22 PM, Zhihong GUO [EMAIL PROTECTED] wrote: can anyone tell me where is the maps source code? 2008/10/21 Al Sutton [EMAIL PROTECTED] http://source.android.com/ For those that missed the announcements. Al. http://andappstore.com/ -- Romain Guy www.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: about the sdk 1.0 source code
Ludwig, Thank you for the answer.I found the implementation of com.google.android.maps was moved to the /system/framework/com.google.android.maps.jar in the emulator. So that in the SDK of 0.9 and 1.0, we have to indicate which library we will use for map application by a line uses-library android:name=com.google.android.maps / in Manifest file. 2008/10/15 Ludwig [EMAIL PROTECTED] The reason for this is that the SDK does not contain a full implementation of Android any more, the full implementation is in the emulator and (of course) on the phone. The SDK only contains the stubs so that the libraries will link, but since the implementation of vital parts is missing it cannot be run. It is a way of fooling the Java compiler/linker. Ludwig 2008/10/15 [EMAIL PROTECTED] Hi all, I am reading the sdk 1.0 source code(decompiled by jad). It is very strange that there are so many: throw new RuntimeException(Stub!); in the classes. for example, the MapView are public class MapView extends ViewGroup { ... public MapView(Context context, String apiKey) { super((Context)null, (AttributeSet)null, 0); throw new RuntimeException(Stub!); } .. public MapView(Context context, String apiKey) { super((Context)null, (AttributeSet)null, 0); throw new RuntimeException(Stub!); } ... so where is the implementation of those methods? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MjSip authentication problem
Have you try a user id followed by @xx.xx.xx.xx where xx.xx.xx.xx is the server ip. 2008/7/8 andyn [EMAIL PROTECTED]: Hi there, have anyone tried to get the demo application running included in the MjSip zip package from HSC? The whole zip package can be downloaded under: http://www.hsc.com/resourceCenter/resource.aspx I used Wireshark for checking the data transmitted to my sip server. But there's only one request been sent which is answered by the server with an 401 Unauthorized. To register again (to start a new try) the emulator must be restarted. I checked the authentication data by running x-lite on my notebook and it works. So it doesn't seem to be a server problem does it? And data is transmitted to server (hence it isn't a forwarding / firewall problem)... Any suggestions? I hope to get some help... Thanks Andy --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---