Re: [android-developers] How to access database on device.
If Your Application Create Database internally that means it's create db file by run time and then you can not get the DataBase From the Your Android Mobile. But in Emulator We can Pull The DatatBase File ,For Doing Get DataBase of your application from Android Mobile i think you should get rooted Access require to see the db file from Eclipse File Explorer for android if you find any way to get Db then reply here , Thanks On Wed, Sep 28, 2011 at 11:19 AM, Devendran Raju devendran...@gmail.comwrote: hi... I installed my application on android mobile. But i cannot access the database from mobile. But its works well on emulator. How can i access db on mobile. Can u please guide me Thanks regards, Devendran.R -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: How to enable network connectivity to upload data.
Thanks for your reply. Can u tell me more details about this. The device WiFi will atuo turn off after a couple minutes. All I need is turn on WiFi and reestablished network connectivity to upload data to remote server. On Sep 27, 11:37 pm, Kristopher Micinski krismicin...@gmail.com wrote: The general way to fix this problem is to assume that they have network connectivity sitting in the background. Tons of apps do this, by use of a data connection that many devices have. So this is a pretty typical situation, almost any major app out there deals with it in some form or another (Facebook, Twitter, Gmail, and so on...) There's no API, but you don't really need one. Kris On Tue, Sep 27, 2011 at 9:57 PM, bobo123 huangbo...@gmail.com wrote: Hi, I am writing an alarm type android application which upload some data to server at a schedule time. Usually the device screen is off and WIFI or other type network is in disconnected. I wish when the schedule time arrives, I can enable network connectivity so that I can upload data to server. Is There any API I can use? Currently when the schedule time arrives, it will trigger upload routine, however, the network state is disconnected, so that the upload routine upload data to server. Best Regards, Bo -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to enable network connectivity to upload data.
On Wed, Sep 28, 2011 at 2:09 AM, bobo123 huangbo...@gmail.com wrote: Thanks for your reply. Can u tell me more details about this. The device WiFi will atuo turn off after a couple minutes. All I need is turn on WiFi and reestablished network connectivity to upload data to remote server. I gave you some links and told you I thought it was a bad idea? If you want to read about it, go ahead, I'd say it's most likely to make your users mad because their wifi was automatically being turned on periodically (and keep in mind that it's probably the case that majority of the time they aren't around a wifi network that is open for them to connect to.) I'd reccomend a conservative amount of caching, and then trying to find if wifi's enabled (or you at least have a route to the server, possibly through data) and if not, wait until it is. 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
[android-developers] Re: How to read data from an Xml file
Dear Sumit, Here is what you looking for http://p-xr.com/android-tutorial-how-to-parseread-xml-data-into-android-listview/ Hope you can get some idea Cheers -- anil On Sep 26, 6:20 am, sumit garg sumitgr...@gmail.com wrote: hello I am trying to read data from an XML file which is in an external storage. I think following things are involved in it- 1. how do i retrieve it 2. how the parser will read it 3. how do i display the file -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 send HD (High Definition) output from android Tab to HDtv
I don't want to use the view on tv feature from gallery. I want my own application to detect and start sending data to the connected TV. something like a TV OUT capability. gjs wrote: Hi, This is transparent to apps, just plug in cable view on TV. Regards On Sep 27, 4:43 pm, Rikki rikki.a...@gmail.com wrote: I want to develop an application that will send HD content on my samsung galaxy tab and show it on HDtv. I have searched for sample apps that can help me in understanding the involved processing. But to my surprise, I've found nothing. I am not able to figure out any library support or APIs for connecting, detecting and data transfer through HDMI port/adapter. I want my application to detect the HDTV when connected through HDMI port and then start showing chosen data on TV. Any help will be appreciated. Thanks, Rikki -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: AsyncTask vs. IntentService
On Wed, Sep 28, 2011 at 7:03 AM, Mark Murphy mmur...@commonsware.com wrote: On Tue, Sep 27, 2011 at 6:00 PM, Streets Of Boston flyingdutc...@gmail.com wrote: In addition to Mark's suggestions, you could assign a ResultReceiver to one of the Intent's extras: Your Activity could implemented this ResultReceiver's onReceiveResult method. Your IntentService could just call 'send(resultCode, resultBundle)' on it. This will cause the onReceiveResult at the Activity's side to be called. Out of curiosity, do you know of a ResultReceiver sample anywhere? I tried it once a while back and had difficulty with it. The iosched app seems to be using one: http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/util/DetachableResultReceiver.java http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/HomeActivity.java -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create an XML using SAX parser or any parser...
How to create an XML using SAX parser or any parser... and retrieve values from that pls provide any sample code -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 access database on device.
i am not creating db at run time. i created external database only. How to get root access to see the database. Thanks regards, Devendran.R -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Getting a String to AppWidget via GetExtras (or) Shared prefrences
*Getting a String to AppWidget via GetExtras (or) Shared prefrences:* I have an app widged which basically has a textview. I also have an activity which displays a textview from string created within. Now i have a button in Activity 1 which onClick will send data (string to appWidget class) I tried putExtra and getExtra methods and also Shared preferences method, im little confused to use which first! Here are some inputs from me for more clarity. Activity1: *final String addwidget = ((TextView)findViewById(R.id.verse)).getText().toString(); Intent widgetIntent = new Intent(MyScheduledActivity.this, MainWidget.class); widgetIntent.putExtra(widgetVerse, addwidget);* AppWidget: *public class MainWidget extends AppWidgetProvider { RemoteViews views; public static String verseFromFav; private Bundle getVerseData; @Override public void onReceive(Context context, Intent intent) { getVerseData = intent.getExtras(); verseFromFav = getVerseData.getString(widgetVerse); super.onReceive(context, intent); } @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { final int N = appWidgetIds.length; for (int i=0; iN; i++) { views = new RemoteViews(context.getPackageName(),R.layout.widget_layout); if(verseFromFav == null){ verseFromFav = no verse; } views.setTextViewText(R.id.widgetVerse, verseFromFav); ComponentName thisWidget = new ComponentName( context, MainWidget.class ); AppWidgetManager.getInstance( context ).updateAppWidget( thisWidget, views ); appWidgetManager.updateAppWidget(appWidgetIds, views); } super.onUpdate(context, appWidgetManager, appWidgetIds); }* *}* My StackOverflow question: http://stackoverflow.com/questions/7560265/getting-a-string-to-appwidget-via-getextras-or-shared-prefrences/7560447#7560447 Please help me, im searching a lot for this but couldnt find much on sharing to appWidget, any hints or help please. -- Thank you, Best Regards Wesley -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: total number of install is not updated
It's been updated now! Thanks treking :) /Jakob On 27 Sep, 18:12, TreKing treking...@gmail.com wrote: On Tue, Sep 27, 2011 at 2:14 AM, jakob t jakob.strom...@gmail.com wrote: Since some weeks the total number of installs is not updated on android market. Only the active install number is updated. Is this a new policy from google or a bug in android market? Anybody else having this issue? I hope the light did not blind you when you crawled out from that rock =P http://www.google.com/support/forum/p/Android+Market/label?lid=7dc8a5...http://groups.google.com/group/fameisfame/browse_thread/thread/c819e6... --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is android-dev IRC chat down?
Hi, I have been trying to get onto the IRC chat android-dev for quite a few days now. I am not able to see any other members other than myself when I log in? Wonder what is the problem. Is the Android-dev IRC chat down? Thank you, B.arunkumar -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 create an XML using SAX parser or any parser...
Hi Gopalakrishnan, There are quite a few examples on the net you can find. Here is one such site: http://innovator.samsungmobile.com/cms/cnts/knowledge.detail.view.do?platformId=1cntsId=9565 Thank you, B.Arunkumar On Sep 28, 11:44 am, GopalaKrishnan D gopall...@gmail.com wrote: How to create an XML using SAX parser or any parser... and retrieve values from that pls provide any sample code -- ~* Regards* *GopalaKrishnan D* -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
try commitAllowingStateLoss instead of commit. But read the documentation carefully. http://developer.android.com/reference/android/app/FragmentTransaction.html#commitAllowingStateLoss() On 27 September 2011 23:51, Niek haarman.n...@gmail.com wrote: I'm getting user reports from my app in the market, delivering the following exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java: 1109) at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java: 399) at android.app.Activity.onBackPressed(Activity.java:2066) at android.app.Activity.onKeyUp(Activity.java:2044) at android.view.KeyEvent.dispatch(KeyEvent.java:2529) at android.app.Activity.dispatchKeyEvent(Activity.java:2274) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchKeyEvent(PhoneWindow.java:1803) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchKeyEvent(PhoneWindow.java:1855) at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java: 1277) at android.app.Activity.dispatchKeyEvent(Activity.java:2269) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchKeyEvent(PhoneWindow.java:1803) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.widget.TabHost.dispatchKeyEvent(TabHost.java:297) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1112) at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchKeyEvent(PhoneWindow.java:1855) at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java: 1277) at android.app.Activity.dispatchKeyEvent(Activity.java:2269) at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchKeyEvent(PhoneWindow.java:1803) at android.view.ViewRoot.deliverKeyEventPostIme(ViewRoot.java: 2880) at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2853) at android.view.ViewRoot.handleMessage(ViewRoot.java:2028) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:132) at android.app.ActivityThread.main(ActivityThread.java:4028) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:491) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:844) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) at dalvik.system.NativeStart.main(Native Method) Apparently it has something to do with a FragmentManager, which I don't use. The stacktrace doesn't show any of my own classes, so I have no idea where this exception occurs and how to prevent it. For the record: I have a tabhost, and in each tab there is a ActivityGroup switching between Activities. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: SDK manager instal
http://lmgtfy.com/?q=adt+plugin+for+eclipse there ! :| On Sep 25, 9:11 am, Praven P.Jose pravenpj...@gmail.com wrote: sr i hv us windows xp 32bit ,after installing SDK manager a cmd box will appear and nothing to happen , then open in Eclipse a error message will come hat can i do for this Error img are given below http://s1.postimage.org/q4amzl3kx/11.jpg plz reply ,i like to do my project in android -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: SDK manager instal
Or just this: http://developer.android.com/sdk/installing.html -- Kostya 28.09.2011 11:49, Ashwin пишет: http://lmgtfy.com/?q=adt+plugin+for+eclipse there ! :| On Sep 25, 9:11 am, Praven P.Josepravenpj...@gmail.com wrote: sr i hv us windows xp 32bit ,after installing SDK manager a cmd box will appear and nothing to happen , then open in Eclipse a error message will come hat can i do for this Error img are given below http://s1.postimage.org/q4amzl3kx/11.jpg plz reply ,i like to do my project in android -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 read data from an Xml file
On Tue, Sep 27, 2011 at 7:18 PM, clark clarkd...@gmail.com wrote: What a surprise. Yet another witty reply from the TrollKing. Kettle? Yeah, hi, this is Pot. You're black. http://groups.google.com/group/android-discuss/browse_thread/thread/83c2e834864294f4/5ee29ac8e745400c#5ee29ac8e745400c - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
I've seen reports of that error although they are so rare that I didn't bother with it. In my case it happen with the compat library. Also in a TabActivity. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] App goes not go to background
On Wed, Sep 28, 2011 at 12:21 AM, ANKUR GOEL ankur1...@gmail.com wrote: but when i press Home button its restart the application again and does not start the activity from where i left . so anyone can guide me what the problem might be or whether i have to write any code for that http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) in other phone like samsung galaxy nexus its working fine . That device probably has more memory and is less aggressive about clearing out apps. It will happen there too eventually. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: HTC and LG haven't implemented Android in the right way
Yes, it is in the OpenGL ES standard according to the book Mobile 3D Graphics with OpenGL ES and M3G by Morgan Kaufmann. Here are 3 quotes from that book: -- OpenGL ES 1.0 supports the geometric primitives shown in Figure 3.3: points, lines, and triangles. OpenGL ES 1.1 amends this list with point sprites. OpenGL ES 1.1 provides features for points that are especially useful for particle effects: point sprites, point size arrays, and point size attenuation. When points are defined by an array, in OpenGL ES 1.0 they all have the same size, defined by glPointSize{fx}. In OpenGL ES 1.1 it is possible to give each point its own size (see Section 8.1.2), and the point sizes may be attenuated by the distance between each point and the camera. - Could it be that the new HTC and LG devices only have OpenGL ES 1.0? Devices with names like HTC HD and LG Optimus. I don't see anything HD or optimus about them if they support an old OpenGL ES standard. I don't have any HTC or LG devices, so I can't test glGet(GL_POINT_SIZE_RANGE), but it would be interesting to so. Do you know if there is any other way to make space animations with shining star objects on LG and HTC devices? I have produced 2 apps with 3D space effects, but I can't release them for LG and HTC. It is the same thing for SonyEricsson, by the way. My space apps work exactly like they should on Samsung and most other Android devices, but I would really like to release them for LG, HTC and SonyEricsson also. On Sep 28, 1:03 am, Indicator Veritatis mej1...@yahoo.com wrote: Now that I know what you are doing with the point attentuation, I see that you are not using it for anti-aliasing, so that comment turned out to lead to a dead end. As for why it is not supported, yes, it is in the Open GL standard, but is it in ES? ES doesn't support everything. And what do you get on those phones when you query glGet(GL_POINT_SIZE_RANGE) and glGet(GL_POINT_SIZE_GRANULARITY) or GL_SMOOTH_POINT_SIZE_RANGE and GL_SMOOTH_POINT_SIZE_GRANULARITY? On Sep 27, 12:26 am, MobileVisuals eyv...@astralvisuals.com wrote: I need Point attenuation to produce space animations with shining particles, which look like stars. How can I achieve that effect without using Point attenuation? Do you mean that I should make small rectangular polygons with transparent textures instead? I have tried that before on M3G and it didn't look as good as Point attenuation. Anti-Aliasing is a method of fooling the eye that a jagged edge is really smooth.Will that really be enough to get the same effect as Point attenuation? Could you please be more specific in which OpenGL technique I should use to make it work on HTC and LG? Isn't Point attenuation a part of the Android OpenGL standard? Shouldn't HTC and LG support it in that case? On Sep 27, 3:34 am, Indicator Veritatis mej1...@yahoo.com wrote: Short answer: no. Longer: why do you need point attenuation? There are other ways to do anti-aliasing, and some really cool graphics have been done for Android phones using that instead of point attenuation. On Sep 26, 6:26 am, MobileVisuals eyv...@astralvisuals.com wrote: I have found that everything implemented with Point attenuation will look like a blurry mess on devices from HTC and LG. This happens on even the newest devices from HTC, like HTC Desire HD. Why is it like this? Haven't they implemented Android in the right way? Point attenuation works like it should on most Android devices, like those from Samsung. I have implemented Point attenuation according to the Android specification in two of my company's apps.I have worked with Point attenuation on Symbian and C++ before, so I am quite sure that I have implemented it the right way. It is about the same code implementation in all OpenGL. Shouldn't all new Android devices support Point attenuation? It works on IPhone, so I think Point attenuation should work on all new Android devices too. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
This might be due to the subtle changes in activity lifecycle callbacks starting with Andorid 3.0: http://developer.android.com/reference/android/app/Activity.html Be aware that these semantics will change slightly between applications targeting platforms starting with|HONEYCOMB http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB|vs. those targeting prior platforms. Starting with Honeycomb, an application is not in the killable state until its|onStop() http://developer.android.com/reference/android/app/Activity.html#onStop%28%29|has returned. This impacts when|onSaveInstanceState(Bundle) http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29|may be called (it may be safely called after|onPause() http://developer.android.com/reference/android/app/Activity.html#onPause%28%29|and allows and application to safely wait until|onStop() http://developer.android.com/reference/android/app/Activity.html#onStop%28%29|to save persistent state. The error is rare then because fewer than 1.5% of devices are running Android 3.*: http://developer.android.com/resources/dashboard/platform-versions.html -- Kostya 28.09.2011 12:19, b0b ?: I've seen reports of that error although they are so rare that I didn't bother with it. In my case it happen with the compat library. Also in a TabActivity. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Failing JUnit tests, not breaking my Ant script like I expect?
Hi Mark, Have you got any solution to this? Please let me know.. Thanks in advance. Regards, Isha -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Landscape Right (reverseLandscape) prior to API level 9
Still looking for a solution to this. Do I need to set the screenOrientation to 'landscape' in the manifest and then rotate all layouts by 180 degrees? What's the best way to do this? Thanks On Tue, Sep 27, 2011 at 3:54 PM, Stefan Alder twigbra...@gmail.com wrote: Dianne, Thanks for the response. My question is how can I achieve the same effect when running prior to API level 9. On Tue, Sep 27, 2011 at 3:49 PM, Dianne Hackborn hack...@android.com wrote: You'll need to check the API level at android.os.Build, and only set your activity to this value when running on API 9 or later. On Tue, Sep 27, 2011 at 3:45 PM, Stefan Alder twigbra...@gmail.com wrote: I trying to ensure that my app and all of its activities are locked to landscape right (reverse landscape) (where the device button and mic located to the left of the screen). I see you can set the screnOrientation in the manifest to 'reverseLandscape', but this only works for API level 9. What is the best way to achieve this down to API level 6 or 7 such that it will work on all Android devices (portrait and landscape default)? If you can point me to any example where this is done, I'd really appreciate it. 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 -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Creating AnimationDrawable from assets
Hello, everyone. I'v stucked with a problem of creating of AnimationDrawable object not using xml file, but from assets. Here is my Activity code: package org.example.Animation; import java.io.IOException; import android.app.Activity; import android.content.res.AssetManager; import android.graphics.drawable.AnimationDrawable; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.widget.ImageView; import android.widget.LinearLayout; public class MainActivity extends Activity { private LinearLayout ll; private ImageView image; private AnimationDrawable ad; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ll = new LinearLayout(this); LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(-2, -2); image = new ImageView(this); ll.addView(image, lp); setContentView(ll); AssetManager am = getAssets(); ad = new AnimationDrawable(); StringBuilder sb= new StringBuilder(loader/loader-); // Fetching frames from assets for(int i = 1; i 11; i++) { sb.append(i); sb.append(.png); Log.d(DownloadImageTask, Fetching image: + sb.toString()); try { Drawable d = Drawable.createFromStream(am.open(sb.toString()), null); ad.addFrame(d, 500); } catch (IOException e) { Log.d(ImageViewAdapter, IOException: + e.getMessage()); } sb.delete(14, sb.length()); // 14 - is the index of first digit of frame } image.setBackgroundDrawable(ad); } @Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); ad.start(); } } I need to start animation immediately after window gets focus, but there is nothing to be displayed on the screen. I was looking for a source of this problem and found this: http://code.google.com/p/android/issues/detail?id=14863 As I understand correctly, the problem is that I set layout parameters of the ImageView to WRAP_CONTENT (-2) and to get expectale behavior I just need to make them either fixed or FILL_PARENT, but after I do that there is no positive effect. Tell me please, what am I doing wrong? And please take into consideration, that my main goal is to avoid using of R.java file in my appplication, although it's loooked strange. That's why I use assets instead. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
The error is rare then because fewer than 1.5% of devices are running Android 3.*: Not when using the compat package (android.support.v4.*). Anyway to be clear, this exception is super rare in my app using the compat package 2.x devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] SOAP Implementation
Hi Can some one give me a sample for SOAP implementation in Android? Im struggling to get it done. -- - Prakash. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Need help to convert Windows Meta file format (Like WMF, EMF file formats ) to png or jpeg for android
Hi, I am developing an application, there I am getting Window Meta files (like WMF, EMF, TIFF image formats). I need to display it in web view, But directly it is not supported in android. So I have to convert those kind of images into PNG or JPEG and then need to display. Could anybody help me to *convert these Meta file formats to PNG or JPEG?* Thanks in Advance. Regards, Jebarlin.R -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: IllegalStateException: Can not perform this action after onSaveInstanceState - How to prevent?
No, the change I'm talking about is in the platform itself, so would be seen with or without the compatibility package - if running on 3.*, and your targetSdk is set to 11 or greater (maybe it's not, then it must be something else). 28.09.2011 13:41, b0b ?: The error is rare then because fewer than 1.5% of devices are running Android 3.*: Not when using the compat package (android.support.v4.*). Anyway to be clear, this exception is super rare in my app using the compat package 2.x devices. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] C2DM auth token failed
Hi I am using urban airship for sending push messages to android device. But I am getting this message, when I push message from urban airship website. C2DM push to apid c16b4d97-9073-4d3d-9fca-b80e0aab 58b7 failed due to invalid auth token Kindly help me. Thanks Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: AsyncTask vs. IntentService
On Wed, Sep 28, 2011 at 2:36 AM, Nikolay Elenkov nikolay.elen...@gmail.com wrote: The iosched app seems to be using one: http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/util/DetachableResultReceiver.java http://code.google.com/p/iosched/source/browse/android/src/com/google/android/apps/iosched/ui/HomeActivity.java Ah, cool. One of these days I have to tear into that project... Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Creating AnimationDrawable from assets
On Wed, Sep 28, 2011 at 5:07 AM, AlexBonel alexbo...@inbox.ru wrote: And please take into consideration, that my main goal is to avoid using of R.java file in my appplication, although it's loooked strange. Why? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Multicast Receive
Thnx for the reply. But , I dont think that it is a problem of the device as I am able to play the same RTSP stream using VLC player and Media player on the same device. This is my effort to play the RTSP stream manually by handshaking first , then receiving the video UDP packets. I am really directionless on how should I go about getting the multicast data. - Jasleen On Sep 24, 2:41 am, rp.circ rpress...@circadence.com wrote: It seems that receiving multi-cast may be a problem forsome devices: http://stackoverflow.com/questions/3623143/multicast-on-android-2-2 And being that you have it working on other platforms...It would be great if you could get shark for root on your phone to actually see if the packets are making it to you. On Sep 21, 5:00 am, Jasleen Kaur kjasl...@rediffmail.com wrote: We have been trying to write a rtsp streaming client for Android platform in Eclispe. we are able to do the handshaking, i.e Describe, Setup, Play requests have been sucessfully communicated. Now i have chosen to receive the Multicast UDP data packets after PLAY command. The problem is that I am unable to receive the UDP multicast data...in the emulator as well as Android device, but am able to receive the UDP packets in a java based app and a .Net based app. wifi = (WifiManager) getSystemService(getApplicationContext().WIFI_SERVICE); mLock = wifi.createMulticastLock(mylock); mLock.setReferenceCounted(true); mLock.acquire(); MulticastSocket sock; InetAddress sessAddr = InetAddress.getByName(234.2.128.12); sock = new MulticastSocket(1100); // 48180); byte b = 64; sock.setTTL(b); sock.joinGroup(sessAddr); byte[] byData = new byte[500]; DatagramPacket pack = new DatagramPacket(byData, 500); sock.receive(pack); Plus i have added the following tags to the manifest uses-permission android:name=android.permission.INTERNET / uses-permission android:name=android.permission.CHANGE_WIFI_MULTICAST_STATE / uses-permission android:name=android.permission.ACCESS_WIFI_STATE / The program gets stuck on the receive statement. Pls suggest. Best Regards Jasleen -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: -webkit-column-width not support in android webview
Thank you for your reply daniel... i modified height 400px and width 320px but still it did not work.. kindly let me know any other option.. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] C2DM auth token failed
i guess u r asking for auth token frequently u should store it somewhere or else google imposes captcha and u cant handle that in code atleast thats where m stuck On Wed, Sep 28, 2011 at 4:30 PM, Sapna Srivastav sapna.ari...@gmail.comwrote: Hi I am using urban airship for sending push messages to android device. But I am getting this message, when I push message from urban airship website. C2DM push to apid c16b4d97-9073-4d3d-9fca-b80e0aab 58b7 failed due to invalid auth token Kindly help me. Thanks Sapna Srivastav -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 Abhishek Talwar 9953395712 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Start the Listview's modal selection from a button in the ActionBar
Assuming that by when the ActionMode is destroyed you mean when the user clicks the Done button, I have seen that same issue and I have not determined yet how to get past it. For cases where you finish() the action mode, you can call clearChoices() in onDestroyActionMode(). However, the Done button does not seem to invoke onDestroyActionMode() in the testing I have done to date. For me the onDestroyActionMode() is called when you click on the Done button. But I've discovered that after a clearChoices() you must call a requestLayout() on the list. But, as the layout isn't done immediatly and as I've set the list with CHOICE_MODE_NONE just after the clearChoices(), when the layout is done the listview doesn't refresh the selection state because it's no more configure to have one ...If I don't set CHOICE_MODE_NONE in the onDestroyActionMode() but only clearChoices() and requestLayout(), then it's works, selections states are reseted but the user can still selects items ... I really don't know what to do ... -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] trying to start-activity from alertdiaog --please advice
hey can you tell us whats the error ? On Wed, Sep 28, 2011 at 5:12 AM, TreKing treking...@gmail.com wrote: On Sat, Sep 24, 2011 at 1:03 PM, Manas Shah shahmana...@gmail.com wrote: I would like to launch new activity from the PositiveButton of alert dialog but it throws error. You want us to guess what this error is? - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] SOAP Implementation
On Wed, Sep 28, 2011 at 4:45 AM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Can some one give me a sample for SOAP implementation in Android? What is SOAP implementation in Android ? http://catb.org/~esr/faqs/smart-questions.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create and use the SD Card with the Android Emulator
Dear all, How to create and use the SD Card with the Android Emulator? pls help 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 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 create and use the SD Card with the Android Emulator
You create an SD card when you create the AVD: http://developer.android.com/guide/developing/devices/managing-avds.html On some devices, the SD card is considered external storage, so you use those APIs: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal On other devices, the SD card is not offered via the Android SDK. On Wed, Sep 28, 2011 at 7:59 AM, venugopal reddy venugopal.re...@tspl.com wrote: Dear all, How to create and use the SD Card with the Android Emulator? pls help 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create and use the SD Card with the Android Emulator
On Wed, Sep 28, 2011 at 6:59 AM, venugopal reddy venugopal.re...@tspl.comwrote: How to create and use the SD Card with the Android Emulator? http://developer.android.com/guide/developing/tools/emulator.html http://developer.android.com/guide/developing/tools/mksdcard.html - 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] SOAP Implementation
Thanks for the link ... On Wed, Sep 28, 2011 at 1:48 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 28, 2011 at 4:45 AM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Can some one give me a sample for SOAP implementation in Android? What is SOAP implementation in Android ? http://catb.org/~esr/faqs/smart-questions.html - 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] file storage on android file system
Hi All, I want to programmatically store file /system/data folder on a rooted device.Please suggest some code. Thanks, Sourabh -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Interface for local service?
My Android book, the quite massive Pro Android 3, shows an example of a local service without an interface (aside from that necessary to start and stop the service) and a remote service with an interface defined with aidl. However, it seems that what I need is a local service with an interface, since the service only has to be available to its own application, but the application has to be able to send tasks to the service. Of course, this could be done with a remote interface, but it seems this would introduce IPC overhead that might be avoided with a local service. What's the best way to proceed? TIA, Matthew Fleming Dermvision -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Interface for local service?
Just subclass android.os.Binder and use an instance of it in your onBind() method. You do not need AIDL for the local binding pattern. On Wed, Sep 28, 2011 at 8:19 AM, Matthew Fleming mgf...@gmail.com wrote: My Android book, the quite massive Pro Android 3, shows an example of a local service without an interface (aside from that necessary to start and stop the service) and a remote service with an interface defined with aidl. However, it seems that what I need is a local service with an interface, since the service only has to be available to its own application, but the application has to be able to send tasks to the service. Of course, this could be done with a remote interface, but it seems this would introduce IPC overhead that might be avoided with a local service. What's the best way to proceed? TIA, Matthew Fleming Dermvision -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] how to Blocking Swear Words in android?
Hi , how to Blocking Swear Words in android?. please give any example or refer link. -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.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] Debug.InstructionCount
Hi In below link: http://developer.android.com/reference/android/os/Debug.InstructionCount.html What do instructions mean? ARM instructions or Dalvik bytecodes? Which one? I want number and type of *executed dynamic bytecode*. How can I do this? Thanks Ehsan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 Blocking Swear Words in android?
Not an android question, a java question, if you mean putting this in your apps. If you mean filtering through all text in the system you require custom firmware. Google blocking swear words in java tl;dr: easy solution: do a string replace s/evilslang/lessevilslang On Wed, Sep 28, 2011 at 8:22 AM, vijayakumar M iamvijayaku...@gmail.comwrote: Hi , how to Blocking Swear Words in android?. please give any example or refer link. -- Nobody can go back and start a new beginning, but anyone can start today and make a new ending - Thanks, Regards, νιנαソαkum@r M BloG:http://iamvijayakumar.blogspot.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 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Debug.InstructionCount
Type of it? You mean like, Java type? It's dalvik, not everything runs ARM, and there wouldn't be a meaningful way to quantify this anyway, as the code is at least partially interpreted (ran on dalvik sans jit), plus API level 1 didn't *have* a jitter :-). Kris On Wed, Sep 28, 2011 at 8:37 AM, ehsan azimzadeh ehsan.azimza...@gmail.com wrote: Hi In below link: http://developer.android.com/reference/android/os/Debug.InstructionCount.html What do instructions mean? ARM instructions or Dalvik bytecodes? Which one? I want number and type of executed dynamic bytecode. How can I do this? Thanks Ehsan -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 record whatever is being played by the MediaPlayer or SoundPool in android?
In my app I am playing a different sound on click of each button and whatever the buttons are clicked, there respective sound is being played. What I want to do is, record those sounds (or that stream) which are getting played in the background and save it to a file in sdcard. A sample code or link would be very much helpful. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Getting the actual size of a FrameLayout
Hi, I have a FrameLayout in my Activity of which I need to know the size in pixels at runtime. Although getWidth() and getHeigh() return 0 for any(?) ViewGroup without any children, I figured out that I can use the functions getMeasuredWidth() and getMeasuredHeight() to get the actual size on screen after the FrameLayout has become visible. As far as I know there is no Activity callback that gets called after everything in the Activity (including the FrameLayout) is visible to the user. Before that point in time however, getMeasuredWidth() and getMeasuredHeight() also return 0. I am wondering that the preferred way of getting the size of that view at runtime are. I came up with two possible solutions: Overwriting onWindowFocusChanged() in the Activity: this is a default Android callback that not only gets called after the Activity is visible but also after anything else has taken the focus. It seems to get me where I want but it seems not very elegant. Another option would be to make my Activity implement a custom interface called OnSizeChangedListener, then overwrite the onSizeChanged of the FrameLayout to notify the OnSizeChangedListener of any changes in size. This seems to only get called when the window size actually changes. However, I am a bit unsure if it is good practice to implement a new listener for this. What approach would you suggest? Thanks, Philipp -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
Hello, I have a dynamically generated list of EditText widgets. When the text in one of them is changed I need to update the text in some of the others. I have setup a TextWatcher for each EditText in the adapter's getView() method but while I can use this to update the underlying model I cannot use it to get a handle to the other text edits in the listview. I wonder whether anyone on this list could kindly point me towards a solution. Many Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 the actual size of a FrameLayout
A listener sounds like a good idea - onSizeChanged is the actual resize callback in the layout process. You can follow the same pattern as used for click events, etc - a listener interface, and set...Changed(... listener) in your subclass of FrameLayout. -- Kostya 2011/9/28 Philipp Comans philipp.com...@googlemail.com: Hi, I have a FrameLayout in my Activity of which I need to know the size in pixels at runtime. Although getWidth() and getHeigh() return 0 for any(?) ViewGroup without any children, I figured out that I can use the functions getMeasuredWidth() and getMeasuredHeight() to get the actual size on screen after the FrameLayout has become visible. As far as I know there is no Activity callback that gets called after everything in the Activity (including the FrameLayout) is visible to the user. Before that point in time however, getMeasuredWidth() and getMeasuredHeight() also return 0. I am wondering that the preferred way of getting the size of that view at runtime are. I came up with two possible solutions: Overwriting onWindowFocusChanged() in the Activity: this is a default Android callback that not only gets called after the Activity is visible but also after anything else has taken the focus. It seems to get me where I want but it seems not very elegant. Another option would be to make my Activity implement a custom interface called OnSizeChangedListener, then overwrite the onSizeChanged of the FrameLayout to notify the OnSizeChangedListener of any changes in size. This seems to only get called when the window size actually changes. However, I am a bit unsure if it is good practice to implement a new listener for this. What approach would you suggest? Thanks, Philipp -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 8:27 AM, John Goche johngoch...@googlemail.comwrote: I wonder whether anyone on this list could kindly point me towards a solution. Can't you just have a MapMyType, ListMyType that represents the relationship between the object being edited and the ones that have to be updated in response? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to get profile information from twitter in android application?
Hi All, I am developing an application in which the user can login through facebook and twitter Then I have to access their profile information (such as First Name, Last ame etc) from facebook or twitter. Using Facebook sdk, I can get the information. But I don't know how to get the profile information from twitter. Please help me with the API to get profile information from twitter. Regards, Shruthi. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Augmented Reality project, help please
awaiting for help -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Binding a remote service through the application class
Hello, I am developing an application compose by: 4 activities, one application class (Global) and a remote service with provides the data shown in the active activity (the same data is needed for all activities). The application class (Global) is where I define and interact with objects that are used by all the activities. Moreover, as it is only instantiated ones at the beginning of the application, I also do things that must be done only once: opening a database at the beginning (the same database is used by both, the remote process and the activities). As the data returned by the remote service must be redirected to the current activity, I bindService() and receive the data from the service in the Global class. I start the service in the onCreate of Global class in order to get the data as soon as possible. I thought that this Global class was only instantiated once during the whole application (at the beginning) but when I bindService(), this class is instantiated again. Therefore, the onCreate is again executed and another process is started. Can someone tell me the correct way no do this? Is It possible to define a common class (with common objects) that is only instantiated once and valid for both, activities and the remote service. Another thing that I would like to know is if is better to use Singleton classes or application classes. Thank you very 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
Re: [android-developers] Binding a remote service through the application class
On Wed, Sep 28, 2011 at 10:17 AM, Hera aide...@gmail.com wrote: I am developing an application compose by: 4 activities, one application class (Global) and a remote service with provides the data shown in the active activity (the same data is needed for all activities). You do not need a remote service. The application class (Global) is where I define and interact with objects that are used by all the activities. Moreover, as it is only instantiated ones at the beginning of the application, I also do things that must be done only once: opening a database at the beginning (the same database is used by both, the remote process and the activities). You do not need a remote process. As the data returned by the remote service must be redirected to the current activity, I bindService() and receive the data from the service in the Global class. I start the service in the onCreate of Global class in order to get the data as soon as possible. I thought that this Global class was only instantiated once during the whole application (at the beginning) but when I bindService(), this class is instantiated again. Therefore, the onCreate is again executed and another process is started. That is because you are using a remote process when you do not need one. Get rid of the remote process, and your problem will be solved. Can someone tell me the correct way no do this? Is It possible to define a common class (with common objects) that is only instantiated once and valid for both, activities and the remote service. Make it a local service. Another thing that I would like to know is if is better to use Singleton classes or application classes. A custom Application class does not necessarily give you anything over a singleton. The downside of an Application class is that there can only be one. In particular, I'd never create a library that depended upon a custom Application class, as that library would not be able to work in tandem with other such libraries. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 3:46 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 28, 2011 at 8:27 AM, John Goche johngoch...@googlemail.comwrote: I wonder whether anyone on this list could kindly point me towards a solution. Can't you just have a MapMyType, ListMyType that represents the relationship between the object being edited and the ones that have to be updated in response? Wel, suppose MyType is the object being edited, in this case an EditText widget. The adapter populates the list via getView(). In getView() I set the TextWatcher observer which can access the MapMyType, ListMyType no problem. The problem is, where do I setup the MapMyType, ListMyType AKA MapEditText, ListEditText ? If I had a static list I could do this Map initialization easily, but since the list is dynamically populated via getView() I don't know how to do this. Please let me know, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 9:42 AM, John Goche johngoch...@googlemail.comwrote: Wel, suppose MyType is the object being edited, in this case an EditText widget. No, it'd be whatever data object you've defined that your list represents. The adapter populates the list via getView(). In getView() I set the TextWatcher observer which can access the MapMyType, ListMyType no problem. The problem is, where do I setup the MapMyType, ListMyType AKA MapEditText, ListEditText ? I would assume in the adapter that feeds your list. If I had a static list I could do this Map initialization easily, but since the list is dynamically populated via getView() I don't know how to do this. Generating the views is dynamic. The actual underlying data that the views represents probably is not. Even if it is, you'd have some method that updates your map as you add / remove data. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Managing beta testers / beta program
Hi there, I am at the point where I question releasing my application out in the wild, but before that I would like to go through a beta phase with beta testers recruited thru some forum (not my friends from childhood I mean). I am stunned that it seems Google did not plan for this at all... I am keen to have beta testers, but not so much that an unlimited/ unrestricted app leaks all over the place. This question has been asked already and I was wondering is there were any new news on the topic... Basically, if I issue them an application with a limited lifespan siging key, I won't be able to use this key on the market (because of the 2033 thingy). If I use adifferent key on the market, my beta testers will have to uninstall the application before being able to install the final version and they will lose their data. If I issue a debug signed application, it can go everywhere unless I do something (possibly complicated) in my app to restrict it to the beta crowd... I am not even thinking about giving the final app for free because it seems it is another can of worms. Any idea welcome, thanks in advance. JM -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] getting the error Error generating final archive: Debug Certificate expired on 26/7/11 10:35 PM ...
Hi all, I am using eclipse since 2 yrs. I haven't faced any problem before when I was in India. recently I came to japan. today I am facing this problem. Could you please give me a solution? help would be much appreciated! Thanks, Manoj. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Binding a remote service through the application class
Thank you so much, Mark. I am using a bound service in a remote process and I have already solve the comunication between 2 processes (the application shown and the service). I think that my service must be implemented in a separate process because it implements a CPU intensive work and it used to block the GUI when I used AsyncTask to refresh the GUI, maybe there is other alternatives. Any sugerences? The good point of the Application class is that it is instanciated and onCreated before any other component of the application. thank you very much again. On 28 sep, 16:23, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 28, 2011 at 10:17 AM, Hera aide...@gmail.com wrote: I am developing an application compose by: 4 activities, one application class (Global) and a remote service with provides the data shown in the active activity (the same data is needed for all activities). You do not need a remote service. The application class (Global) is where I define and interact with objects that are used by all the activities. Moreover, as it is only instantiated ones at the beginning of the application, I also do things that must be done only once: opening a database at the beginning (the same database is used by both, the remote process and the activities). You do not need a remote process. As the data returned by the remote service must be redirected to the current activity, I bindService() and receive the data from the service in the Global class. I start the service in the onCreate of Global class in order to get the data as soon as possible. I thought that this Global class was only instantiated once during the whole application (at the beginning) but when I bindService(), this class is instantiated again. Therefore, the onCreate is again executed and another process is started. That is because you are using a remote process when you do not need one. Get rid of the remote process, and your problem will be solved. Can someone tell me the correct way no do this? Is It possible to define a common class (with common objects) that is only instantiated once and valid for both, activities and the remote service. Make it a local service. Another thing that I would like to know is if is better to use Singleton classes or application classes. A custom Application class does not necessarily give you anything over a singleton. The downside of an Application class is that there can only be one. In particular, I'd never create a library that depended upon a custom Application class, as that library would not be able to work in tandem with other such libraries. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getting the error Error generating final archive: Debug Certificate expired on 26/7/11 10:35 PM ...
Delete your debug.keystore file, so the build tools generate a fresh one. They have a one-year lifespan. You can find your debug.keystore file normally: - Windows 7/Vista: C:\Users\user\.android\debug.keystore - Windows XP: C:\Documents and Settings\user\.android\debug.keystore - OS X and Linux: ~/.android/debug.keystore (where user is whatever Windows user account you are logged in as) On Wed, Sep 28, 2011 at 11:02 AM, manoj manojkumar.m...@gmail.com wrote: Hi all, I am using eclipse since 2 yrs. I haven't faced any problem before when I was in India. recently I came to japan. today I am facing this problem. Could you please give me a solution? help would be much appreciated! Thanks, Manoj. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getting the error Error generating final archive: Debug Certificate expired on 26/7/11 10:35 PM ...
On Wed, Sep 28, 2011 at 10:02 AM, manoj manojkumar.m...@gmail.com wrote: Could you please give me a solution? Delete the debug key. - 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] Re: Binding a remote service through the application class
On Wed, Sep 28, 2011 at 11:04 AM, Hera aide...@gmail.com wrote: I think that my service must be implemented in a separate process because it implements a CPU intensive work and it used to block the GUI when I used AsyncTask to refresh the GUI, maybe there is other alternatives. You need a background *thread*, not a *process*: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Threads -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Managing beta testers / beta program
I've run several large (hundred to five hundred users) beta programs with our current app. It's a great way to work out the bugs but not at all fool proof. After our beta test we released the app to the real world and within days found numerous bugs that weren't caught during the beta. Of course, we went from 100 users to 250,000 users in that time frame. It's pretty much impossible to catch all possible bugs with just 100 users. We use a moderated, private Google Group to deal with the beta. We started with a website where the users can download the app instead of using the market to keep it private but that prevented any users on ATT from participating due to ATT's silly block on the unknown sources checkbox in the settings. This worked well for a small group (100) testers. Now we have our beta on the market itself which opened it up to a much larger group (500+). The downside is the app can be downloaded by anyone, although for us at this point, that's ok. If you want to limit the life of the beta, you can always use a server side process to control it. Add a simple web page or program that if missing will cause the app to stop working. Pretty easy and simple control method. If you don't have a website, then buy one for now. It's worth the $15 a year (or whatever they cost) to control your app. You can also use the server side process to collect information on usage which will be valuable in your analysis of how the beta is going. Recruiting for a beta program is easy if you already have access to a user base who have Android devices. If this is your first app, then recruiting is going to be a lot harder. You might consider purchasing an ad from AdMob for the effort. -John Coryat, USNaviguide LLC -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Interface for local service?
Ah, I see. It seems that this is the process that is referred to by Google's documentation: http://developer.android.com/reference/android/app/Service.html. Through this mechanism, you can start the service and then keep a reference to it in whatever Activity started it; you can then call the service's methods from that reference, which avoids IPC completely. Swell. Thank you so much for explaining it. Matthew Fleming On Sep 28, 7:21 am, Mark Murphy mmur...@commonsware.com wrote: Just subclass android.os.Binder and use an instance of it in your onBind() method. You do not need AIDL for the local binding pattern. On Wed, Sep 28, 2011 at 8:19 AM, Matthew Fleming mgf...@gmail.com wrote: My Android book, the quite massive Pro Android 3, shows an example of a local service without an interface (aside from that necessary to start and stop the service) and a remote service with an interface defined with aidl. However, it seems that what I need is a local service with an interface, since the service only has to be available to its own application, but the application has to be able to send tasks to the service. Of course, this could be done with a remote interface, but it seems this would introduce IPC overhead that might be avoided with a local service. What's the best way to proceed? TIA, Matthew Fleming Dermvision -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 4:47 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 28, 2011 at 9:42 AM, John Goche johngoch...@googlemail.comwrote: Wel, suppose MyType is the object being edited, in this case an EditText widget. No, it'd be whatever data object you've defined that your list represents. OK, then suppose MyType represents a model row of data. I have no problem updating such a model (this would be supplied to an ArrayAdapter but is not supplied to a BaseAdapter in the constructor). I have no problem updating the data I define. However, once the data is changed, I want the widgets in my list to reflect the changes in the data (i.e. I want my EditText widgets to display the new data from the MapMyType, ListMyType AKA MapRowModel, ListRowModel. The adapter populates the list via getView(). In getView() I set the TextWatcher observer which can access the MapMyType, ListMyType no problem. The problem is, where do I setup the MapMyType, ListMyType AKA MapEditText, ListEditText ? I would assume in the adapter that feeds your list. Well, I set up my row models before I feed them into the adapter. They are accessible from the adapter. But row views are not it seems. Given a position, how do I access a row view corresponding to that position? If I had a static list I could do this Map initialization easily, but since the list is dynamically populated via getView() I don't know how to do this. Generating the views is dynamic. The actual underlying data that the views represents probably is not. Yes, the underlying data is not dynamic. But I need a handle to the row view widgets to update them. Even if it is, you'd have some method that updates your map as you add / remove data. I do have such methods. I cannot get the widget rows to observe the changes in the data due to an input in one of the rows. Well, I could call setAdapter() again each time the user types a keystroke, but then the EditText widget where the user was typing would lose the focus and refreshing the whole list rather than refreshing just the list views is inefficient. The problem seems to be I cannot set an observer on the rows to call after I change the underlying Map data model. Any ideas on what I should do? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Improving Local GPS Accuracy
Synopsis: A method for using a local reference point to improve GPS accuracy. Implemented on a Android droid x 2 platform. http://tombtalk.net/?page_id=424 The Android as a GPS GeoCaching gaming platform has one major short coming. Frequently waypoints are set and when the game is played, the apparent point may be exactly on target or the apparent point can be 10 or 20 feet off or more in some direction. Every geocacher knows this and accepts this as just part of the game. Recently, a solution to this was suggested by an Android game feature I was developing... Read the entire article http://tombtalk.net/?page_id=424 -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Managing beta testers / beta program
Use the Android Market LVL: http://developer.android.com/guide/publishing/licensing.html If you pass out an application with the LVL in it, it won't authorize unless you have the same revision number APK uploaded to the market. KEY: You don't have to publish the APK on the market, it just has to be uploaded for the Market to match a license against. If you don't publish it, all copies on accounts that are not the main developer account or in the space provided for you to add additions, will always authenticate as good. If you want that beta to be turned off, simple delete the APK from the market and it will not longer authorize. WARNING: DO NOT publish the APK on the market or you will not be able to delete it. Also, add beta in the package name so you can publish the full version and leave the beta running for however long you need. Example steps: 1. Make com.mysoftware.beta.app 2. Implement LVL into the app 3. Upload APK to the market, but DO NOT publish 4. Hand out beta edition 5. Get feedback 6. When finished, delete APK from market to disable beta editions 6b. Or, leave the beta APK and publish com.mysoftware.app so you can continue to beta along with the full version 7. Enjoy! Key Points: 1. DO NOT publish the APK. (hopefully I've said that enough) 2. DO NOT update the revision number unless all your beta testers are going to be able to upgrade. To get the proper authorization, the revision number in the app and on the APK in the market need to be the same. Luckily, since you followed step one and didn't publish it, you can upload the same version number over and over. 3. DO let your testers know the timeline and when you plan to turn it off. 4. DO publish with beta or something else in the package name so you can continue the beta or have some overlap. 5. DO remember that anyone can use the BETA APK till you either change the revision number or delete the APK from the market. 6. MIGHT want to add some other authentication via your own server or via Google App Engine (it's free up to a certain usage point): https://appengine.google.com/start 7. Just here because I like to have seven points =) I use this method and it seems to work well. A bit of trial and error was required, so I hope that Google will document a more official way to use it for beta, but I've listed all the things I've run into. Hopefully others can let you know if there is anything I missed. Steven Studio LFP http://www.studio-lfp.com On Sep 28, 9:53 am, Jean-Michel jeanmichel.caz...@gmail.com wrote: Hi there, I am at the point where I question releasing my application out in the wild, but before that I would like to go through a beta phase with beta testers recruited thru some forum (not my friends from childhood I mean). I am stunned that it seems Google did not plan for this at all... I am keen to have beta testers, but not so much that an unlimited/ unrestricted app leaks all over the place. This question has been asked already and I was wondering is there were any new news on the topic... Basically, if I issue them an application with a limited lifespan siging key, I won't be able to use this key on the market (because of the 2033 thingy). If I use adifferent key on the market, my beta testers will have to uninstall the application before being able to install the final version and they will lose their data. If I issue a debug signed application, it can go everywhere unless I do something (possibly complicated) in my app to restrict it to the beta crowd... I am not even thinking about giving the final app for free because it seems it is another can of worms. Any idea welcome, thanks in advance. JM -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 5:18 PM, John Goche johngoch...@googlemail.comwrote: I do have such methods. I cannot get the widget rows to observe the changes in the data due to an input in one of the rows. Well, I could call setAdapter() again each time the user types a keystroke, but then the EditText widget where the user was typing would lose the focus and refreshing the whole list rather than refreshing just the list views is inefficient. The problem seems to be I cannot set an observer on the rows to call after I change the underlying Map data model. I have found the following link: http://stackoverflow.com/questions/5320358/update-listview-dynamically-with-adapter which points out how you can call myList.getAdapter().notifiyDataSetChanged() to update the listView without calling setAdapter(). The problem is that it refreshes the whole list view and the row the user is editing loses the focus. Instead I need to only refresh individual rows in the list. Is there a way to do this? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: AsyncTask vs. IntentService
Wouldn't this suffer the same fate when the activity experienced a configuration change? On Sep 27, 5:00 pm, Streets Of Boston flyingdutc...@gmail.com wrote: IntentService dispenses with the configuration changes but leaves you in a lurch when requiring a response. In addition to Mark's suggestions, you could assign a ResultReceiver to one of the Intent's extras: Your Activity could implemented this ResultReceiver's *onReceiveResult * method. Your IntentService could just call '*send(resultCode, resultBundle)*' on it. This will cause the onReceiveResult at the Activity's side to be called. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Consuming Web Service with Complex Types in Android
Been at this problem the whole day, so hope someone can help. For a project I am working on, I need to invoke a .NET based web service. Several operations of this web service return complex types or arrays of complex types. In some cases the complex objects contain arrays of other complex objects until sometimes 3 levels deep. To make the handling of the objects easier by the Android developers, I would prefer them to have the actual object structure available upon the return of the result so they can easily parse through it. So far I've attempted to accomplish this using kSoap I've tried all sorts of things to make this possible. 1. Generate the Web Service Client classes in Netbeans - The generated stub requires J2ME libraries - The kSoap SoapEnvelope Response Object can't cast to the generated classes by Netbeans. 2. Tried using AXIS2 generated classes and stubs. - AXIS2 invocation code won't execute properly Need a solution to handle these complex data structures without having to write elaborate conversion code. Anybody got any suggestion or solution? Here is some of the code I tried: AXIS2: try { WSStub stub = new WSStub(); WSStub.GetZonesWithLocations req = new WSStub.GetZonesWithLocations(); GetZonesWithLocationsResponse resp = stub.getZonesWithLocations(req); ZonesWithLocations[] zones = resp.getGetZonesWithLocationsResult(); System.out.println(Zone Name + zones[0].getZoneName()); } catch(Exception e) { e.printStackTrace(); } Using the Netbeans generated classes: // Formulate Soap Request SoapObject request = new SoapObject(NAMESPACE2, METHOD_NAME2); // Create Soap Envelope SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL2); try { androidHttpTransport.call(SOAP_ACTION2, envelope); ZonesWithLocations[] response = ( ZonesWithLocations[]) envelope.bodyIn; System.out.println(Response: + response[0]..getZoneName()); } catch (Exception ex) { ex.printStackTrace(); } Hope anybody can help, a lot depends on getting this to work. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Changing package name in eclipse
I renamed a package in eclipse and checked off change name in all subfiles . Now when I try to load my app it crashes . I tried to rename back to the original and it still if crashing. Anyone have any experience with this problem ? Keith Zettler -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: AsyncTask vs. IntentService
On Wed, Sep 28, 2011 at 11:41 AM, stanlick stanl...@gmail.com wrote: Wouldn't this suffer the same fate when the activity experienced a configuration change? You probably pass the ResultReceiver to the new instance via onRetainNonConfigurationInstance(). Make sure the ResultReceiver does not have an implicit reference back to the old activity, but rather has an explicit one that is reset in the onCreate() of the new instance. IOW, it's the same basic pattern as I describe here for AsyncTask, just with the ResultReceiver being the thing you're passing between activity instances: http://stackoverflow.com/questions/3821423/background-task-progress-dialog-orientation-change-is-there-any-100-working/3821998#3821998 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 10:40 AM, John Goche johngoch...@googlemail.comwrote: The problem is that it refreshes the whole list view and the row the user is editing loses the focus. Instead I need to only refresh individual rows in the list. Is there a way to do this? Oh. Your life got complicated. You could make the map be MapMyType, ListEditText, so as one EditText is updated, it sends an event, finds its corresponding MyType, uses that to index the map, finds the dependent EditText's, and updates those. You would refresh the map in getView() as necessary since the ListRecycles views. - 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] Changing package name in eclipse
Did you change the package name in the AndroidManifest.xml, the package line at the top of the java files and any references to your package? Thanks On Wed, Sep 28, 2011 at 9:20 PM, Keith leftcont...@gmail.com wrote: I renamed a package in eclipse and checked off change name in all subfiles . Now when I try to load my app it crashes . I tried to rename back to the original and it still if crashing. Anyone have any experience with this problem ? Keith Zettler -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 -- -- Raghav Sood CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles required to have complete control) http://www.raghavsood.com/ https://market.android.com/developer?pub=Appaholics http://www.appaholics.in/ -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Changing package name in eclipse
On Wed, Sep 28, 2011 at 12:50 PM, Keith leftcont...@gmail.com wrote: I renamed a package in eclipse and checked off change name in all subfiles . Now when I try to load my app it crashes . Define Crashes :) Did you changed the package name in the manifest? I tried to rename back to the original and it still if crashing. Anyone have any experience with this problem ? Keith Zettler -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: AsyncTask vs. IntentService
Actually, the comment in DetachableResultReceiver.java has this to say about config changes: /** * Proxy {@link ResultReceiver} that offers a listener interface that can be * detached. Useful for when sending callbacks to a {@link Service} where a * *listening {@link Activity} can be swapped out during configuration changes*. */ (emphasis mine) -- Kostya 2011/9/28 Mark Murphy mmur...@commonsware.com: On Wed, Sep 28, 2011 at 11:41 AM, stanlick stanl...@gmail.com wrote: Wouldn't this suffer the same fate when the activity experienced a configuration change? You probably pass the ResultReceiver to the new instance via onRetainNonConfigurationInstance(). Make sure the ResultReceiver does not have an implicit reference back to the old activity, but rather has an explicit one that is reset in the onCreate() of the new instance. IOW, it's the same basic pattern as I describe here for AsyncTask, just with the ResultReceiver being the thing you're passing between activity instances: http://stackoverflow.com/questions/3821423/background-task-progress-dialog-orientation-change-is-there-any-100-working/3821998#3821998 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 6:00 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 28, 2011 at 10:40 AM, John Goche johngoch...@googlemail.comwrote: The problem is that it refreshes the whole list view and the row the user is editing loses the focus. Instead I need to only refresh individual rows in the list. Is there a way to do this? Oh. Your life got complicated. You could make the map be MapMyType, ListEditText, so as one EditText is updated, it sends an event, finds its corresponding MyType, uses that to index the map, finds the dependent EditText's, and updates those. Yes this is basically what I want to do. You would refresh the map in getView() as necessary since the ListRecycles views. OK so I refresh the MapMyType, ListEditText in getView() by adding the EditText handles to the data stucture you suggested. Then each time the user changes data in an EditText, I update my data model, then look in MapMyType, ListEditText to see what needs to be refreshed, and refresh each EditText with setText(). I am going to try this approach and hope that the result is not too sluggish. Should be just fine from what I gather. In fact I already have a ListMyType, If I set up another ListEditText I could refresh this inside getView() instead I think, right? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 11:21 AM, John Goche johngoch...@googlemail.comwrote: In fact I already have a ListMyType, If I set up another ListEditText I could refresh this inside getView() instead I think, right? Pretty much. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Ringtones
Finally was able to find an example. Thank the Lord for smart people http://groups.google.com/group/android-developers/browse_thread/thread/fc05ace7d76dff62 On Sep 27, 2:52 pm, erik wagner erik.j.wag...@gmail.com wrote: Whoops, the Uri newUri line should have 'aUri' in the getContentResolver().insert portion. My editing mistake, only correcting so there's no confusion on anyone trying to follow it. Thanks. On Sep 27, 12:49 pm, erik wagner erik.j.wag...@gmail.com wrote: Hi, I'm trying to add a ringtone to the ringtone picker and am having a tough go of it. I am working off this example (http:// groups.google.com/group/android-developers/browse_thread/thread/ b5590a1551e4f97d) but cannot seem to get it to work. Any help would be greatly appreciated. Thanks. (my code is probably all over the place at this point) myContentValues.put(MediaStore.MediaColumns.DATA, getString(R.raw.asound)); myContentValues.put(MediaStore.MediaColumns.MIME_TYPE, audio/mp3); myContentValues.put(MediaStore.MediaColumns.TITLE, A Sound); I've left the other entries off since those seem to be pretty easy, is that the correct format of the DATA portion? The audio file is an mp3 in the res/raw folder. It is set as a ringtone including the rest of (what I think is) the relevant code, Uri aUri = MediaStore.Audio.Media.getContentUriForPath(getString(R.raw.asound)); Uri newUri = getContentResolver().insert(fearUri, myContentValues); RingtoneManager.setActualDefaultRingtoneUri(myContext, RingtoneManager.TYPE_RINGTONE, newUri); So I guess I have several questions... 1. Is there anything plainly wrong with the myContentValues statements? 2. When the ringtone picker is brought up should the title show up (in this case A Sound) or will it remain listed as 'default ringtone'? 3. If there is a sample project online that does this that anyone knows about (I looked through all the sample stuff but didn't see anything, I could have easily missed it though) feel free to include that. 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] Re: Consuming Web Service with Complex Types in Android
Based on what you posted, you control both the server and the client, right? If so, have you tried JSON? I've used it quite a bit for server - client and there are a lot of helpers for every language out there, including a native Android API. http://developer.android.com/reference/org/json/package-summary.html I personally haven't used .NET on these projects, but it's done well for both local and server storage of complex objects. A quick Google of .net json took me to http://json.codeplex.com/ . Again, I don't use .NET so I can't say anything for sure, but might be worth a look. Steven Studio LFP http://www.studio-lfp.com On Sep 28, 10:50 am, AgitoM karel.m...@gmail.com wrote: Been at this problem the whole day, so hope someone can help. For a project I am working on, I need to invoke a .NET based web service. Several operations of this web service return complex types or arrays of complex types. In some cases the complex objects contain arrays of other complex objects until sometimes 3 levels deep. To make the handling of the objects easier by the Android developers, I would prefer them to have the actual object structure available upon the return of the result so they can easily parse through it. So far I've attempted to accomplish this using kSoap I've tried all sorts of things to make this possible. 1. Generate the Web Service Client classes in Netbeans - The generated stub requires J2ME libraries - The kSoap SoapEnvelope Response Object can't cast to the generated classes by Netbeans. 2. Tried using AXIS2 generated classes and stubs. - AXIS2 invocation code won't execute properly Need a solution to handle these complex data structures without having to write elaborate conversion code. Anybody got any suggestion or solution? Here is some of the code I tried: AXIS2: try { WSStub stub = new WSStub(); WSStub.GetZonesWithLocations req = new WSStub.GetZonesWithLocations(); GetZonesWithLocationsResponse resp = stub.getZonesWithLocations(req); ZonesWithLocations[] zones = resp.getGetZonesWithLocationsResult(); System.out.println(Zone Name + zones[0].getZoneName()); } catch(Exception e) { e.printStackTrace(); } Using the Netbeans generated classes: // Formulate Soap Request SoapObject request = new SoapObject(NAMESPACE2, METHOD_NAME2); // Create Soap Envelope SoapSerializationEnvelope envelope = new SoapSerializationEnvelope( SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL2); try { androidHttpTransport.call(SOAP_ACTION2, envelope); ZonesWithLocations[] response = ( ZonesWithLocations[]) envelope.bodyIn; System.out.println(Response: + response[0]..getZoneName()); } catch (Exception ex) { ex.printStackTrace(); } Hope anybody can help, a lot depends on getting this to work. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Consuming Web Service with Complex Types in Android
On Wed, Sep 28, 2011 at 10:50 AM, AgitoM karel.m...@gmail.com wrote: Need a solution to handle these complex data structures without having to write elaborate conversion code. Anybody got any suggestion or solution? Convert to / from XML / JSON? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: chmod 777 file not working with init.rc
How about giving permission before to do that? chown system sysetm sys fs file name chmod 777 sys fs file name Lee. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Changing package name in eclipse
Check the logs. It should give you some hints... *Thanks and Regards, Kumar Bibek* * http://techdroid.kbeanie.com http://www.kbeanie.com* On Wed, Sep 28, 2011 at 9:20 PM, Keith leftcont...@gmail.com wrote: I renamed a package in eclipse and checked off change name in all subfiles . Now when I try to load my app it crashes . I tried to rename back to the original and it still if crashing. Anyone have any experience with this problem ? Keith Zettler -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Can I count the touches out of the app?
I want to make a program, which will count all of the touches what was made on the phone. I want the user, to not to close the program only send it to the backgorund, with the home button. Can I count the touches which are out of my program (for example which are in the launcher, or in the webbrowser) too? If yes, how? Thanks for replies! -- You received this message because you are subscribed to the Google Groups Android Developers group. 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 count the touches out of the app?
Why are you writing spyware? On Wed, Sep 28, 2011 at 12:50 PM, Zwiebel hunzwie...@gmail.com wrote: I want to make a program, which will count all of the touches what was made on the phone. I want the user, to not to close the program only send it to the backgorund, with the home button. Can I count the touches which are out of my program (for example which are in the launcher, or in the webbrowser) too? If yes, how? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: dynamic listview problem: would like EditText change to trigger another EditText change
Have you considered just making your custom objects views? You can make the object extend a LinearLayout and place a EditText in it and have your view and data structure all as one object. Then you can just keep an array of these objects and when one changes, just iterator over them and change them all. I do something like... public class CustomItem extends LinearLayout { private EditView evView; // Additional data fields here. public void createView( LayoutInflater inflater ) { inflater.inflate( R.layout.item, this, true ); evView = (EditView )findViewById( R.id.evView); } public void populate() { // Populate data here. } } Just create the array of object, populate them, create their internal view and return the objects via index in an ArrayAdapter to a ListView. CustomItem[] ciList = new CustomItem[ x ]; Use a for loop or whatever processing loop you use to get the data and in each: ciList[x] = new CustomItem(); ciList[x].populate(); ciList[x].createView( inflater ); // I do an LayoutInflater.from( context ) and reuse it. Then in the ArrayAdapter: public int getCount() { return ciList.length; } public View getView( int position, Viewhttp://developer.android.com/reference/android/view/View.htmlconvertView, ViewGrouphttp://developer.android.com/reference/android/view/ViewGroup.htmlparent ) { return ciList[ position ]; } Now when you get a press/long press or any other action in a callback, type the returned view to your class and all the data is right there for you to use. Steven Studio LFP http://www.studio-lfp.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] ondraw method for a view getting called again and again
I have overriden ondraw method for a view where I am drawing a circle.But this method is getting called again and again though I don't have any loop and nor have I called Invalidate().. Any suggestions please?? -- You received this message because you are subscribed to the Google Groups Android Developers group. 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: Can I count the touches out of the app?
I don't want to write spyware :) I only want an app what count every touches which is on the phone. I want to make a statistics program, about how many clicks on a phone per day in average :) Is this mean spyware, so I can't do this, or it is isn't supported? On szept. 28, 18:54, Mark Murphy mmur...@commonsware.com wrote: Why are you writing spyware? On Wed, Sep 28, 2011 at 12:50 PM, Zwiebel hunzwie...@gmail.com wrote: I want to make a program, which will count all of the touches what was made on the phone. I want the user, to not to close the program only send it to the backgorund, with the home button. Can I count the touches which are out of my program (for example which are in the launcher, or in the webbrowser) too? If yes, how? -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android App Developer Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Can I count the touches out of the app?
On Wed, Sep 28, 2011 at 1:34 PM, Zwiebel hunzwie...@gmail.com wrote: I don't want to write spyware :) I only want an app what count every touches which is on the phone. Intercepting input destined for other applications qualifies as spyware, as far as I am concerned. Today, you collect statistics about how many clicks on a phone per day. Tomorrow, you send those events to a server and mine the data to try to steal passwords and PINs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 12:17 PM, Studio LFP studio@gmail.com wrote: Just create the array of object, populate them, create their internal view and return the objects via index in an ArrayAdapter to a ListView. This of course throws out the recycling optimization ListVIew does, so may not be practical for large data sets. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I count the touches out of the app?
I believe it has been stated by some of the Android development team that the ability to watch buttons (and I would figure this would include touches) is restricted to the foreground application only to prevent things like keyloggers and other spyware types. I have an application that I would like to watch the volume buttons, which can't be used for spyware or anything like it, and found out I can't even watch those from the background. So I'm pretty sure this isn't, and won't, be available in Android. Steven Studio LFP http://www.studio-lfp.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] ondraw method for a view getting called again and again
On Wed, Sep 28, 2011 at 12:23 PM, ruchira ruchira...@gmail.com wrote: Any suggestions please?? Post some code? - 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] dynamic listview problem: would like EditText change to trigger another EditText change
Hi TreKing, I have tried implementing the solution you suggested. I found that when I call setText programmatically rather than from user input the TextWatcher's afterTextChanged() method is also called so I had to implement a static boostan lock to prevent a stack overflow from all the TextWatchers. However when I get to set the text on the EditText fields I want the text does not appear in the listView even when the text is updated. I tried debugging with Log.d to see what was going on and the right rows semed to be updated with the right text, but after calls to setText, no visible update in the UI. What's wrong with this code. Am I updating some EditText widgets which are off the screen somewhere in memory? What's the likely cause of the problem? I've tried calling postInvalidate() on the EditTexts but no luck. Thanks for your suggestions, This solution seems not far away from working, if only this glitch could be fixed... John Goche -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] Improving Local GPS Accuracy
It's always fun watching people try to game probabilities. -- You received this message because you are subscribed to the Google Groups Android Developers group. 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] dynamic listview problem: would like EditText change to trigger another EditText change
On Wed, Sep 28, 2011 at 12:58 PM, John Goche johngoch...@googlemail.comwrote: What's wrong with this code. Am I updating some EditText widgets which are off the screen somewhere in memory? What's the likely cause of the problem? I've tried calling postInvalidate() on the EditTexts but no luck. Well, that's tough to say with just a high-level description of the problem. I would try calling dataSetChanged() on the adapter to see if that makes a difference and as a test programmatically set some text on all EditTexts to see if that shows up at all. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Can I count the touches out of the app?
Ok thanks for replies! So I can't do it android. Thanks for helps! On szept. 28, 17:51, Studio LFP studio@gmail.com wrote: I believe it has been stated by some of the Android development team that the ability to watch buttons (and I would figure this would include touches) is restricted to the foreground application only to prevent things like keyloggers and other spyware types. I have an application that I would like to watch the volume buttons, which can't be used for spyware or anything like it, and found out I can't even watch those from the background. So I'm pretty sure this isn't, and won't, be available in Android. Steven Studio LFPhttp://www.studio-lfp.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] Re: dynamic listview problem: would like EditText change to trigger another EditText change
On Wednesday, September 28, 2011 12:49:15 PM UTC-5, TreKing wrote: On Wed, Sep 28, 2011 at 12:17 PM, Studio LFP studi...@gmail.com wrote: Just create the array of object, populate them, create their internal view and return the objects via index in an ArrayAdapter to a ListView. This of course throws out the recycling optimization ListVIew does, so may not be practical for large data sets.http://sites.google.com/site/rezmobileapps/treking You can easily get around this by using an ArrayList that can be added to or removed from as needed and adding lazy loading to the object to get the data and populate the view when it is asked to show itself. Based on what he is trying to do, he's still holding all the data anyway. Putting it in a view object instead of just a regular object doesn't add that much memory, but makes the application a ton faster and a lot easier to write. Those alone make it worth it. Steven Studio LFP http://www.studio-lfp.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] ondraw method for a view getting called again and again
I think I found the problem. I wasn't recycling my rows, which meant a new EditText would have to be created from row.findViewById each time I update the EditText. Instead I really need to recycle rows for this to work. I am going to try that now. Chapter 8 of Commonsware's The Busy Coder's Guide to Android Development by Mark Murphy shows how to recycle. I am going to try that now. Post some code? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devicesw -- You received this message because you are subscribed to the Google Groups Android Developers group. 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