[android-developers] Jagged array's objects in the ListView
You. Need to createn custom adaptor extending base adaptor which uses your data. Google it if you don't know how to extend baseadaptor. -- 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] Problem while deleting browser history from doInBackground method of AsyncTask
Just Google it ;) http://www.google.co.in/search?aq=fclient=chrome-mobilesourceid=chrome-mobileie=UTF-8q=Can't+create+handler+inside+thread+that+has+not+called+Looper.prepare() -- 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 Android cache http-requested data?
Does Android cache http-requested data? I keep a small text file with various app-settings on my webserver. When my app launches, it sends an http request to my webserver to grab the text file and retrieve the settings. This enables me to update the settings of an app installed on a phone in the field from the server. The problem is, when I update the text file on the server, I usually don't see an immediate change in the text file retrieved by my app. It can take hours for the change to show up in my app's http requests. I know that the problem is not merely one of the file updating through various buffers/caches on the webserver because I can see the new version of the file if I load the same URL in a web browser...including a web browser on the exact same Android device I am running my app on...so a web browser (even one on the phone itself) sees the updated file immediately after I change it, but my app doesn't see it for several hours. It feels like Android is caching previous http request results and returning those to apps that make repeated requests instead of reloading the URLs from the web...and it takes a very long time to label this presumed cache as stale and reload the file from the server...several hours. On a side note, I have tried killing the app to make sure it's totally gone. I have even tried rebooting the phone and yet the problem still persists...which is mind-boggling. I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Here's how I pull the text file from the web server into my app. Any ideas why a browser on the same device successfully retrieves the updated file and my code doesn't? String address = http://URL_of_text_file_on_my_webserver.txt;; URL url = new URL(address); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream is = (InputStream) conn.getContent(); Reader reader = new InputStreamReader(is, UTF-8); StringWriter writer = new StringWriter(); char[] buffer = new char[1024]; for (int length = 0; (length = reader.read(buffer)) 0;) writer.write(buffer, 0, length); is.close(); reader.close(); writer.close(); String fileStr = writer.toString(); 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] Button#onClickListener thread unsafe?
In my project, I has a layout as follows: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical Button android:id=@+id/startButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=start / Button android:id=@+id/stopButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=stop / /LinearLayout It is quite simple. There are two buttons. One is start and the other is stop. And an Activity as follows: package button.test; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class MainActivity extends Activity { private static final String TAG = MainActivity; private Button startButton; private Button stopButton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startButton = (Button)findViewById(R.id.startButton); startButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,startButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(startButton); } arg0.setEnabled(false); stopButton.setEnabled(true); } }); stopButton = (Button)findViewById(R.id.stopButton); stopButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,stopButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(stopButton); } arg0.setEnabled(false); startButton.setEnabled(true); } }); } } The logic is: (1)When the start button is clicked, disable it and enable the stop button. (2)When the stop button is clicked, disable it and enable the start button. What I expect is that when the onClickListener of a button is executing, the button state should be enabled. It is impossible to fire the onClickListener when the button is disabled. Therefore, I add the if block and the RuntimeException to detect it. It works when I interact with it but it crashes when I run the monkey test (adb shell monkey -p button.test -v 5). The logcat messages are as follows: D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): stopButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): false main D/AndroidRuntime(1836): Shutting down VM W/dalvikvm(1836): threadid=1: thread exiting with uncaught exception (group=0x41745300) E/AndroidRuntime(1836): FATAL EXCEPTION: main E/AndroidRuntime(1836): java.lang.RuntimeException: startButton E/AndroidRuntime(1836): at button.test.MainActivity $1.onClick(MainActivity.java:24) E/AndroidRuntime(1836): at android.view.View.performClick(View.java: 4084) E/AndroidRuntime(1836): at android.view.View $PerformClick.run(View.java:16966) E/AndroidRuntime(1836): at android.os.Handler.handleCallback(Handler.java:615) E/AndroidRuntime(1836): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime(1836): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(1836): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime(1836): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(1836): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(1836): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime(1836): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) E/AndroidRuntime(1836): at dalvik.system.NativeStart.main(Native Method) Note that at line 4, the button state is disabled when the onClickListener is executing!!! It is quite strange. In addition, both the onClickListeners are run on the main thread. What I expect is that there is no race condition between the
Re: [android-developers] Does Android cache http-requested data?
On Sun, Oct 14, 2012 at 7:58 AM, Keith Wiley kbwi...@gmail.com wrote: Any ideas why a browser on the same device successfully retrieves the updated file and my code doesn't? Not sure, but looking at the API, there's this: http://developer.android.com/reference/java/net/URLConnection.html#getUseCaches%28%29 And an equivalent set function. Have you tried that? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Play Store removals
On Sat, Oct 13, 2012 at 1:05 PM, Danny dvhtcsensat...@gmail.com wrote: What can I do to get in contact with a live person at Google ? Have connections to someone working at Google. Or pester one of them on Google+ maybe (not that I'm advocating this, but you gotta do what you gotta do...) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Getting my buttons to work.
On Fri, Oct 12, 2012 at 6:20 PM, Justin Anderson magouyaw...@gmail.comwrote: Have you looked at the logcat output for any signs of errors or anything? Also, have you set breakpoints or log messages to trace whether or not your code is even executing? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to add string.xml for a different locale
On Fri, Oct 12, 2012 at 1:13 PM, Farhan Tariq farhan@gmail.com wrote: Android uses es to refer to english language. No it doesn't, it uses *en* (*EN*glish). *es* is for Spanish (*ES*pañol*).* - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Does Android cache http-requested data?
Thanks, I'll definitely look into that. I can see that it the cache value is set to true but I can't test whether turning it off fixes the problem right now. I'll try it later. That seems like a very strong possibility for this issue. Thanks again. -- 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] It seems easy to get rid of a competitor’s app
Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and **[#1121348892] ** *. Regards, Terry -- 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: It seems easy to get rid of a competitor’s app
Correction: The reference numbers (for removals) are *[#1121348892] and ** [#1121360722]*** * * kl. 10:51:49 UTC+2 søndag 14. oktober 2012 skrev Terry følgende: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and ** [#1121348892]** *. Regards, Terry -- 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 Android cache http-requested data?
Keith Wiley schrieb: I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Caching of web server chains can be very elaborate. See for example here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html 14.9 Cache-Control So eventually setUseCache() to false can help, but might slowdown your requests. It could be also an issue on the server side, that for example the server emits a wrong Expires header, this header is also described in the above RFC. If you re-access the same file multiple times and if you can remember the modified date, then the setIfModifiedDate() comes very handy. If the data on the server doesn't have a newer modified date, you will get: HTTP_NOT_MODIFIED = 304; Bye -- 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 handle large Parcelable ArrayList in Android ?
I'm developing an Android app that is a client to a JSON webservice API. I have classes of resource objects (some are nested) and I pass results from an IntentService that access the webserive using the Parcelable interface for all the resource classes. the webservice returns arrays or results that can be potentially large (because of the nesting, for example, a post object also contains comments array, each comment also contains a user object). currently I'm either inserting the results into a SQlite database or displaying them in a ListView. (my relevant methods are accepting ArrayListresourceClass as arguments). (some data need to be persistent stored and some should not). since I don't know what size of lists I can handle this way without reaching the memory limits, is this a good practice ? is it a better idea to save the parsed JSON to a local file immediately and pass the file path to theResultReceiver, then either insert to database from that file or display the data ? is there a better way to handle this ? btw - I'm parsing the JSON as a stream with Gson's Reader so there shouldn't be memory issues at that stage. -- 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] Invitation to use Google Talk
I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- You've been invited by love mountain to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-c15b8c0cef-84bba2f0b4-sfMQODBZ1-AvMCmuCCbu6fh00UI To sign up for a Google account and get started with Google Talk, you can visit: http://mail.google.com/mail/a-c15b8c0cef-84bba2f0b4-sfMQODBZ1-AvMCmuCCbu6fh00UI?pc=en-rf---a Learn more at: http://www.google.com/intl/en/landing/accounts/ Thanks, The Google Team -- 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: It seems easy to get rid of a competitor’s app
http://www.chillingeffects.org/dmca512/ On Sunday, October 14, 2012 10:06:03 AM UTC+1, Terry wrote: Correction: The reference numbers (for removals) are *[#1121348892] and * *[#1121360722]*** * * kl. 10:51:49 UTC+2 søndag 14. oktober 2012 skrev Terry følgende: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and ** [#1121348892]** *. Regards, Terry -- 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: It seems easy to get rid of a competitor’s app
At the end of the Chilling Effects text you linked to, I found the following line: If the copyright owner does not notify the service provider within 14 business days that it has filed a claim against you in court, your materials can be restored to the Internet. This is obviously what Google has followed. But - if the copyright owner (i.e. the developer who succeeded in removing my apps) did file a claim against me in some court, - has Google really seen proof that he did so? (or did he just *say *that he did?) - why have I not received some proof/info of the fact that he did file this claim? - can the copyright owner undo (take back) the claim against me - and still be sure that my apps remain removed? - will Google continue to track this case? Now that the other deveoper has succeeded in removing my apps, I doubt that he will go through with an expensive court case, in order to obtain - what? Terry kl. 11:57:19 UTC+2 søndag 14. oktober 2012 skrev RichardC følgende: http://www.chillingeffects.org/dmca512/ On Sunday, October 14, 2012 10:06:03 AM UTC+1, Terry wrote: Correction: The reference numbers (for removals) are *[#1121348892] and **[#1121360722]*** * * kl. 10:51:49 UTC+2 søndag 14. oktober 2012 skrev Terry følgende: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and ** [#1121348892]** *. Regards, Terry -- 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] Does Android cache http-requested data?
FYI depending on how caching happens turning off the device won't necessarily solve your problems. kris On Sun, Oct 14, 2012 at 3:58 AM, Keith Wiley kbwi...@gmail.com wrote: Does Android cache http-requested data? I keep a small text file with various app-settings on my webserver. When my app launches, it sends an http request to my webserver to grab the text file and retrieve the settings. This enables me to update the settings of an app installed on a phone in the field from the server. The problem is, when I update the text file on the server, I usually don't see an immediate change in the text file retrieved by my app. It can take hours for the change to show up in my app's http requests. I know that the problem is not merely one of the file updating through various buffers/caches on the webserver because I can see the new version of the file if I load the same URL in a web browser...including a web browser on the exact same Android device I am running my app on...so a web browser (even one on the phone itself) sees the updated file immediately after I change it, but my app doesn't see it for several hours. It feels like Android is caching previous http request results and returning those to apps that make repeated requests instead of reloading the URLs from the web...and it takes a very long time to label this presumed cache as stale and reload the file from the server...several hours. On a side note, I have tried killing the app to make sure it's totally gone. I have even tried rebooting the phone and yet the problem still persists...which is mind-boggling. I am quite flummoxed. I am aware that Android is requesting and receiving a GZipInputStream, and I can see the input stream's type in the debugger, but that seems irrelevant to my issue. Here's how I pull the text file from the web server into my app. Any ideas why a browser on the same device successfully retrieves the updated file and my code doesn't? String address = http://URL_of_text_file_on_my_webserver.txt;; URL url = new URL(address); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream is = (InputStream) conn.getContent(); Reader reader = new InputStreamReader(is, UTF-8); StringWriter writer = new StringWriter(); char[] buffer = new char[1024]; for (int length = 0; (length = reader.read(buffer)) 0;) writer.write(buffer, 0, length); is.close(); reader.close(); writer.close(); String fileStr = writer.toString(); Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem while deleting browser history from doInBackground method of AsyncTask
So first of all, I'm a bit confused, why are you trying to clear the browser history? This is impossible to do on any phone that is 2.1 iirc. (Which means, basically all phones now.) Besides, you don't even know which browser the user is using. kris On Sat, Oct 13, 2012 at 3:14 AM, Bajrang Asthana asthana.bajr...@gmail.com wrote: I am facing very strange problem.I am working on app which clears browser history ,clipboard etc. I am doing all the clearing stuff through AsyncTask but getting error. Here is my code which i am using to clear browser history Browser.clearHistory(mApp.getContentResolver()); Browser.clearSearches(mApp.getContentResolver()); and getting below error- 10-13 11:10:29.662: E/AndroidRuntime(750): FATAL EXCEPTION: AsyncTask #1 10-13 11:10:29.662: E/AndroidRuntime(750): java.lang.RuntimeException: An error occured while executing doInBackground() 10-13 11:10:29.662: E/AndroidRuntime(750): at android.os.AsyncTask$3.done(AsyncTask.java:278) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.FutureTask.setException(FutureTask.java:124) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.lang.Thread.run(Thread.java:856) 10-13 11:10:29.662: E/AndroidRuntime(750): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 10-13 11:10:29.662: E/AndroidRuntime(750): at android.os.Handler.init(Handler.java:121) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.content.ClipboardManager$2.init(ClipboardManager.java:63) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.content.ClipboardManager.init(ClipboardManager.java:63) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.app.ContextImpl$7.createService(ContextImpl.java:285) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.app.ContextImpl$ServiceFetcher.getService(ContextImpl.java:198) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.app.ContextImpl.getSystemService(ContextImpl.java:1176) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.content.ContextWrapper.getSystemService(ContextWrapper.java:386) 10-13 11:10:29.662: E/AndroidRuntime(750): at com.ascentive.extremespeed.deepclean.ClipboardData.doClean(ClipboardData.java:20) 10-13 11:10:29.662: E/AndroidRuntime(750): at com.ascentive.extremespeed.deepclean.DeepCleanPage.onConfirmationDoClean(DeepCleanPage.java:588) 10-13 11:10:29.662: E/AndroidRuntime(750): at com.ascentive.extremespeed.deepclean.DeepCleanPage$InsertDataTask.doInBackground(DeepCleanPage.java:354) 10-13 11:10:29.662: E/AndroidRuntime(750): at com.ascentive.extremespeed.deepclean.DeepCleanPage$InsertDataTask.doInBackground(DeepCleanPage.java:1) 10-13 11:10:29.662: E/AndroidRuntime(750): at android.os.AsyncTask$2.call(AsyncTask.java:264) 10-13 11:10:29.662: E/AndroidRuntime(750): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 10-13 11:10:29.662: E/AndroidRuntime(750): ... 4 more If anyone has faced such issue please help me :) Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Does Android cache http-requested data?
Thanks for the great feedback on this everyone! -- 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: It seems easy to get rid of a competitor’s app
Escalate the issue with Google and point out that no legal action has actually been taken, and that they are required to reinstate your material. Follow through and do not relent until it happens or you are served with a court appearance. Then, if I were you, I would find out who is abusing the DMCA takedown and actually file suit against them. You probably have a decent case. On Sunday, October 14, 2012 6:31:04 AM UTC-7, Terry wrote: At the end of the Chilling Effects text you linked to, I found the following line: If the copyright owner does not notify the service provider within 14 business days that it has filed a claim against you in court, your materials can be restored to the Internet. This is obviously what Google has followed. But - if the copyright owner (i.e. the developer who succeeded in removing my apps) did file a claim against me in some court, - has Google really seen proof that he did so? (or did he just *say *that he did?) - why have I not received some proof/info of the fact that he did file this claim? - can the copyright owner undo (take back) the claim against me - and still be sure that my apps remain removed? - will Google continue to track this case? Now that the other deveoper has succeeded in removing my apps, I doubt that he will go through with an expensive court case, in order to obtain - what? Terry kl. 11:57:19 UTC+2 søndag 14. oktober 2012 skrev RichardC følgende: http://www.chillingeffects.org/dmca512/ On Sunday, October 14, 2012 10:06:03 AM UTC+1, Terry wrote: Correction: The reference numbers (for removals) are *[#1121348892] and **[#1121360722]*** * * kl. 10:51:49 UTC+2 søndag 14. oktober 2012 skrev Terry følgende: Two of my apps have been removed from the Google Play Store, (a free/trial version and a pro version of the same app). A developer of a similar app asked for them to be removed. The reason for removal was given as “Alleged copyright infringement (according to the terms of the Digital Millenium Copyright Act).” As I could not understand that my apps had violated any of his copyrights, I sent a DMCA counter notification to Google. After a few weeks, Google replied:If we do not receive notice that the complainant has brought a court action within 10 to 14 days, we will reinstate the material in question. This made me full of hope. I assumed that it meant that Google had not accepted the request for removal, and I did not think that the meager economy associated with an app could be the reason to start a costly legal action. After another few weeks, I received the following email from Google: “We are in receipt of your attached counter notification letter. Upon presenting the complainant with your counter notification letter, they responded stating their intention to take the matter to court. We will await your correspondence regarding the results of the court order before taking any further action.” I sent them another email, pointing out that I had had no information as to a court action, to which they replied: “Unfortunately we are unable to assist you any further regarding this issue at this point.” I still have heard nothing as to a legal action, neither from Google, nor the complainant or any court. So, the conclusion of this unhappy affair seems to be the following: if you want to remove some bothersome apps, you just have to complain to Google that your copyrights have been violated. If they do not agree, you just have to tell them that you intend to take the matter to court. (You don’t have to carry it through.) Then they will remove the apps you are asking for. Can it really be THIS easy to remove a competitor’s apps? Without any consequences? Or is there something I have misunderstood? In case anyone inside Google would care to take a closer look at this case, the reference numbers (for removals) are *[#1121348892] and ** [#1121348892]** *. Regards, Terry -- 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: It seems easy to get rid of a competitor’s app
On Sun, Oct 14, 2012 at 12:17 PM, Chris Sarbora top...@gmail.com wrote: Escalate the issue with Google and point out that no legal action has actually been taken, and that they are required to reinstate your material. Follow through and do not relent until it happens or you are served with a court appearance. Then, if I were you, I would find out who is abusing the DMCA takedown and actually file suit against them. You probably have a decent case. Except that the vast vast majority of indie developers have neither the time, legal experience, or money to do this. kris -- 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: device shaked? accelerometer once more
How did you determine the values for a0, a1, a2, b1, b2? I understand that a period of 83 ms results in a frequency of 12 Hz but how do I select base frequency and bandwith etc.? The dspguide does not explain this either ... Axel On Friday, February 12, 2010 7:44:39 AM UTC+1, Frank Weiss wrote: I finally got to spend some time on this, if anyone is still interested. The results are promising. I had to brush up on my DSP skills. The core of my proof of concept is this: /** * A recursive digital band-pass filter with sampling frequency of 12 Hz, center 3.6 Hz, bandwidth 3 Hz, * low cut-off 2.1 Hz, high cut-off 5.1 Hz. * * Source: http://www.dspguide.com/ch19/3.htm */ class Filter // inner class extends TimerTask { private float a0 = (float) 0.535144118; private float a1 = (float) -0.132788237; private float a2 = (float) -0.402355882; private float b1 = (float) -0.154508496; private float b2 = (float) -0.0625; private float x_1, x_2, y_1, y_2; // x_1 means x[n-1], etc. @Override public void run() { float x_0 = currentInput; // from the enclosing Activity float y_0 = a0 * x_0 + a1 * x_1 + a2 * x_2 + b1 * y_1 + b2 * y_2; currentOutput = y_0; // to the enclosing Activity x_2 = x_1; x_1 = x_0; y_2 = y_1; y_1 = y_0; } } I ran this on a java.util.Timer at 83 ms period, using the highest accelerometer sampling of about 10 ms on a Droid. I only used the X axis for the proof of concept. For testing, I displayed the RMS of the currentFilter output in a horizontal progress bar. The bar remains at zero when the device is stationary, 10% at most movements, including when the accelerometer X is +9, when the device is gently tapped on the X axis, or when the vibrator kicks in by changing the ringer volume. It goes to 100% when the device is shaken at a good 2 Hz or so along the X axis by hand. Checking the cut-off frequency (aside from taps and vibrator) is not really possibly manually. I did run into some forced closes, probably because in the proof of concept I didn't handle the timer in the Activity lifecycle correctly. The main problem is the battery use is very high, but this may be because of some other processing in my code in the sensor event listener. Let me know if you guys are still interested in detecting shake and if you have any questions. I'll try to post the the complete demo code when I get some time. -- 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] Button#onClickListener thread unsafe?
The input events are queued. So your case is valid. When you disable a button there can be already multiple events in the event queue. Sad but true :( On 14 October 2012 10:09, Greenhand cooperateonl...@gmail.com wrote: In my project, I has a layout as follows: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical Button android:id=@+id/startButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=start / Button android:id=@+id/stopButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=stop / /LinearLayout It is quite simple. There are two buttons. One is start and the other is stop. And an Activity as follows: package button.test; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class MainActivity extends Activity { private static final String TAG = MainActivity; private Button startButton; private Button stopButton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startButton = (Button)findViewById(R.id.startButton); startButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,startButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(startButton); } arg0.setEnabled(false); stopButton.setEnabled(true); } }); stopButton = (Button)findViewById(R.id.stopButton); stopButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,stopButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(stopButton); } arg0.setEnabled(false); startButton.setEnabled(true); } }); } } The logic is: (1)When the start button is clicked, disable it and enable the stop button. (2)When the stop button is clicked, disable it and enable the start button. What I expect is that when the onClickListener of a button is executing, the button state should be enabled. It is impossible to fire the onClickListener when the button is disabled. Therefore, I add the if block and the RuntimeException to detect it. It works when I interact with it but it crashes when I run the monkey test (adb shell monkey -p button.test -v 5). The logcat messages are as follows: D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): stopButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): false main D/AndroidRuntime(1836): Shutting down VM W/dalvikvm(1836): threadid=1: thread exiting with uncaught exception (group=0x41745300) E/AndroidRuntime(1836): FATAL EXCEPTION: main E/AndroidRuntime(1836): java.lang.RuntimeException: startButton E/AndroidRuntime(1836): at button.test.MainActivity $1.onClick(MainActivity.java:24) E/AndroidRuntime(1836): at android.view.View.performClick(View.java: 4084) E/AndroidRuntime(1836): at android.view.View $PerformClick.run(View.java:16966) E/AndroidRuntime(1836): at android.os.Handler.handleCallback(Handler.java:615) E/AndroidRuntime(1836): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime(1836): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(1836): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime(1836): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(1836): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime(1836): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:786) E/AndroidRuntime(1836): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
Re: [android-developers] In-app billing for canadian
Am 13.10.12 18:31, schrieb MathieuB: to look at implementing in-app billing, when I faced the fact that canadian CANNOT open google merchant account... I was a bit shocked. are you sure? In-app billing is available to developers in supported locations for merchants. https://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=1153481 Supported locations for merchants Currently, developers in the below countries may register as Google Checkout merchants and sell paid applications: Argentina* Australia Austria Belgium Brazil Canada ... https://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=150324 Ralph -- 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: Rotation Vector Sensor - anyone using it? (issues w/ Galaxy Tab 10.1)
Bump -- just want to see if there's any interest in this out there, or if anyone has also played around with this... On Wednesday, October 10, 2012 1:29:07 AM UTC-4, Adam Ratana wrote: Hello, I am working on improving an augmented reality app I have, and part of that improvement involves making use of the sparsely-documented rotation vector sensor, which seems to integrate the magnetometer, accelerometer and gyroscope rather well on several of my devices. This will serve to replace the classic magnetometer + accelerometer fusion + filtering that we've had to do ourselves previously. Making use of this seems to be a huge improvement, and I'd love to deploy it as soon as I can get the feeling it will be safe for most devices. The problem I am running into is, on my Galaxy Tab 10.1, which just got ICS 4.0.4, the Rotation Vector Sensor does not seem to be working consistently when dealing with screen rotation compensation. North seems to change places depending on how the screen is oriented, even after calling SensorManager.remapCoordinateSystem(), whereas all is good on the Nexus 7 and Galaxy Nexus, and several other gingerbread + devices, that is, North is consistent, after calling SensorManager.remapCoordinateSystem(). I haven't really seen much when doing google searches for anyone really making use of this or running into this sort of thing, so if anyone here has any experience, please get in touch. Or, if you have some of the less popular devices which have gingerbread+ and are interested in helping evaluate a proof of concept/test APK, let me know. Adam -- 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] In-app billing for canadian
Thought the same thing when I read it, they said it clear. But when it's time to open a google checkout account so I can receive money, it says only available to US and UK... -- 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] browser application
I am not a programmer but an application I designed, as far as i can tell, can be made easily to play on android. Right now the application, an interactive kid game alphabet-learning program is a flash movie. Should I have this ported to html5, or upgrade the flash? I don't have a clue what to do and that is why i signed up. Every post is beyond my learning curve so don't be mad. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Serialization/De-Serialization
Hi there, I am creating an app to find duplicate files .. i am using ArrayListFile to hold all File Objects. I am creating this arraylist in a service and want to pass this arraylist to another Activity. For this i am serializing the ArrayList to a file :- public void serializeList() { String fname = filelist.bin; //File dir = getDir(DFR, MODE_PRIVATE); try { fos = openFileOutput(fname, MODE_PRIVATE); obs = new ObjectOutputStream(fos); obs.writeObject(sOnlyFiles); obs.flush(); obs.close(); fos.close(); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } i am able to fetch the file from app's private directory in the onCreate() method of my ListActivity :- protected void onCreate(Bundle savedInstanceState) { stopService(new Intent(this, BgService.class)); // deserializeList(); // i am fetching all the files from the app's local directory and this is executing successfully File file[] = getFilesDir().listFiles(); for(int i=0;ifile.length;i++){ Toast.makeText(getApplicationContext(), file[i].getName()+ +file[i].length(), 2000).show(); } // stopService(new Intent(this, BgService.class)); //setListAdapter(new OnlyFilesAdapter()); //Bundle filelist = getIntent().getExtras(); super.onCreate(savedInstanceState); } i am deserializing to get back the ArrayList and feeding that to BaseAdapter for displaying the result in ListActivity:- public void deserializeList(){ Object tolist =null; String filename = filelist.bin; //File dir = getDir(DFR, getApplicationContext().MODE_PRIVATE); try { fis = openFileInput(filename); /*** here i am getting error***/ if(fis!=null){ obs = new ObjectInputStream(fis); tolist = obs.readObject(); @SuppressWarnings(unchecked) ArrayListFile tolist2 = (ArrayListFile)tolist; ListoFiles = tolist2; obs.close(); fis.close(); Toast.makeText(getApplicationContext(), ListoFiles.size(), 5000).show(); }else Toast.makeText(getApplicationContext(), file not available, 2000).show(); } catch (Exception e) { } on deSerializing i am getting following error :- java.lang.RuntimeException: Unable to start activity ComponentInfo{my.com.filebrowser/my.com.filebrowser.AllFiles}: android.content.res.Resources$NotFoundException: String resource ID #0x7e5 please help me getting out of this ... 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] Button#onClickListener thread unsafe?
svins wrote: The input events are queued. So your case is valid. When you disable a button there can be already multiple events in the event queue. Sad but true :( Greenhand wrote: In my project, I has a layout as follows: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:orientation=vertical Button android:id=@+id/startButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=start / Button android:id=@+id/stopButton android:layout_width=fill_parent android:layout_height=0dp android:layout_weight=1 android:text=stop / /LinearLayout It is quite simple. There are two buttons. One is start and the other is stop. And an Activity as follows: package button.test; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class MainActivity extends Activity { private static final String TAG = MainActivity; private Button startButton; private Button stopButton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startButton = (Button)findViewById(R.id.startButton); startButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,startButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(startButton); } arg0.setEnabled(false); stopButton.setEnabled(true); } }); stopButton = (Button)findViewById(R.id.stopButton); stopButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Log.d(TAG,stopButton isEnabled(): +arg0.isEnabled()+ executing on thread + Thread.currentThread().getName()); if(arg0.isEnabled()==false){ throw new RuntimeException(stopButton); } arg0.setEnabled(false); startButton.setEnabled(true); } }); } } The logic is: (1)When the start button is clicked, disable it and enable the stop button. (2)When the stop button is clicked, disable it and enable the start button. What I expect is that when the onClickListener of a button is executing, the button state should be enabled. It is impossible to fire the onClickListener when the button is disabled. Therefore, I add the if block and the RuntimeException to detect it. It works when I interact with it but it crashes when I run the monkey test (adb shell monkey -p button.test -v 5). The logcat messages are as follows: D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): stopButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): true main D/MainActivity(1836): startButton isEnabled(): false main D/AndroidRuntime(1836): Shutting down VM W/dalvikvm(1836): threadid=1: thread exiting with uncaught exception (group=0x41745300) E/AndroidRuntime(1836): FATAL EXCEPTION: main E/AndroidRuntime(1836): java.lang.RuntimeException: startButton E/AndroidRuntime(1836): at button.test.MainActivity $1.onClick(MainActivity.java:24) E/AndroidRuntime(1836): at android.view.View.performClick(View.java: 4084) E/AndroidRuntime(1836): at android.view.View $PerformClick.run(View.java:16966) E/AndroidRuntime(1836): at android.os.Handler.handleCallback(Handler.java:615) E/AndroidRuntime(1836): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime(1836): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(1836): at android.app.ActivityThread.main(ActivityThread.java:4745) E/AndroidRuntime(1836): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(1836): at java.lang.reflect.Method.invoke(Method.java:511)
[android-developers] Re: Invitation to use Google Talk
Google Talk wrote: I've been using Google Talk and thought you might like to try it out. We can use it to call each other for free over the internet. Here's an invitation to download Google Talk. Give it a try! --- You've been invited by love mountain to use Google Talk. Thanks for the spam, love mountain! -- 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: browser application
Flash on Android is coming to the end of its life: https://play.google.com/store/apps/details?id=com.adobe.flashplayer On Sunday, October 14, 2012 7:19:59 PM UTC+1, Michael Levinson wrote: I am not a programmer but an application I designed, as far as i can tell, can be made easily to play on android. Right now the application, an interactive kid game alphabet-learning program is a flash movie. Should I have this ported to html5, or upgrade the flash? I don't have a clue what to do and that is why i signed up. Every post is beyond my learning curve so don't be mad. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Play Store removals
I don't have any connections at Google so that's not an option.. Pester them on Google+ is something I've started yesterday, in a nice way though.. On Sunday, October 14, 2012 10:20:13 AM UTC+2, TreKing wrote: On Sat, Oct 13, 2012 at 1:05 PM, Danny dvhtcse...@gmail.com javascript: wrote: What can I do to get in contact with a live person at Google ? Have connections to someone working at Google. Or pester one of them on Google+ maybe (not that I'm advocating this, but you gotta do what you gotta do...) - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] In-app billing for canadian
Am 14.10.12 19:41, schrieb MathieuB: Thought the same thing when I read it, they said it clear. But when it's time to open a google checkout account so I can receive money, it says only available to US and UK... I have a account in Germany, I think there is something else wrong :-( Ralph -- 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 Sync Database Data to a Desktop Application without internet connection..
If you read the link you got, you should be abel to tell if it is OSS or not. -- 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] invalidate() painting method
Hi Romain, If you don't mind, would you please describe how the implicit throttling mechanism works, or, point to any documentation on it? I think I am running into this, when my activities start, and the view is being invalidated often, it is throttled it seems for a little while (5-10 seconds?). After what seems to be an initial throttling, all is fine and I am seeing good frame rates. Some of my activities do a lot of of canvas drawing (using the HW accelerated rendering) triggered by sensor updates, and since JB I believe I've seen this throttling when the activity starts. I'd love to avoid this, while still getting 30fps+ when necessary. I could be wrong but it also seems the throttling is more prevalent/present if text is being drawn using canvas.drawText, but have not yet dug deeper into experimenting and figuring out how I can trigger or not trigger the throttling. Adam On Thursday, October 11, 2012 5:41:08 PM UTC-4, Romain Guy (Google) wrote: There is an implicit throttling mechanism as of 4.1 but even then it's bad. If you don't need to draw, don't draw. You're going to waste battery. On Thu, Oct 11, 2012 at 2:34 PM, bob b...@coolfone.comze.comjavascript: wrote: As you may know, you can create a View subclass and then call invalidate() at the end of the painting method. This produces continuous updating. Is this really really bad? It sure is attractive due to its simplicity. However, there is no explicit throttling mechanism, which can be an issue if there is also no implicit one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer roma...@android.com javascript: -- 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] In-app billing for canadian
You mean you have a google checkout merchant account? And you register for in-app billing? -- 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: Jagged array's objects in the ListView
Hi Dhruv, This is not what I am asking. I am trying to convert a jagged array returned by a web service into an (2D)array list to be displayed in a list view(Android). Searched online, heaps of info on how to convert an array list to an array, but not vice versa. I am not sure if this is possible to use 2D array list for the listView. -- 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] invalidate() painting method
The throttling is simply a side effect of v-sync. Every paint request is synced with the display's refresh rate. This means you can only draw every ~16 milliseconds (== 60 fps.) Of course, if your application cannot draw in 16 ms you will be synced every 2 frames and you will fall to 30 fps. On Sun, Oct 14, 2012 at 2:08 PM, Adam Ratana adam.rat...@gmail.com wrote: Hi Romain, If you don't mind, would you please describe how the implicit throttling mechanism works, or, point to any documentation on it? I think I am running into this, when my activities start, and the view is being invalidated often, it is throttled it seems for a little while (5-10 seconds?). After what seems to be an initial throttling, all is fine and I am seeing good frame rates. Some of my activities do a lot of of canvas drawing (using the HW accelerated rendering) triggered by sensor updates, and since JB I believe I've seen this throttling when the activity starts. I'd love to avoid this, while still getting 30fps+ when necessary. I could be wrong but it also seems the throttling is more prevalent/present if text is being drawn using canvas.drawText, but have not yet dug deeper into experimenting and figuring out how I can trigger or not trigger the throttling. Adam On Thursday, October 11, 2012 5:41:08 PM UTC-4, Romain Guy (Google) wrote: There is an implicit throttling mechanism as of 4.1 but even then it's bad. If you don't need to draw, don't draw. You're going to waste battery. On Thu, Oct 11, 2012 at 2:34 PM, bob b...@coolfone.comze.com wrote: As you may know, you can create a View subclass and then call invalidate() at the end of the painting method. This produces continuous updating. Is this really really bad? It sure is attractive due to its simplicity. However, there is no explicit throttling mechanism, which can be an issue if there is also no implicit one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 roma...@android.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.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 -- 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] Places API - API_KEY generation
On Mon, Oct 8, 2012 at 5:31 PM, Madhura Adawadkar madhura.adawad...@gmail.com wrote: I have gone through the android documentation and other blogs related to using the Places API in an android application. Find a group or forum dedicated to the Places API. This is not relevant to this group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] invalidate() painting method
Thank you for the response! I should also say that this only occurs upon creation of the activities, and not when they resume or at any point thereafter. The only thing in common that the various activities have is that they use canvas drawing calls (and draw text), some are not even timed based on the sensors, but triggered from other ui events (slider). Is there anything that could be happening upon creation that could cause this? I don't think this is the vsync throttling, in fact things are performing better on JB than on ICS all things equal, other than this initial slowness, and certainly better than 30fps. Is there anything you can suggest perhaps looking for in a traceview? On Sun, Oct 14, 2012 at 6:51 PM, Romain Guy romain...@android.com wrote: The throttling is simply a side effect of v-sync. Every paint request is synced with the display's refresh rate. This means you can only draw every ~16 milliseconds (== 60 fps.) Of course, if your application cannot draw in 16 ms you will be synced every 2 frames and you will fall to 30 fps. On Sun, Oct 14, 2012 at 2:08 PM, Adam Ratana adam.rat...@gmail.com wrote: Hi Romain, If you don't mind, would you please describe how the implicit throttling mechanism works, or, point to any documentation on it? I think I am running into this, when my activities start, and the view is being invalidated often, it is throttled it seems for a little while (5-10 seconds?). After what seems to be an initial throttling, all is fine and I am seeing good frame rates. Some of my activities do a lot of of canvas drawing (using the HW accelerated rendering) triggered by sensor updates, and since JB I believe I've seen this throttling when the activity starts. I'd love to avoid this, while still getting 30fps+ when necessary. I could be wrong but it also seems the throttling is more prevalent/present if text is being drawn using canvas.drawText, but have not yet dug deeper into experimenting and figuring out how I can trigger or not trigger the throttling. Adam On Thursday, October 11, 2012 5:41:08 PM UTC-4, Romain Guy (Google) wrote: There is an implicit throttling mechanism as of 4.1 but even then it's bad. If you don't need to draw, don't draw. You're going to waste battery. On Thu, Oct 11, 2012 at 2:34 PM, bob b...@coolfone.comze.com wrote: As you may know, you can create a View subclass and then call invalidate() at the end of the painting method. This produces continuous updating. Is this really really bad? It sure is attractive due to its simplicity. However, there is no explicit throttling mechanism, which can be an issue if there is also no implicit one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 roma...@android.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.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 -- 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 -- Adam Ratana adam.rat...@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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Button#onClickListener thread unsafe?
Any class use View is not thread safe. -- 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] Galaxy phone to Galaxy Tab
How can I view / listen the files from the Galaxy phone into the Galaxy Tab wirelessly, I am not sure if there is a app can support while I travelling or in a remote area. -- 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 I find the source code that handles the new tools: namespace in ADT?
Where can I find the source code that handles the new tools: namespace in ADT 17(and higher)? There is a new tools: namespace since ADT 17,but I can't find any documentations about that.So I want to find out the source code to know how this namespace can be 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] Where can I find the source code that handles the new tools: namespace in ADT?
On Mon, Oct 15, 2012 at 11:04 AM, futurexiong futurexi...@gmail.com wrote: Where can I find the source code that handles the new tools: namespace in ADT 17(and higher)? There is a new tools: namespace since ADT 17,but I can't find any documentations about that.So I want to find out the source code to know how this namespace can be used.Thanks. You are not supposed to handle it, it is for the ADT plugin and is ignored by Android build tools. Source code for ADT should be in AOSP. -- 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: Jagged array's objects in the ListView
ArrayAdapter On Sunday, October 14, 2012 5:58:55 PM UTC-4, solnichko wrote: Hi Dhruv, This is not what I am asking. I am trying to convert a jagged array returned by a web service into an (2D)array list to be displayed in a list view(Android). Searched online, heaps of info on how to convert an array list to an array, but not vice versa. I am not sure if this is possible to use 2D array list for the listView. -- 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] Where can I find the source code that handles the new tools: namespace in ADT?
Yes,i know it's only for tool usage and wolud not be packaged in apk.Actually I just want to know which package the source code is in and i can find the options that we can use with the new tools: namespace there. 在 2012年10月15日星期一UTC+8上午11时32分25秒,Nikolay Elenkov写道: On Mon, Oct 15, 2012 at 11:04 AM, futurexiong futur...@gmail.comjavascript: wrote: Where can I find the source code that handles the new tools: namespace in ADT 17(and higher)? There is a new tools: namespace since ADT 17,but I can't find any documentations about that.So I want to find out the source code to know how this namespace can be used.Thanks. You are not supposed to handle it, it is for the ADT plugin and is ignored by Android build tools. Source code for ADT should be in AOSP. -- 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] Where can I find the source code that handles the new tools: namespace in ADT?
On Mon, Oct 15, 2012 at 1:10 PM, futurexiong futurexi...@gmail.com wrote: Yes,i know it's only for tool usage and wolud not be packaged in apk.Actually I just want to know which package the source code is in and i can find the options that we can use with the new tools: namespace there. Unless you are building some sort of a tool, you probably shouldn't mess with it. See this SO answer for details (the reply by Tor Norbye): http://stackoverflow.com/questions/11078487/whats-toolscontext-in-android-layout-files/11078889#11078889 -- 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: RDP for Android
Thanks Chris..I appreciate your help..Can you suggest me any link which i can refer .i mean what will be proper steps if i want to develop RDP app for android.. 1st as you suggest protocol docs...which i have started :) :) thanks again for that..it would be really nice if you can elaborate it little more... Thanks Regards, Nirav On Sat, Oct 13, 2012 at 12:42 PM, Chris Sarbora top...@gmail.com wrote: Sorry, I would but I'm busy finishing up my Remake Halo in 4 Easy Steps blog post. RDP (or VNC) are very complicated. You won't find an example project out there. If you want to write a client, you'll probably need to start with the protocol docs. On Friday, October 12, 2012 12:36:06 AM UTC-7, Nirav Parmar wrote: Hello everyone, I need to develop an app for remote desktop connection..searched a little about that but didn't found any good explanation or example.. Can anyone suggest a good staring point or some example which can guide ?? Thanks Regards, Nirav -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards, Nirav Parmar. -- 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] I had android doubt.Please help me to solve it.
Dear All,, I had android doubt.Please help me to solve it. http://stackoverflow.com/q/12889583/385138 -- *Thanks Regards, Sivakumar.J* -- *Thanks Regards, Sivakumar.J* -- 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] Where can I find the source code that handles the new tools: namespace in ADT?
Thanks.I saw this post before and I know that tools:context and tools;ignore means.But I really want to know how many elements in the new tools: namespace and how they can be used. I have asked these in this post https://groups.google.com/forum/#!searchin/android-developers/tools$20namespace/android-developers/iiCQf7cqtfE/hNwhJkzjG54J Tor Norbye answered part of it but did not give more details. 在 2012年10月15日星期一UTC+8下午12时19分01秒,Nikolay Elenkov写道: On Mon, Oct 15, 2012 at 1:10 PM, futurexiong futur...@gmail.comjavascript: wrote: Yes,i know it's only for tool usage and wolud not be packaged in apk.Actually I just want to know which package the source code is in and i can find the options that we can use with the new tools: namespace there. Unless you are building some sort of a tool, you probably shouldn't mess with it. See this SO answer for details (the reply by Tor Norbye): http://stackoverflow.com/questions/11078487/whats-toolscontext-in-android-layout-files/11078889#11078889 -- 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] Where can I find the source code that handles the new tools: namespace in ADT?
On Mon, Oct 15, 2012 at 2:16 PM, futurexiong futurexi...@gmail.com wrote: Thanks.I saw this post before and I know that tools:context and tools;ignore means.But I really want to know how many elements in the new tools: namespace and how they can be used. I have asked these in this post https://groups.google.com/forum/#!searchin/android-developers/tools$20namespace/android-developers/iiCQf7cqtfE/hNwhJkzjG54J Tor Norbye answered part of it but did not give more details. Read the source then, it's linked in the SO answer. What are you trying to do anyway? -- 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] Where can I find the source code that handles the new tools: namespace in ADT?
I want to know if I do not use graphical layout mode to edit the layout file and just edit the layout file manually, how should I use the tools: prefix. There are no hints for this prefix,unlike other tags or attributes. 在 2012年10月15日星期一UTC+8下午1时22分28秒,Nikolay Elenkov写道: On Mon, Oct 15, 2012 at 2:16 PM, futurexiong futur...@gmail.comjavascript: wrote: Thanks.I saw this post before and I know that tools:context and tools;ignore means.But I really want to know how many elements in the new tools: namespace and how they can be used. I have asked these in this post https://groups.google.com/forum/#!searchin/android-developers/tools$20namespace/android-developers/iiCQf7cqtfE/hNwhJkzjG54J Tor Norbye answered part of it but did not give more details. Read the source then, it's linked in the SO answer. What are you trying to do anyway? -- 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] Tab Customisation
ok thanks for your kind advice On Saturday, October 13, 2012 11:59:06 AM UTC+5:30, Amey Bapat wrote: What an attitude..?? Instead of being rude and cluttering our mailbox why don't you Google it for yourself..!! I am not discouraging you. This is a forum for developers for questions related only towards development.. Google provides sample application and tutorials..!! That i what i am asking you to do..!! http://lmgtfy.com/?q=tabview+android+example On Wed, Oct 10, 2012 at 9:26 PM, janvi jagruth...@gmail.com javascript: wrote: Hello Bapat Dnt give these kind of replies Be patient and help others dnt discourage Reply only if you have interest else just leave others will do this job to their best On Monday, October 8, 2012 2:38:39 PM UTC+5:30, Amey Bapat wrote: google it..you would get a lot of tutorials on TabView On Mon, Oct 8, 2012 at 1:50 PM, janvi jagruth...@gmail.com wrote: Hello All I need a small information on tabs in android. I want to customise the tab in a similar way as our message tab in android phones Suppose when message arrives to us we get number on the message tab,I want to implement the same functionality in my application. Just provide me with the sample example Plz reply me as soon as possible Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**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=enhttp://groups.google.com/group/android-developers?hl=en -- live and let LIVE!!! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- live and let LIVE!!! -- 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