[android-developers] Re: Не открывается приложение.
What's the actual error message? "Name error" is a bit too vague. Maybe there is a name conflict with another application? On Wednesday, March 23, 2016 at 4:07:15 AM UTC-4, Наталья Макаренко wrote: > > Разработала приложение. Я новичок, поэтому возникли проблемы. Может, кто > сможет мне помочь. Приложение для андроид, в плей маркете загружаеться, но > не открывается. Пишет ошибка имени. Вроде всё правильно устанавливала. Где > я могла совершить ошибку? > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/7b317ae5-7c0e-44f4-a8e0-1947b8a12cdf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Google Play Services Geofence Problem
Regardless of the API there is no magic involved here. The physical GPS hardware has to be active at all times to provide that level of accuracy (and you have to have sufficient sky view too). That comes at a cost, specifically to the battery. The OS is likely trying to reduce that cost by switching to the more readily available lower cost cell triangulation position. On Saturday, March 7, 2015 at 5:28:53 PM UTC-5, Tony Pitman wrote: I wrote an app that uses location services. It creates a geofence around my house and lets my app know when I come home. I am doing this in a service in the background so that my app doesn't have to be the active app to function. I was using the LocationManager api. I have a Samsung Galaxy Note 2 with Android 4.1 on it. The app was working perfectly. I upgrade the phone to Android 4.3 because it just became available. Now all of a sudden my app started getting notifications that I was outside of the geofence when I was still inside and not even really moving. I did some searching and saw a video presentation from the Google IO conference in 2013. It talked about the new Google Play Services (at the time new) and all the great stuff they were doing with location. I decided to switch to that because it seemed like a better way to go. When I studied the api I found that even the stuff in that video was deprecated and there was newer stuff. I got excited thinking it would solve my problem of accuracy. I just finished implementing my app using the Google Play services Geofencing. Guess what? I have the same problem. I put in some logging and basically here is what happens: I use the Fusion request for location updates to figure out where I am. I first look for an accuracy of 10 meters for at least 5 samples. This is done because my radius is 80 meters, so I have to have a high accuracy when starting out. Once I get that I turn OFF the location updates and set up the geofence. I use the location of my house that was previously gathered from a mapping piece of my app with a radius of 80 meters. I would like to be able to go down to 20 meters if I can get it working, but 80 for now. When I first create the geofence I get 2 notifications right away. The accuracy on those events is 3.8 meters. I then let the app sit for about a minute. At that point I then get 2 more transition events. Both of them say I am outside of the geofence. The accuracy on these events is 2373 meters. I can only assume that after a minute the api has switched to a lower accuracy system for some reason. I then walked at least 80 meters away from my house and I never got any more transition events at all. The question is what do I do about it? My app is even still the active app, so this is not a background issue. I assume it might even be worse if I was in the background. I have requested the highest accuracy. I have heard people say that the answer to this problem is to leave a location update request going. Doesn't the defeat the whole purpose of letting the api take over for us? Shouldn't I be able to say I need high accuracy geofencing and the api just takes care of it? Here are some snippets from my code: public synchronized void buildGoogleApiClient() { _googleApiClient = new GoogleApiClient.Builder(_context) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(LocationServices.API) .build(); } Geofence geofence = new Geofence.Builder() .setRequestId(door.Id) .setTransitionTypes(Geofence.GEOFENCE_TRANSITION_ENTER | Geofence.GEOFENCE_TRANSITION_EXIT) .setCircularRegion(door.Latitude, door.Longitude, door. ActivationDistance) .setExpirationDuration(Geofence.NEVER_EXPIRE) .build(); GeofencingRequest geofenceRequest = new GeofencingRequest.Builder() .addGeofence(geofence) .setInitialTrigger(door.IsInside ? GeofencingRequest. INITIAL_TRIGGER_ENTER : GeofencingRequest.INITIAL_TRIGGER_EXIT) .build(); LocationServices.GeofencingApi.addGeofences(_googleApiClient, geofenceRequest, pi); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: getSkuDetails returns BILLING_RESPONSE_RESULT_ERROR
Anything to do with the recent DNS outage on 8.8.8.8 ? On Monday, October 13, 2014 12:41:07 PM UTC-4, Nathan wrote: User reports that he cannot sync up his in app purchases. This is not in a sandbox or in testing. This is in the real world. Previously purchased items cannot be synched. I've narrowed down to the fact that I querySkuDetails and get: BILLING_RESPONSE_RESULT_ERROR=Fatal error during the API action Various comments about this on the internet indicated that Google Play might time out and return this error if it doesn't get a response from its own server within 20 seconds or whatever. However, I know of no way to force Google to get their response faster, or anything to ask the customer to do. I did ask him to clear caches as Google sometimes asks. Apparently this used to work for the customer over mobile but not wifi but now works on neither. Any ideas? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: Location.distanceTo() and Asus Memo Pad.
You could verify the first assumption by doing the distance calculation manually. On Friday, April 25, 2014 2:16:17 PM UTC-4, Nathan wrote: In one weekend, I suddenly got six reports that distance measure by GPS was way off. Way off. Like walk 500 feet and it says you just walked 32 miles. On further interrogation, ALL of these reports were from device model ME173X, the Asus Memo pad. Possibilities are the following: Getting erroneous or inconsistent results from the Location.distanceTo or Location.distanceBetween method. (Sounds really weird, but some behavior described by an end user could be caused by that.) Getting a bunch of noisy location data form the GPS. But this is already a common scenario, and they would see other effects from it. Anyone aware of any weird things from that device? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Re: I want to know how to get the ID of the radio frequency on the Android app! !
As a general rule the communications radio is off limit (not accessible) to users. You probably know the key sequences that can give you diagnostic information on the radio, but I am not sure if dialing these numbers from your application will return the information to anywhere else but the screen. On Sunday, February 2, 2014 7:08:50 PM UTC-5, マキレット wrote: To: all of you I'm Japanese. Thank you for your help. I have e-mail there is an urgent question. I want to know how to get the ID of the radio frequency on the Android app! ! PhoneStateListener # onSignalStrengthsChanged in (SignalStrength sigStrength), Although we can get the information level or value, of the communication method of radio wave intensity, Frequency ID just do not know how to get. And more 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to get physical screen size reliably for all devices?
One more speculation: Vendors claim that their pixels are square when in reality the are not . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: how to Check mobile data on/off in the device settings.
What do you actually need to accomplish? Normally you would try to reach a well known host like 8.8.8.8 and if that succeeds you're connected (on whatever network connection). On Monday, January 27, 2014 4:06:58 AM UTC-5, 12169 wrote: Hi, is there any way to check ,mobile data on/off in the settings. On Sunday, January 26, 2014 11:22:19 PM UTC+5:30, 12169 wrote: Hi, I want to check whether mobile data is on/off, and for this I use the below code ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE);Class cmClass = Class.forName(cm.getClass().getName()); Method method = cmClass.getDeclaredMethod(getMobileDataEnabled); method.setAccessible(true); // Make the method callable // get the setting for mobile data mobileDataEnabled = (Boolean) method.invoke(cm); However, this code does not work on some devices, and throws an exception that no such method exists. I have found it is not working in Android 4.1.x. Why is it throwing this execption, and how can I fix it? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android Toast is not clickable in some devices.
Toasts close after a time limit (short or long), independent of user action. What you observed was just coincidence, not causality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Android Implementation of Emacs
There is a developer keyboard app available on the Google store that has all the required keys. Also has arrow keys which are kinda important for working with editors. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to open dialer during a call programmatically ?
http://code.google.com/p/android/issues/detail?id=1428 On Monday, January 13, 2014 12:55:49 AM UTC-5, Juned Khan wrote: Hi all, I have specific requirement, i want to answer incoming call automatically and dial some DTMF number. I am able to answer call, but having problem with opening dialpad and sending DTMF during a call. I tried to do this using ITelephony.aidl class, but it seems those methods are not working in Android 2.2 above and its giving me permission related error. so is there any other laternaive for that, how do i achieve my goal. I have posted the related question in stackoverflow as well, below is the link where i have posted the code snippets. http://stackoverflow.com/questions/21019975/neither-user-10056-nor-current-process-has-android-permission-modify-phone-state for permission related error i found this http://code.google.com/p/android/issues/detail?id=15031#makechanges Any help and idea will be appreciated. Thanks Juned Khan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Country filter
Could be a speed cameras app, but those are illegal in all of France, regardless of the user's nationality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: memory issue with Google Maps API v2
Have a look at how it is done in iOS. There you can have as many annotations as you want, and the system will only render the associated markers if they are actually on screen. In addition you want to limit the number of visible markers when you zoom out. Generally anything over 50 will be illegible on a phone screen. So have a round robin buffer of 50 annotations that you update based on the proximity to your current map center. On Tuesday, November 5, 2013 12:09:29 AM UTC-5, raj wrote: Hi, I am looking for ideas to tackle a memory issue that I face with Google Maps for Android API v2. My application requires loading thousands of markers (20k or 40k etc). In testing with 10k markers, i see that the map gets loaded in 20secs, which for now is okay. but the problem is that the user can go back to a different activity and return to the map activity(with a filter), at which point i need to load say 5k markers(could be different). But this time the GC is called and it might take upto 10 mins to load 5k markers. Can someone provide me some ideas to tackle this? I do need to show all markers. Best, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: problem centering the camera in Maps V2
What happens if you set the camera tilt to zero? On Thursday, September 26, 2013 7:50:45 PM UTC-4, Gary Blakely wrote: In my android app I have the following code... CameraUpdate center= CameraUpdateFactory.newLatLng(new LatLng(Lat,Lon)); DebugLog.debugLog(centered camera on + Lat + and + Lon, false); CameraUpdate zoom=CameraUpdateFactory.zoomTo(15); map.moveCamera(center); map.animateCamera(zoom); map.addMarker(new MarkerOptions() .position(new LatLng(Lat, Lon)) .title(Phone Location) ); Lat is 31.7898 Lon is -111.0354 The marker is exactly at that location. However the camera is centered about 5 miles north of that location on the v2 map. Why? Thanks Gary -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: ListView with selected state does not work when list item view has a background
I would go with the brute force approach. Yes, you're redrawing the (visible part of the) list but you're only doing it once, not every five milliseconds. On Thursday, May 16, 2013 5:14:29 AM UTC-4, Miha wrote: Hi! I'm trying to understand the mechanics behind highlighting the selected list item. I have a list fragment, which might display with a secondary details fragment if the screen width allows it. In that case, I want to highlight the selected list item. In order to do so, the listview has defined choice mode of single, and also a defined selector: listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); listView.setSelector(R.drawable.listitem_selector); The list uses a custom view for layout, and when the view does not set the android:background, the listitem_selector works -- it shows on the screen. When the row layout has a background set to a drawable (in my case, it is selector, consisting of colors), the listitem_selector does not work. I tried the methods explained in the stackoverflow posthttp://stackoverflow.com/questions/2562051/listview-item-background-via-custom-selector, but the approach does not work, at least not in my case. I'm obviously missing a part of the puzzle and I would appreciate any insight into this matter. One possible solution I see is modifying the backing adapter implementation and providing a different view based on the state of the item, but that seems like wrong approach -- I would have to update the adapter with information on the selected item and call notifyDataSetChanged, which would (I suppose) result in an unnecessary re-drawing of the whole list. Regards, Miha. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Google Map not showing
39 characters is correct. However you do NOT want to post your API key in public. You really will want to read the documentation. https://developers.google.com/maps/documentation/android/start On Tuesday, May 7, 2013 2:01:37 AM UTC-4, surabhi jain wrote: When i am generating api key it is generating 39 characters key, AIzaSyDvC0EKylvJ3vnDF3pBzVxOhcweF_V_Urs not generating 40 characters On Tue, May 7, 2013 at 11:27 AM, surabhi jain surabhi...@gmail.comjavascript: wrote: I have run my app on device but it is not displaying map, again it is displaying grid. is there any jar file or other thing to import? On Tue, May 7, 2013 at 12:11 AM, lbendlin lu...@bendlin.us javascript: wrote: In addition, V2 maps do not (easily) work on an emulator. You would need an actual device with Play Services installed. On Monday, May 6, 2013 2:40:02 PM UTC-4, lbendlin wrote: The Google Maps Android API v2 uses a new system of managing keys. Existing keys from a Google Maps Android v1 application, commonly known as MapView, will not work with the v2 API. On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote: Hi all, I am using Android Google Map V2.I have created api key with the help of below command keytool -list -v -alias androiddebugkey -keystore C:\Users\android\.android\**debug.keystore -storepass android -keypass android After generating api key,when I run my application on emulator it display grid. Map is not displaying. Thanks Surabhi Jain -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Overloading of Back Key functionality
Having a dialog popup asking Do you really want to exit the application seems to be bad karma. However, a toast stating If you press Back again this will exit the app seems to be less intrusive, and might be a better way to prevent accidental user actions. It may also depend on the current app state if you want to allow exiting the app or if you want to put the app into the background when the user presses back (or home for that matter) On Monday, May 6, 2013 9:35:53 AM UTC-4, Piren wrote: Actually, even in earlier versions of Android the activity stack behavior could be manipulated in ways you wouldn't expect using task reparenting and etc. Basically in one instance back could bring you back to your app, in others it can act like going up in that app...Google's example was opening a Send Email activity which can have its Back button either go back to your app, or go into the Inbox of that app. My guess is that all this confusion is why they created the Action Bar and give you the option to make it more consistent by making a distinction between what Back is and what Up is. As far as i recall, Google doesn't even recommend overriding the Back button, pretty much for these exact reasons. But in your case (your app) you need to override it if you plan on getting what you expect...The way you described it is that you expect the Back button to navigate within you app, but it seems like you never switch activities/fragments, you just change the information displayed... so when pressing the Back button it exists the app, since this is what should happen... your expectations are actually the wrong ones, since this is not how you've implemented the app. On Monday, May 6, 2013 3:52:40 PM UTC+3, Doug Gordon wrote: Excuse me for a minor rant, but is anyone else bothered by what I call the overloading of the Android Back key? What I mean by this is that pressing it can have two vastly different results: it can return you to an earlier view in the app you are using, or it can effectively exit the app and return to the previous app or home screen. In the original concept (?) of Android, this can work well. For example, you have an app with a View on Map control. Tap it and you throw out an Intent that's picked up by Google Maps. When you're done, you press the Back key and return to the original app. Fine. However -- and for me this is a big however -- many if not most apps are a lot more complex and are more in the nature of standalone programs. When running these apps, the Back key is used to back up to previous viewing states of the app, such as returning from an article to the table of contents. Trouble is, it's not always obvious or easy to remember the hierarchy of the app contents, and I don't know how many times I press the Back key expecting to return to another state of the app and instead find myself looking at the home screen! An example: The user runs a weather app and it displays the weather for her location. She decides to look at the weather in another city and uses some control to select it. At this point it is easy to assume that pressing the Back key will return the app to the previous city's data, but that's not how it works: pressing that key exits the app. My own app has this situation, and even when using it myself I sometimes accidentally exit it instead of going back to an earlier set of details. I notice that some apps have put in an Are you sure you want to exit? dialog that helps prevent this, but it would seem it would be a lot cleaner if this were not necessary. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Google Map not showing
The Google Maps Android API v2 uses a new system of managing keys. Existing keys from a Google Maps Android v1 application, commonly known as MapView, will not work with the v2 API. On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote: Hi all, I am using Android Google Map V2.I have created api key with the help of below command keytool -list -v -alias androiddebugkey -keystore C:\Users\android\.android\debug.keystore -storepass android -keypass android After generating api key,when I run my application on emulator it display grid. Map is not displaying. Thanks Surabhi Jain -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Google Map not showing
In addition, V2 maps do not (easily) work on an emulator. You would need an actual device with Play Services installed. On Monday, May 6, 2013 2:40:02 PM UTC-4, lbendlin wrote: The Google Maps Android API v2 uses a new system of managing keys. Existing keys from a Google Maps Android v1 application, commonly known as MapView, will not work with the v2 API. On Monday, May 6, 2013 1:09:53 PM UTC-4, surabhi jain wrote: Hi all, I am using Android Google Map V2.I have created api key with the help of below command keytool -list -v -alias androiddebugkey -keystore C:\Users\android\.android\debug.keystore -storepass android -keypass android After generating api key,when I run my application on emulator it display grid. Map is not displaying. Thanks Surabhi Jain -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Splash Screen: When my splash screen loads and i hit the back button, the application still shows?? why??
you need to cancel your three second timer. On Friday, May 3, 2013 6:14:22 AM UTC-4, mrallen302 wrote: I am fairly new to android development and i have just finished my first application. I added in a splash screen which works perfectly it loads b4 the main menu and then switches after 3 seconds, however if the back button is pushed on the phone during the splash screen, you are taken out of the application then after the 3 seconds passes the Main menu will be displayed. This there any way i can get the application to be destroyed if the back button is pushed during the splash screen?? Thank you -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: WebView FileUploader
The website is expecting a Windows or OSX computer at the other end, and has no idea how to handle an Android file system. (Well, Linux, but same difference) On Friday, May 3, 2013 4:11:10 AM UTC-4, rahul kaushik wrote: AnyOne??? On Thu, May 2, 2013 at 3:17 PM, Rahul Kaushik rahulka...@gmail.comjavascript: wrote: Hi, I am using Webview as container for a website,Web site have an option Upload File ,this button is not working for me am using Android Version(3.0.1) Any Suggestions?? Thanks RK -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Splash Screen: When my splash screen loads and i hit the back button, the application still shows?? why??
when the back button is pushed you need to check if the timer is running, and if it is then you need to cancel it. On Friday, May 3, 2013 10:18:45 AM UTC-4, mrallen302 wrote: Do u mean delete when the back button is pushed as I am quite new to android or do u mean delete the timer from my code Thank you for replying though -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] I cracked my screen on my tablet am i able to get it repaired?
Don't you just need to install one of these fake screen crack apps to cancel out the effect? On Tuesday, April 30, 2013 2:54:28 AM UTC-4, Piren wrote: I do wonder... if you analyze the fractures and how they reflect and refract light, maybe it's possible to do manipulate the display in a way that counter acts the fracture thus making it appear less visible and the display to appear unbroken... Would still be cracked though :-P On Tuesday, April 30, 2013 1:06:15 AM UTC+3, Lew wrote: Spooky wrote: Chris Fraser wrote: I cracked my screen on my tablet am i able to get it repaired? No. I seriously doubt that you'll be able to develop an Android app to repair your broken screen. You might be able to get it repaired by some other means besides developing an Android app (using the SDK), but that's a subject for a different e-mail list, forum, etc. For other ways than writing an app to repair your screen, see http://lmgtfy.com/?q=How+do+you+repair+a+cracked+Android+tablet+screen -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] android.database.sqlite.SQLiteException
if you have to use it, encapsulate it with square brackets. Create table [order] ... On Tuesday, April 30, 2013 12:06:39 PM UTC-4, Dan Cha wrote: Not sure about SQLite, but order is a reserved word for SQL, maybe that is the issue maybe try orders instead. On Tue, Apr 16, 2013 at 10:17 PM, shoaib khan skks...@gmail.comjavascript: wrote: I am creating a table named order in the database order.db. I am getting error during the execution of the function call database.execSQL(DATABASE_CREATE). Error is as follows: 04-17 02:06:35.014: E/AndroidRuntime(4612): android.database.sqlite.SQLiteException: near order: syntax error (code 1): , while compiling: create table order ( _id integer primary key autoincrement, orderName text not null, orderCommission text not null, orderDate text not null, orderSlot text not null, orderGain text not null, orderNO text not null, orderValue text not null); package com.shoaib.lotteryerp.helper; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class MySQLiteHelperOrder extends SQLiteOpenHelper { public static final String TABLE_ORDER = Order; public static final String COLUMN_ID = _id; public static final String COLUMN_NAME = orderName; public static final String COLUMN_DATE=orderDate; public static final String COLUMN_ORDERNO=orderNO; public static final String COLUMN_SLOT=orderSlot; public static final String COLUMN_ORDERVALUE=orderValue; public static final String COLUMN_COMMISSION=orderCommission; public static final String COLUMN_GAIN=orderGain; private static final String DATABASE_NAME = order.db; private static final int DATABASE_VERSION = 2; // Database creation sql statement private static final String DATABASE_CREATE = create table + TABLE_ORDER + ( + COLUMN_ID + integer primary key autoincrement, + COLUMN_NAME + text not null, + COLUMN_COMMISSION + text not null, + COLUMN_DATE + text not null, + COLUMN_SLOT + text not null, + COLUMN_GAIN + text not null, + COLUMN_ORDERNO + text not null, + COLUMN_ORDERVALUE + text not null);; MySQLiteHelperOrder(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } public void onCreate(SQLiteDatabase database) { database.execSQL(DATABASE_CREATE); } public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(MySQLiteHelperOrder.class.getName(), Upgrading database from version + oldVersion + to + newVersion + , which will destroy all old data); db.execSQL(DROP TABLE IF EXISTS + TABLE_ORDER); onCreate(db); } } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Check a particular point lies on a route of Google Map
You would need to use the directions API to calculate the route and then compare your point E to each of the route segments. You will also need to define what lies on the route means in terms of precision. On Wednesday, April 24, 2013 10:46:25 AM UTC-4, Ayan Ghosh wrote: Hello, We are searching for a solution to check whether a point is lying on a route of goole map. We can get the start and end location 's latitude and longitude. For example Mr X is starting from point A and will reach point B via point C and D. Now Mr Y will start from point E and we want to check whether this point E lies on the route of Mr A or not. We have search Google map api but not able to finf any solution. Can anyone help me out on this?? Waiting for your reply. Thanks -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Any good guide lines for using TAG when using Log. statements
Adding the company name is not necessary as the Eclipse debug widget already gives you the option to filter by your app. On Tuesday, April 30, 2013 2:02:41 PM UTC-4, Subodh Nijsure wrote: I am wondering if there any good practices that people have come up when it comes to defining TAG prefix for large android applications. So one can easily filter your application logs. Currently all my code uses: final String TAG = MyClassName.class.getSimpleName(); We have just recently moved to adding our company prefix to the TAG so we can only see log messages to our own application. i.e. final String TAG = GlobalConst.companyName + MyClassName.class.getSimpleName(); Are there any other techniques people have used to define TAG for log.X()? -Subodh -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Maps api key v1?
The OP most likely used a debug key throughout and thought he could switch to a release key when he was ready to release. The real issue here is not the missing option to get a v1 key - it is the horrible performance of v2 especially for fast moving maps and the poor memory management. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Send Email in Android
You could implement your own SMTP sender, or your own email app (registering for the intent) On Tuesday, April 23, 2013 1:18:48 AM UTC-4, amira2...@gmail.com wrote: Hello i have a simple program that send an email when you press a button button i get an alert that No application can perform this action. Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); emailIntent.setType(plain/text); emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{ayra...@yahoo.com javascript:}); emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, Hello, MOTO!); emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Hello, MOTO!); startActivity(Intent.createChooser(emailIntent, Send mail...));// To use these Internet methods, AndroidManifest.xml must have the following permission: Thanks so much 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Column '_id' does not exist
As I understand it _id is a required field for SQLite database tables accessed by Android. Didn't know this also applies to string collections. In any case, since you control the UI of your application you can also decide to not display the _id field data. You may still need to provide the data in the string collection though, and it probably needs to be unique per row too (the primary key, basically) On Monday, April 8, 2013 4:50:41 PM UTC-4, Josue C.P. wrote: Hi all!!! First of All, sorry but my english is not very well XD I'm doin my first application for Android and I have a question. My application consist in save data in a Data Base y after show them. But I want to Display only some columns. This is part of my code: *String[] campos = {_id,marca,modelo};* * Cursor c = db.query(coches, campos, null, null, null, null, null);* _id, marca and modelo are the columns of my table. coches is the table name. I want display only the columns marca and modelo, but if I do this... * * * String[] campos = {marca,modelo};* * * ...eclipse show me an error that says Column '_id' does not exist. How can i do to show me only the columns that I want? Thanks!! * * -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to Extract .cab file programatically ?
CAB files where used in Windows Mobile environments. Do you mean APK? These are ZIP files and you can use any ZIP extractor. On Monday, April 8, 2013 8:36:32 AM UTC-4, Sudheendra P wrote: I would like to extract the cab file contents. How can i achieve this programatically ? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to wake the device with wired headset play/pause button press
Do you mean the on hook/off hook button? Remember when phones were used for actual voice calls? Play/Pause and Skip etc are all just botched on functions that may not be supported on all devices. Let's say Pandora is playing on the device with the screen off. You press the button. What are you expecting to happen? On Sunday, April 21, 2013 5:42:38 PM UTC-4, Fred Niggle wrote: Before i begin : I have spent a lot of time trying to get my 2.1 device to wake from sleep when i press the play/pause button on the wired headset (the standard one that comes shipped with most phones) I have an intent filter that collects the event IF the activity is displayed on the 'awakened' device, but no when the device is in sleep. if i use wakelock to keep the screen on , then naturally, the battery is hammered, so the question is this:L How can i register a wakelock for the headset action? Thanks for any input folks, Fred -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Maps api key v1?
Nobody cares how much effort you have put in. There was plenty of warning that this would happen. Now it happened, live with it. On Sunday, April 21, 2013 5:15:07 PM UTC-4, user123 wrote: Thanks for the advice, but I also have other things to work on! And this was supposed to be released! And it's not easy map, it has a lot of custom stuff, overlays, with images downloaded from web, animatied radius circle, clustering, etc. This will not be a few minutes. Am Sonntag, 21. April 2013 10:33:03 UTC+2 schrieb VenomVendor™: It's easy you need not worry, even i had the same kind of thinking. *Check out my app in which i have used MapsV2https://play.google.com/store/apps/details?id=veevee.kfc * when i ported, i felt much easier, you have to try this. http://venomvendor.blogspot.in/2013/04/generating-api-key-for-google-mapsv2.html -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: USB accessory API
you'll probably want to move the USB communication into a service so that it can then be used by any activity. On Thursday, April 11, 2013 7:04:53 AM UTC-4, psyco wrote: hi all, am working on an android application which is like the ADK2011 but with another interfaces and another board If you know the ADK2011, every thing is based on one screen (temperature value, light value, ...etc) but i am doing something different: my first layout shown is a main menu with buttons linked to different other screens (thermometer, barometer, luxmeter,...etc) =Every feature (thermometer for example) is shown in an independent screen (independet activity) So, I looked to the adk2011 source code and the USB connection code is basically on the first activity (DemoKitActivity) my question is : how can i do that with different screens ?? have i to put the USB connection code in every activity ( thermometer for example) ? PS: please tell me if am not clear enough ! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Development on platform?
I occasionally use AIDE for some proof for of concept work, especially when trapped in the real world away from the computer (yay shopping...). But it certainly isn't suitable for anything larger. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: GroundOverlay with rotation in MapView
you could pre-rotate the image for the ground overlay via a matrix transformation. On Friday, March 29, 2013 4:04:56 AM UTC-4, Brofalad wrote: Hi, I have a overlay image with the following cooridinates. LatLonBox north56.56509012808/north south56.5455371985222/south east13.249250664387/east west13.2017977722382/west rotation0.477325392961741/rotation /LatLonBox It is no problem to create the overlay without the rotation. But is it possible to rotate the image, or can I only use images with rotation = 0. /Brofalad -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Google Maps V2 Empty map on Galaxy Note 2
And you are sure it works on other devices when they have their SIM card removed? On Tuesday, March 26, 2013 10:47:46 AM UTC-4, Captain Comando wrote: It is icon of Insert SIM Card notification. Internet connection is not problem because device connected to internet using wifi. 2013/3/26 bob b...@coolfone.comze.com javascript: What does this icon mean? https://lh6.googleusercontent.com/-KH2Cq0Tssl8/UVGz4KngxKI/AUU/z5oYBmSsaAc/s1600/erricon.png Maybe that's the ticket? On Tuesday, March 26, 2013 8:42:10 AM UTC-5, Captain Comando wrote: I am using Google Maps API V2 in my Android application. As you can see in screenshot I have FragmentPager and there is a fragment which include google maps v2. On the device Galaxy Note 2 i have problem with displaying map content. On other devices maps works without any problem and displays added markers and lines. As you can see that it displays only background image of my activity. I already tested my application on different devices but only Galaxy Note 2 has problem. Any idea about solution? Thanks. https://lh4.googleusercontent.com/-AV7jmOb_iCs/UVGlp6w7F5I/AAM/aCA_TkaI5sw/s1600/fuwXL.png -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Getting the problem while fetching the current location...?
Credits go to Felix Ventero from RadarDroid *if* (lm.isProviderEnabled(LocationManager.GPS_PROVIDER)) { *if* (settings.getBoolean(use_other_gps_starter, *false*)) { // use brute force GPS starter for Galaxy Spica mLocationListener = *this*; *new* Thread() { @Override *public* *void* run() { Looper.prepare(); locationThreadLooper = Looper.myLooper(); // Log.v(TAG, Requesting alternative location updates); lm.addGpsStatusListener(onGpsStatusChange); lm.requestLocationUpdates(LocationManager. GPS_PROVIDER, 0, 0, mLocationListener, locationThreadLooper); Looper.loop(); } }.start(); } *else* { // normal GPS start lm.addGpsStatusListener(onGpsStatusChange); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, *this*); } } On Wednesday, March 20, 2013 6:54:57 PM UTC-4, lbendlin wrote: I am currently traveling with no access to the code. I also need to make sure I get the attribution right as the hack was developed by someone else. As for the why - my guess it is a botched attempt by Samsung to mess with the GPS radio power management. On Wednesday, March 20, 2013 10:42:18 AM UTC-5, Kristopher Micinski wrote: I'm interested as to why their implementation would differ from the standard API, do you have any specific reason for not putting an example on github, or would you care to share the trick..? (I'm just interested because it seems like a stupid decision on the vendor's part to break things..) Kris On Wed, Mar 20, 2013 at 11:09 AM, lbendlin lu...@bendlin.us wrote: Some Galaxy devices (especially the Spica) require an alternative way of starting up the location listener. Ping me if you want the code. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Retreive Special characters from sqlite files.
have you tried searching the web for sqlite unicode? On Thursday, March 21, 2013 8:45:29 AM UTC-4, Seshu wrote: Hi All, I am doing a small dictionary app and the data is in sq-lite file. when i search the keyword then corresponding words ll showing in a list view. in my database i have special characters i.e., ábaco, ábaco psicométrico when i entered keyword a then above words also i want. Any body know how to retrieve such type of special characters. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Getting the problem while fetching the current location...?
Some Galaxy devices (especially the Spica) require an alternative way of starting up the location listener. Ping me if you want the code. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Getting the problem while fetching the current location...?
I am currently traveling with no access to the code. I also need to make sure I get the attribution right as the hack was developed by someone else. As for the why - my guess it is a botched attempt by Samsung to mess with the GPS radio power management. On Wednesday, March 20, 2013 10:42:18 AM UTC-5, Kristopher Micinski wrote: I'm interested as to why their implementation would differ from the standard API, do you have any specific reason for not putting an example on github, or would you care to share the trick..? (I'm just interested because it seems like a stupid decision on the vendor's part to break things..) Kris On Wed, Mar 20, 2013 at 11:09 AM, lbendlin lu...@bendlin.us javascript: wrote: Some Galaxy devices (especially the Spica) require an alternative way of starting up the location listener. Ping me if you want the code. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: maps api 2,onlocationchanged direction
The blue marker is not your location. It is just the starting point of the route. You need to manage the MyLocation overlay separately. On Wednesday, March 13, 2013 1:40:13 AM UTC-4, Pratama Nur Wijaya wrote: https://lh4.googleusercontent.com/-uF1Ec7EnvVw/UUAQ9skh1-I/AfM/F_MUdqn5fs0/s1600/screenshot-1363152255861.png Hello,, i'm trying make some direction apps on android.. i was able show direction line with parsing lat and longitude from http://maps.googleapis.com/maps/api/directions/json? marker blue is mylocation.. and red is my destination, my problem is.. when i move walking my blue marker not follow me.. i'm notice some method that is onLocationChange.. any advice for 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Broadcast receiver in foreground activity - not reliable?
It is registered in onCreate and unregistered in onDestroy of that activity. On Monday, March 11, 2013 4:02:36 AM UTC-4, Piren wrote: in what lifecycle events do you register/unregister this receiver? On Sunday, March 10, 2013 4:25:37 PM UTC+2, lbendlin wrote: I got a user reporting that our app does correctly terminate when the user's device exits car mode, but only when the activity that contains the receiver is not active. If the activity is in the foreground then more often than not our app does not terminate. The activity is defined as activity android:name=.MainScreen android:alwaysRetainTaskState=true android:configChanges=orientation android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK / category android:name=android.intent.category.CAR_MODE / /intent-filter /activity The receiver is very simple *private* BroadcastReceiver undockReceiver = *new* BroadcastReceiver() { @Override *public* *void* onReceive(Context context, Intent intent) { *if* (intent.getAction().equals(android.app.action.EXIT_CAR_MODE)) { finish(); } } }; Is there a reason that the receiver does not work reliably? Is it bad practice to put a receiver inside the main activity? or does it have to do with the activity flags? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] improving gps lock time
AGPS does NOT use wifi and cell tower locations. http://en.wikipedia.org/wiki/Assisted_GPS On Sunday, March 10, 2013 8:33:05 AM UTC-4, dashman wrote: Looks like AGPS uses WIFI and cell-phone tower locations. The problem for my app is that I don't necessarily have access to data service - so AGPS will not work. Even though I want to do want AGPS does - i.e. provide a start location for getting satellite queries. But my understanding is that API is not available. The real problem I have is that I allow users to shut the screen off to save batteries and I stop the gps listeners. Then onResume(), I enable the listeners - and it's here where the lock time is too much. Option #2. How about I NOT disable the listeners on onPause() - but set the listener to every minute. I would think that would help maintain the lock. It would save the battery with the screen off. and maybe some batteries wiith the gps being queried less often now. not sure of the latter though. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Broadcast receiver in foreground activity - not reliable?
I got a user reporting that our app does correctly terminate when the user's device exits car mode, but only when the activity that contains the receiver is not active. If the activity is in the foreground then more often than not our app does not terminate. The activity is defined as activity android:name=.MainScreen android:alwaysRetainTaskState=true android:configChanges=orientation android:label=@string/app_name android:launchMode=singleTask intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / category android:name=android.intent.category.CAR_DOCK / category android:name=android.intent.category.CAR_MODE / /intent-filter /activity The receiver is very simple *private* BroadcastReceiver undockReceiver = *new* BroadcastReceiver() { @Override *public* *void* onReceive(Context context, Intent intent) { *if* (intent.getAction().equals(android.app.action.EXIT_CAR_MODE)) { finish(); } } }; Is there a reason that the receiver does not work reliably? Is it bad practice to put a receiver inside the main activity? or does it have to do with the activity flags? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] improving gps lock time
AGPS doesn't use WiFi. It uses precomputed Almanac/Ephemeris data so the GPS receiver has a better idea which satellites to expect, and where. That data needs to be refreshed every x days (usually 3 to 7), and is injected into the GPS receiver management software. I don't think that software is exposed to Android. On Saturday, March 9, 2013 8:10:05 PM UTC-5, dashman wrote: ok - maybe there's other methods. i've seen apps decrease lock time by contacting NTP servers. Also apparently assisted gps helps - assisted gps just gets a wifi geo location - and just using that helps. i have a geo location also. i'm sure gps lock speeds can be decreased if you have an approx geo location...and maybe the precise time - i.e. know the sat positions etc. but maybe there's no public api for this - internally looks like android uses AGPS to speed up lock. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: reuse Google Maps Android API v2 key across multiple applications
Each fingerprint and app name combination has to be on a separate line. On Monday, February 18, 2013 2:28:01 PM UTC-5, John Merlino wrote: I have multiple applications registered to google play. Under Edit allowed Android Apps section in google play, I already have a fingerprint for another application. But now I want to add another for a new application. Do I copy the certicate fingerprint of the new application into the Edit allowed Android apps box? If so, what delimiter do I use to separate the two fingerprints? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Galaxy Nexus has died - did my app kill it?
Stock ROM on it? Want to try Cyanogenmod instead? On Wednesday, February 6, 2013 6:07:38 PM UTC-5, Nathan wrote: On Wednesday, February 6, 2013 2:47:38 PM UTC-8, bob wrote: Do you ever bring your phone into a sauna? This can be bad for it. No. It's been pretty sheltered. It's been in a dry bag when snowshoeing. I found an obscure trick on the internet: remove batter and SIM card and push power button for ten seconds. Then replace SIM card. It came back to life after that. I don't know if I can trust it now. Particularly since I had to do the same thing ten minutes later. Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Galaxy Nexus has died - did my app kill it?
you could try to reflash the stock ROM. On Wednesday, February 6, 2013 7:33:24 PM UTC-5, Nathan wrote: On Wednesday, February 6, 2013 4:20:26 PM UTC-8, lbendlin wrote: Stock ROM on it? Yes. Want to try Cyanogenmod instead? No. I want to remain eligible for warranty, if possible, since this seems a likely hardware problem. Nathan -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Alpha ordering ListPreference values to suit current locale
As I said, I would create a SQLite table with locale, language code and language title. Then you can do a database query that filters by the current locale and retrieves language code and title sorted by the title. On Sunday, February 3, 2013 5:46:45 PM UTC-5, William Ferguson wrote: OK, I guess I mustn't have expressed myself clearly. I can't see how a preference is going to help here. I can provide an explicit ordering in each an every resource locale that suits that locale. But I'm wondering whether there is a programmatic (or other) way to ensure that the values displayed by a ListPreference are in alpha order for the current locale? William On Saturday, February 2, 2013 12:50:49 PM UTC+10, lbendlin wrote: smells like a database driven custom preference to me. On Friday, February 1, 2013 9:13:09 PM UTC-5, William Ferguson wrote: What's the optimal way to ensure that the values in a ListPreference are alpha ordered according to the current locale? Eg if my list contains languages string-array name=language_keys itemcs/item itemda/item itemde/item itemen/item itemes/item itemfi/item /string-array string-array name=language_values !-- English displays -- itemCzech/item itemDanish/item itemGerman/item itemEnglish/item itemSpanish/item itemFinnish/item /string-array string-array name=language_values !-- German displays -- itemTschechisch/item itemDänisch/item itemDeutsch/item itemEnglisch/item itemSpanisch/item itemFinnisch/item /string-array Should I replicate the keys and values in all resource locales and change their order to suit? Or is their some way that I haven't found yet where I can readily apply a sort to the ListPreference keys and values? William -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: my app won't die
Does your app include a foreground service? On Monday, February 4, 2013 10:57:51 AM UTC-5, bob wrote: Sometimes I look at the Devices window in Eclipse. Then I select my app. And, I press the stop sign button to kill it. Then, for some reason, it starts up again on its own a second later. Anyone know exactly what causes this strange restarting? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: ContentResolver Query Joining with SQL Lite Table
you could load the results from the cursor into a temporary SQLite table and then do the inner join. But that's not really an elegant solution. On Sunday, February 3, 2013 3:42:29 AM UTC-5, fahad mullaji wrote: Hi Guys, I am getting all songs from SDCARD using below code, Cursor objCursor; final String[] projection = {*}; objCursor = objContext.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, projection, null, null, null); I have one SQL Lite table named PlayerHistory. I want to inner join this table on MediaId on above query . Is it possible? Thanks in advance Fahad Mullaji -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Alpha ordering ListPreference values to suit current locale
smells like a database driven custom preference to me. On Friday, February 1, 2013 9:13:09 PM UTC-5, William Ferguson wrote: What's the optimal way to ensure that the values in a ListPreference are alpha ordered according to the current locale? Eg if my list contains languages string-array name=language_keys itemcs/item itemda/item itemde/item itemen/item itemes/item itemfi/item /string-array string-array name=language_values !-- English displays -- itemCzech/item itemDanish/item itemGerman/item itemEnglish/item itemSpanish/item itemFinnish/item /string-array string-array name=language_values !-- German displays -- itemTschechisch/item itemDänisch/item itemDeutsch/item itemEnglisch/item itemSpanisch/item itemFinnisch/item /string-array Should I replicate the keys and values in all resource locales and change their order to suit? Or is their some way that I haven't found yet where I can readily apply a sort to the ListPreference keys and values? William -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: how to limit display items of listview
don't change the list view, change the adapter feed with a query that uses the limit. On Thursday, January 31, 2013 5:51:13 AM UTC-5, Live Happy wrote: i m using a cursor adapter to display items in listview from database and i want to limit the number of displaying by get last 20 items and than after click on header button retrieve other 20 i tried to use the method getCount() in the adapter public int getCount() {// TODO Auto-generated method stubreturn i;} with i is the number of chat who increase after header click but its not work give exception can anyone help me with it thx on advance -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: New activity when I lock my screen
Check your manifest file for singleTop etc. On Wednesday, January 30, 2013 5:48:59 AM UTC-5, Davide Moriello wrote: Hello, I'm developing an android app for some time now. Everything is going well. When I close my app with the home button and I reopen it there aren't any problems or crashes. But, when I have my app open and I lock my screen the app create a new istance of the activity and call again onCreate when the screen is locked... so crash! the code of my activity is here http://pastebin.com/j1mTRUnB What can this be? Any suggestion? Thank you a lot =) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: New activity when I lock my screen
see here for reference http://developer.android.com/guide/topics/manifest/activity-element.html On Wednesday, January 30, 2013 10:01:48 AM UTC-5, Davide Moriello wrote: Hi, thank you for trying to help me. My mainfest is this http://pastebin.com/RgNvES45 I don't know where to look :-( Il giorno mercoledì 30 gennaio 2013 15:54:37 UTC+1, lbendlin ha scritto: Check your manifest file for singleTop etc. On Wednesday, January 30, 2013 5:48:59 AM UTC-5, Davide Moriello wrote: Hello, I'm developing an android app for some time now. Everything is going well. When I close my app with the home button and I reopen it there aren't any problems or crashes. But, when I have my app open and I lock my screen the app create a new istance of the activity and call again onCreate when the screen is locked... so crash! the code of my activity is here http://pastebin.com/j1mTRUnB What can this be? Any suggestion? Thank you a lot =) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] New activity when I lock my screen
add orientation to the configChanges attributes of your activity and handle the rotation layout changes yourself. On Wednesday, January 30, 2013 12:16:59 PM UTC-5, Davide Moriello wrote: Thank you a lot Nobu and Kostya you helped me a lot. Kostya is right! This is what is happening! Thank you for understaing me, my english is not so good :-( Now, how can I tell the code to do not re-create on orientation change when you lock the screen? The code should handle it without crashing, but it would not be playable (a game design decision), so if it change orientation when the screen is locked is not a problem. But it should go back in landscape when you unlock your phone. Thank you a lot. Il giorno mercoledì 30 gennaio 2013 17:17:34 UTC+1, Kostya Vasilyev ha scritto: Are you locking the device in landscape mode? On phones, locking the screen represents an orientation change, a locked screen is always in portrait mode. This means that if your activity is the top-most one on the screen, it will be destroyed and re-created, and then again when you unlock the device. Can your code handle an orientation change without crashing? -- K 2013/1/30 Davide Moriello david...@gmail.com Hello, I'm developing an android app for some time now. Everything is going well. When I close my app with the home button and I reopen it there aren't any problems or crashes. But, when I have my app open and I lock my screen the app create a new istance of the activity and call again onCreate when the screen is locked... so crash! the code of my activity is here http://pastebin.com/j1mTRUnB What can this be? Any suggestion? Thank you a lot =) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to use adb to inject Mock GPS Locations to an HTC G1 phone.
Does it have to be adb? If you use Eclipse you can do the same in the DDMS module. On Monday, January 28, 2013 10:34:40 PM UTC-5, cellurl wrote: In the Menu, I enables Development-AllowMockLocations Eg, I want to test my app on the phone with KML-ish locations over USB. I read somewhere that I might have to use telnet geo commands to the phone. Is there a tutorial or experience somewhere? Thanks for any leads! cellurl -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: android imageview stretch to background height and keep ratio
Now that you have extended the object you can change the calculations for measure to achieve your desired effect while keeping the image aspect ratio. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: android imageview stretch to background height and keep ratio
Keep track of the banner height elsewhere (at the point where it gets measured and rendered), and then use that measurement to specify the image height , and then through the aspect ratio, calculate the image width and the x-position of the image. If the images are subviews of the banner, then you could even override the banner's onLayout, rather than the one for the images. On Saturday, January 26, 2013 6:47:48 AM UTC-5, Greenhand wrote: Although I can keep the ratio, I do not know what my background height is from parameters. Could you give me some code snippetss? lbendlin於 2013年1月26日星期六UTC+8下午7時33分50秒寫道: Now that you have extended the object you can change the calculations for measure to achieve your desired effect while keeping the image aspect ratio. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: android imageview stretch to background height and keep ratio
The quickest solution would be to create a custom imageview that extends imageview, and then handle the onLayout and onMeasure yourself. On Friday, January 25, 2013 12:59:38 AM UTC-5, Greenhand wrote: Because if I changed the two inner image views to match_parent, they will expand the background imageview and its parent (RelativeLayout). It did not work. What I would like to do is let the inner imageviews resized automatically to exactly match the background. If it is smaller, it will stretch to the height of the background. If it is bigger, it will shrink to the height of the background. By the way, I think the match_parent attribute in Android is literally misleading because it will make its parent bigger to match_parent. 2013/1/25 Piren gpi...@gmail.com javascript: if every imageview's height is wrap_content, why are you expecting them all to be the same (when all their sources are different sizes)? AdjustViewBounds isnt a magical property :) the two inner imageviews should be match_parent. it's also a good idea to define scaleType since it has the most relevancy when talking about keeping the image ratio. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Emulating AbsoluteLayout with ViewGroup - not honoring alignParentTop?
Yes, yes, I know, it's a horrible thing. But I do need an AbsoluteLayout. To be precise, I need a view that is square, with the sides being as long as the maximum of width and height. Additionally, I want to position that view centered horizontally, and aligned with the parent top vertically, both for portrait and landscape device orientations. So I declared my custom viewGroup as such mySpecialView android:id=@+id/specialview android:layout_width=wrap_content android:layout_height= wrap_content android:layout_alignParentTop=true android:layout_centerHorizontal= true/ I do the actual sizing of the ViewGroup in the onMeasure call @Override *protected* *void* onMeasure(*int* widthMeasureSpec, *int*heightMeasureSpec) { *int* w = getDefaultSize(getSuggestedMinimumWidth(), widthMeasureSpec); *int* h = getDefaultSize(getSuggestedMinimumHeight(), heightMeasureSpec); *int* sizeSpec; *if* (w h) { sizeSpec = MeasureSpec.makeMeasureSpec(w, MeasureSpec.EXACTLY); } *else* { sizeSpec = MeasureSpec.makeMeasureSpec(h, MeasureSpec.EXACTLY); } *final* *int* count = getChildCount(); *for* (*int* i = 0; i count; i++) { getChildAt(i).measure(sizeSpec, sizeSpec); } *super*.onMeasure(widthMeasureSpec, heightMeasureSpec); } That seems to work fine for the most part. However, the ViewGroup is not aligned to the top of the parent window, rather its center is the same as the parent's center. So how can I tell the ViewGroup to align to the top? And yes, in portrait mode it makes no difference, but it's the landscape mode that I am trying to get working. I read all the articles about layouts and watched all the videos, but I get the feeling that I am missing something really obvious. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Overlay - Maps API v2
You'll have to clean up your terminology. Most likely what you want is a Marker, not an Overlay. Markers have InfoWindows that you can modify as needed (including buttons) On Monday, January 21, 2013 1:47:08 PM UTC-5, Diego Nunes wrote: Good afternoon guys. Someone has created a new overlay on the maps API v2? I need to create one with a description and a button, but I'm not finding any reference. There is more to this version Overlay class. Thank you. att, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Google Map Android Api V2 not working
what happens when you use a custom tile provider? On Tuesday, January 22, 2013 1:05:10 AM UTC-5, Haps wrote: Hi Guys, I am trying to use the latest api launched by google i.e. *Google Map Android Api V2* All the code and each scenario is correct, but I am still having the blank fragments screen i.e. *No Map Visible. *I have attached its screenshot with this post. * * *The logs shows the issue:-* *Google Maps Android API(25280): Failed to load map. Could not contact Google servers.* * * Many developers told me that it can be issue regarding generating the Api Key for map, so I want to say that I tried the exact procedure which is told at Google Sample Example Page and I also tried to use 2-3 Google Account to generate Api Key but the issue is still same. I have also added the question on StackOverflow regading it. Here is its link.http://stackoverflow.com/questions/14216205/google-map-android-api-v2-sample-code-not-working/14436556#14436556 Please help. Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: intel-accelerated emulator + maps API with SDK v21
At the risk of sounding dour - why are you looking at stuff that will stop being developable after March 1 ? On Thursday, January 17, 2013 4:40:48 PM UTC-5, seansf wrote: s**t I mean v1. On Thu, Jan 17, 2013 at 1:40 PM, Sean Felipe Wolfe ethe...@gmail.comjavascript: wrote: yes, the original maps api v2. On Thu, Jan 17, 2013 at 12:02 PM, lbendlin lu...@bendlin.usjavascript: wrote: This is for map api v1, right? As I understand it map api v2 is not supported on the emulator. On Thursday, January 17, 2013 1:55:06 PM UTC-5, seansf wrote: Hey y'all I need to use the maps API target and I really do like the Intel-accelerated emulators. I have been using this hack to create a system.img file with the maps api loaded: http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html However with v21 of the sdk tools, this workaround seems to be broken. I'm able to create the emulator, but it doesn't start. After saying haxm enabled it sticks on a blank screen and doesn't proceed. Not even an android splash screen. Is anybody using the intel accelerated emulator with the maps api loaded, with SDK 21? If so how did you get it working?? Thanks :) -- A musician must make music, an artist must paint, a poet must write, if he is to be ultimately at peace with himself. - Abraham Maslow -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: intel-accelerated emulator + maps API with SDK v21
I found a new thing to add to the collection of headscratchers. If you have ground overlays, and then decide to use a different tile provider (like OSM) by changing the tile overlay source, the ground overlays will be rendered UNDER the tile overlays. D'oh! On Friday, January 18, 2013 8:12:14 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Fri, Jan 18, 2013 at 7:57 AM, lbendlin lu...@bendlin.us javascript: wrote: At the risk of sounding dour - why are you looking at stuff that will stop being developable after March 1 ? It will still be developable after March 1. It becomes progressively more risky, since you cannot get new API keys. And it will put the kibosh on certain models, such as consultants creating unique signing keys (and Maps V1 API keys) as part of a customer deliverable. But since, in my testing, getting Maps V2 to work on Android 2.x is far from bulletproof, some developers may elect to stick with Maps V1 through 2013. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.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] How to make visible only half potion of video on screen
Define visible. Without more information I would suggest you just position another non-transparent view on top of the half that you don't want the user to see. On Friday, January 18, 2013 6:37:03 AM UTC-5, yashika wrote: can anybody help me ? to solve it On Thu, Jan 17, 2013 at 7:30 PM, yashika yogita.yogi...@gmail.comjavascript: wrote: Hi, Is it possible to make only half portion of screen visible while video is running over it? Plz help me How Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards, Yogita Singla -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make visible only half potion of video on screen
What have you tried? Did you spend these days reading the documentation? On Friday, January 18, 2013 1:07:17 PM UTC-5, yashika wrote: Plz help me how to play video in back of textureview and how set the metrix . I m stuking here from many days -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: intel-accelerated emulator + maps API with SDK v21
This is for map api v1, right? As I understand it map api v2 is not supported on the emulator. On Thursday, January 17, 2013 1:55:06 PM UTC-5, seansf wrote: Hey y'all I need to use the maps API target and I really do like the Intel-accelerated emulators. I have been using this hack to create a system.img file with the maps api loaded: http://38911bytes.blogspot.com/2012/03/how-to-use-google-maps-api-in-android.html However with v21 of the sdk tools, this workaround seems to be broken. I'm able to create the emulator, but it doesn't start. After saying haxm enabled it sticks on a blank screen and doesn't proceed. Not even an android splash screen. Is anybody using the intel accelerated emulator with the maps api loaded, with SDK 21? If so how did you get it working?? Thanks :) -- A musician must make music, an artist must paint, a poet must write, if he is to be ultimately at peace with himself. - Abraham Maslow -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADT Bundle Eclipse Version
currently Eclipse Java Development Tools Version: 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1 Build id: M20120208-0800 On Tuesday, January 15, 2013 10:39:40 AM UTC-5, marcpolo wrote: I'm developing using the ADT Bundle and need to install the Google plugin. There are different download options for the plugin so I need to know which version of eclipse I am running. Can anyone help? Thanks, Marc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: display a datepicker on mapview
you're not going to display a date picker _on_ the map. Rather, you'll be rendering first the map fragment and then the date picker inside the same relativelayout so that it will _look_ to the user as if the datepicker is part of the map. But it doesn't have to be, as long as the two can interact. On Tuesday, January 15, 2013 5:15:38 PM UTC-5, John Merlino wrote: I am using google maps api v2 and when the map displays, it renders some markers. Now I would for the user on the same screen to activate a datepicker and select a date, then press enter, so then I cna query databsse and show new markers accordingly. What would be the best approach to do this? And if you could reference a tutorial too that would be nice. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: getting a 9-patch button working
why do you use an XML template if it's the same picture for all states? how did you create the nine patch? Did you try it in an image view? On Monday, January 14, 2013 3:52:05 PM UTC-5, dashman wrote: got a button defined as Button android:id=@+id/button1 android:background=@drawable/dialpad_selector android:layout_width=wrap_content android:layout_height=wrap_content android:text=Hello There / a dialpad_selector.xml as ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/dialpad / !-- pressed -- item android:state_focused=true android:drawable=@drawable/dialpad / !-- focused -- item android:state_hovered=true android:drawable=@drawable/dialpad / !-- hovered -- item android:drawable=@drawable/dialpad / !-- default -- /selector drawable dialpad is a 9-patch image not working! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Maps API v2 - how to recreate the map?
The documentation for addTileOverlay() states: Note that unlike other overlays, if the map is recreated, tile overlays are not automatically restored and must be re-added manually. This made me curious. How can I actually recreate the map if all I have is getMap()? Basically I want to avoid adding the same TileOverlay twice, but am again hitting the issue that there is no function to remove items from a map in v2. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Gettings assets file based on MCC MNC
Use getAssets().Open() or getAssets().OpenFd() On Friday, January 4, 2013 5:23:23 AM UTC-5, Namit Virmani wrote: Is there a way in android to read the File from Asset folder on run time, based on MCC MNC? Thanks, Namit Virmani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Gettings assets file based on MCC MNC
of course given the gazillions of possible MCC MNC combinations you my be better off using a database. On Saturday, January 5, 2013 8:10:47 AM UTC-5, lbendlin wrote: Use getAssets().Open() or getAssets().OpenFd() On Friday, January 4, 2013 5:23:23 AM UTC-5, Namit Virmani wrote: Is there a way in android to read the File from Asset folder on run time, based on MCC MNC? Thanks, Namit Virmani -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 identify markers and ground overlays in Maps API v2?
In the olden days (API v1) I used to add views to maps, and tag the views with their ids (from my database). Then I could find them on the map via their tag. Now in the v2 API there seems no way to add views. The closest I can see is to use groundoverlays. The documentation says they have an ID that I can fetch via getId(). But I can't find anywhere how to SET the id. The same applies to markers too. The reason for tagging markers/overlays is to be able to avoid adding them again if they are already on the map, and to have the option to remove them again later. I cannot keep individual assignments as I have thousands of markers that could be placed on the maps (I do database queries depending on the camera position and span etc) So how can I set the id of a marker or ground overlay when adding them to the map? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 identify markers and ground overlays in Maps API v2?
Is there a way to enumerate the existing markers on a map? Worst case I could use your hashmap approach and then clear() the map if the number of markers exceeds 50 (for example) On Saturday, January 5, 2013 9:31:52 AM UTC-5, Mark Murphy (a Commons Guy) wrote: I cannot speak with regards to tile overlays, as I have not played with that portion of the API. With respect to markers, AFAICT, you cannot set an ID -- the ID from getId() presumably is system-generated. If you do not need one of the other marker attributes (e.g., snippet), you could overload that and put an identifier in there. We also cannot subclass Marker, partly because it is final, and partly because the MarkerOptions structure does not allow us to specify any sort of factory. Hence, you cannot add an ID field to your own Marker subclass, the way we could subclass OverlayItem in Maps V1. The only other workaround that I have seen is to use a WeakHashMapMarker, Something, for looking up additional data on a per-Marker basis. The WeakHashMap will allow our Something objects to get garbage-collected after their corresponding Marker objects are. And, yes, this sucks. Cyril Mottier had similar complaints: http://android.cyrilmottier.com/?p=855 On Sat, Jan 5, 2013 at 8:52 AM, lbendlin lu...@bendlin.us javascript: wrote: In the olden days (API v1) I used to add views to maps, and tag the views with their ids (from my database). Then I could find them on the map via their tag. Now in the v2 API there seems no way to add views. The closest I can see is to use groundoverlays. The documentation says they have an ID that I can fetch via getId(). But I can't find anywhere how to SET the id. The same applies to markers too. The reason for tagging markers/overlays is to be able to avoid adding them again if they are already on the map, and to have the option to remove them again later. I cannot keep individual assignments as I have thousands of markers that could be placed on the maps (I do database queries depending on the camera position and span etc) So how can I set the id of a marker or ground overlay when adding them to the map? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.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] How to identify markers and ground overlays in Maps API v2?
To improve customer experience we have removed the following services:... On Saturday, January 5, 2013 10:33:26 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Sat, Jan 5, 2013 at 9:47 AM, lbendlin lu...@bendlin.us javascript: wrote: Is there a way to enumerate the existing markers on a map? None that I can see. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Order latitude/longitude list by distance to my current location
If the locations are roughly in the same geographical area then you can use a corrective factor for the longitude difference. The latitude is always the same distance per degree but the longitude distance per degree depends on the latitude (biggest at the equator,zero at the poles). For a latitude of 52 degrees the factor would be around 0.63 etc. On Monday, December 31, 2012 7:32:18 AM UTC-5, Nelson André wrote: Hello all, I have a JSON list that I retrive from one website I have that gives me the following fields: - Name - Latitude - Longitude This list has around 200 items. I want to order the list by distance to my current location, closer locations on top. How may I do this calculation and ordering? Many Thanks Nelson -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: LocationManager.getBestProvider Returning NULL?
Take the Parrot Asteroid as an example. The user may have forgotten to plug in the USB GPS and/or the 3G dongle. So you want to ask the user to check the physical connections. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can an app cause a hard freeze?
I can second the map panning effect. That seems to be able to lock up some older devices (with less RAM, or poorly managed RAM?) randomly. On Friday, December 28, 2012 7:34:05 PM UTC-5, Nathan wrote: This is a topic that is on my mind once in a while. What could an app do that would cause a hard freeze on an Android device? Obviously something really bad. BY a hard freeze, I mean one where the user claims to have to change the battery or use an advanced keystroke to restart the device. Theoretically nothing, right? After four seconds of not responding, the Force Close dialog should appear, letting them close the program and report through the market. But in the real world, I do believe it happens. I get a few reports of it every month or so. Fortunately, not often, but I would like to keep it so. My app doesn't use any native or OpenGL calls. Most recently, a user says he can get a consistent freeze by panning the view. Panning a view is a simple operation for the user, (though it is rather complicated in my custom view code), but there are 4000 other users doing it on the same device without complaint. I have very little to go on in these reports. After a full reboot, there is little chance the logcat still has useful information. Since 4.1, we can't use any external programs to collect the log. I aim for prevention instead. Anyway, please just post your best theories. Here are a few things I suspect might cause these things: Firmware/hardware errors in the device: Some users complain about random freezes and reboots on particular devices that seem independent. It is certainly possible that an app developer could just be hitting a path that freezes the device. Example: HTC Droid Incredible, June 2010. The phone would spontaneously report if you updated an ongoing notification more than a few hundred times. Never found out why. To this day, I only update progress when it moves a full percentage point. Runs out of memory: Getting repeated outofmemory errors on background threads may not cause a crash, but I think that eventually the main thread would get some errors too. I think the Force Close should happen then too. Event loop gets full: If, for example, onDraw takes .2 seconds but is called every .1 seconds, you will eventually get behind and the user input would not be processed and the system would appear frozen to an average observer. The same could happen if a Handler message queue got really full. I would expect this to cause a Force Close, but you never know. Maybe the CPU overloads too fast. Device or storage overheats: I have found where the device gets physically hot, they have been manifested as SQLiteIOExceptions, indicating the file doesn't exist when it does. Case in point: I have done a stress test where I have done the following: GPS Locationlistener on service at 1 second intervals. Do some computation in the listener Insert or update up to 800 bytes of data to an SQLiteDatabase on storage in this listener. (The above two items in main thread). I did this driving at 45 mph with a Droid 1. Did great for a while. After an hour I observed behavior where it appeared unresponsive. No Force Close dialog. Phone was measurably warmer than normal. I could even see it happening in degrees, where it might take two seconds to respond to a touch, then ten seconds, then a minute or two. If the above stress was removed, it might eventually get back to normal where it was caught up. But an average user would of course think it completely frozen and pull the battery. I suspect the full event loop from above, possibly causing or being caused by IO errors. Anyway, your thoughts are welcome. Any sure fire technique you have found for freezing an Android, let me know and I will try to *not* do it. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 perform multiple queries from different tables and show in single list view
Exactly as you describe it. Point a cursor to a query from different tables, and point the listview adapter to the cursor. On Monday, December 24, 2012 2:07:47 AM UTC-5, Vijay Krishnan wrote: Hi all, I have to query from different tables and show in single listview.How to do this? Regards, vijay.k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
Then you haven't worked in iOS development. There Apple have generously discontinued support for CVS, and are now huffing and puffing to discontinue support for SVN too. Git or nothing. On Tuesday, December 18, 2012 7:39:25 PM UTC-5, TreKing wrote: On Tue, Dec 18, 2012 at 2:35 AM, Piren gpi...@gmail.com javascript:wrote: In that case, you should really move to git as Nikolay suggested :) Its basically doing exactly what you want... Meh, I'm set in my ways with SVN. I don't use this that frequently that I feel it's worth the trouble learning and moving to a new version system right now. Good to know though for future reference. - 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: Send bug report from 4.1
I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: Hi From discussions previously here, I am aware that Android 4.1 has rendered tools such as Sendlog worthless for collecting log cat logs. There was also mention of some secret keystrokes that might produce an error log. Something like power + volume up+ volume down. On Galaxy Nexus. I can't really push both volume up and volume down at the same time sine they are on a rocker type switch. I think I got it right once but I was lucky, and I think the method will be . There was also talk of making a more user friendly way in settings to do this. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. I of course know that the real solution is to write my own log collection dialog which will read from my own apps log only on 4.1 and above. But I am not inclined to tell a customer Just wait till next month's release if there are some alternate ways of diagnosing the problem. Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Send bug report from 4.1
I just uninstalled 4.2.1 because I couldn't find the developer options any more in the settings, and thus was unable to use adb. Why do they make that so difficult? On Wednesday, December 19, 2012 8:07:29 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Wed, Dec 19, 2012 at 7:58 PM, lbendlin lu...@bendlin.us javascript: wrote: I tell users to install alogcat and send me a snapshot. This seems to work even on non-rooted devices. However, it will not work on Android 4.1 and higher. aLogCat can only report its own LogCat messages, not ones from other processes. That's because READ_LOGS can no longer be held by normal SDK apps (it is signatureOrSystem now). On Wednesday, December 19, 2012 7:45:23 PM UTC-5, Nathan wrote: There was also talk of making a more user friendly way in settings to do this. The hidden Developer Options on a 4.2+ device has a Take bug report option that emits the same report as does the magic key combination. Is there any procedure that will work on, say, Razr Maxx HD, or ASUS Transformer TF700T. Other than POWER + VOLUME UP + VOLUME DOWN, I am unaware of a way to collect the bug report on 4.1 without a copy of the Android SDK installed. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dynamically selecting Map API version
Am I right to assume that using multiple APKs is not an option either as there is no OpenGL enabled filter for that? On Monday, December 17, 2012 5:11:46 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 5:05 PM, lbendlin lu...@bendlin.us javascript: wrote: Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? Yes, unless you wish to pirate some software. BTW, I literally just tried doing the backwards-compatibility stuff. In terms of OpenGL ES 2.0 support, we're screwed. Even if the device *has* support, if we have: uses-feature android:glEsVersion=0x0002 android:required=false/ then we blow up when trying to load a SupportMapFragment: 12-17 22:08:18.933: E/AndroidRuntime(7079): Caused by: java.lang.RuntimeException: Google Maps Android API only supports OpenGL ES 2.0 andabove. Please add uses-feature android:glEsVersion=0x0002 android:required=true / into AndroidManifest.xml A bug/feature request was filed by somebody already: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4699 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dynamically selecting Map API version
Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts. So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to - make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine - test for presence of the Google Play Services on the device - give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?) - select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2. Is there anything else I am missing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically selecting Map API version
Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? On Monday, December 17, 2012 7:55:36 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 7:45 AM, lbendlin lu...@bendlin.us javascript: wrote: Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts. So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to - make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine - test for presence of the Google Play Services on the device - give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?) - select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2. Is there anything else I am missing? Depending upon your distribution mechanism, there's always the none of the above choice (e.g., Kindle Fire), where neither V1 nor V2 are available. Otherwise, I suspect that you're set, though I'm hoping to run my own experiments in this area later on today. With respect to satellite view, V2 has the two-finger swipe for changing your perspective from top-down to on an angle. And if you're planning on using V1 past March 3rd, bear in mind that you will no longer be able to get API keys for V1 at that time, so plan accordingly: http://commonsware.com/blog/2012/12/17/maps-v1-keys-going-going.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.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] How to sync development projects?
Anyone here who can tell the story of I moved from SVN to git and have the consecutive app versioning numbers to prove it? On Monday, December 17, 2012 11:25:29 AM UTC-5, TreKing wrote: On Mon, Dec 17, 2012 at 2:33 AM, Piren gpi...@gmail.com javascript:wrote: It feels like we're not on the same page as to how SVN works... Apparently not, lol the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. Right ... once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). That's the key point here - I don't want to wait until I've connected to my network to check in my code. Using SVN or any revision control would be pretty pointless if I did a weeks worth of changes between reconnecting to the repo and committing changes. I like to do small, frequent changes and commits as I go along. I sometimes also switch between different branches (new feature branch vs main vs bug fix branches, for example). So how I would commit to the repo or switch to a different branch within it *while disconnected from my home network* without a local offline copy of my entire repo on my laptop? On Mon, Dec 17, 2012 at 2:37 AM, Piren gpi...@gmail.com javascript:wrote: When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... I know what an SVN Checkout does. It's the checking back in without access to the real repo that is the problem that I'm trying address. Do you follow me now? On Mon, Dec 17, 2012 at 2:46 AM, Nikolay Elenkov nikolay...@gmail.comjavascript: wrote: Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the chance. That is pretty much what I'm trying to achieve, though I haven't used GIT. - 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] Dynamically selecting Map API version
This gets funner by the minute. I starred the bug. On Monday, December 17, 2012 5:11:46 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 5:05 PM, lbendlin lu...@bendlin.us javascript: wrote: Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? Yes, unless you wish to pirate some software. BTW, I literally just tried doing the backwards-compatibility stuff. In terms of OpenGL ES 2.0 support, we're screwed. Even if the device *has* support, if we have: uses-feature android:glEsVersion=0x0002 android:required=false/ then we blow up when trying to load a SupportMapFragment: 12-17 22:08:18.933: E/AndroidRuntime(7079): Caused by: java.lang.RuntimeException: Google Maps Android API only supports OpenGL ES 2.0 andabove. Please add uses-feature android:glEsVersion=0x0002 android:required=true / into AndroidManifest.xml A bug/feature request was filed by somebody already: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4699 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: android phones and bluetooth
Many Android tablets do not have GPS, but they have Bluetooth. On Thursday, December 6, 2012 10:19:15 AM UTC-5, bob wrote: What's the point of connecting to a GPS by Bluetooth when almost all Androids have GPS already? On Wednesday, December 5, 2012 7:19:30 PM UTC-6, dashman wrote: do most android phones support the bluetooth serial profile. specifically - gps data access. how would i know whether the phone supports it. i.e. look at the specs for the bluetooth version?? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Migrating existing app to Google Maps API v2
Is anyone here concerned about the need for OpenGL v2? Doesn't that exclude a lot of devices from being able to run the new maps? On Monday, December 3, 2012 10:13:08 PM UTC-5, JP wrote: I started migrating an Android project from the old Google Maps API to v2. Or an attempt at that, rather. A few issues with the brand new documentation aside*), there seems to be a substantial mismatch in the architecture, and as a result, the vast amount of API calls and classes are not available any more? (Somebody correct me if I am wrong). After switching the Java imports to com.google.android.gms.maps.*, I am missing MapActivity, GeoPoint, RecticleDrawMode and Overlay. Sure there are more. Right now a migration to v2 seems like a pretty hopeless undertaking for anything but the most trivial projects. Or am I completely missing the boat here? *) 1. Eclipse: File - Import - Existing... does not work: As should be the case for release, there are no Eclipse project files in the Google Play Services SDK, so I used New - Project - Android Project from Existing Code 2. Eclipse: Reference to google-play-services_lib as a library project results in a red cross in the referencing project properties and class references from the project source into com.google.android.gms do not resolve. Workaround: Include google-play-services.jar as a JAR file reference 3. A web search for com.google.android.gms.maps on Google finds a link (https://developers.google.com/commerce/wallet/sdk/android/ reference/com/google/android/gms/maps/package-summaryhttps://developers.google.com/commerce/wallet/sdk/android/reference/com/google/android/gms/maps/package-summary) but no content there -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Changing from Checkbox to Switch controls
create a custom preference with reflection. On Thursday, December 6, 2012 7:45:11 PM UTC-5, dashman wrote: I've got Preference screens that use Checkboxes right now. I'd like to move to Switches for a more consistent UI. I understand Switch is api14+ - so i have to use ToggleButton before that. How do i support all api levels. Different preference screens based on api version??? Since both the controls are sub-classes of CompoundButton, can i just a single code base. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Display contents of a database in a listview
Define contents of a database. You probably meant a table in a database. On Tuesday, November 27, 2012 12:02:16 PM UTC-5, Giannis Sarridis wrote: I would like to display the contents of a database in a listview...and I am new at this..so if there's anyone who could show me the way how to do this I would really appreciate it :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 do you show 'Are you sure you want to quit' dialog?
Seconded. It's the only reason we have it in our app, so users cannot (falsely) accuse us of draining their battery. On Wednesday, November 28, 2012 1:09:48 PM UTC-5, Kristopher Micinski wrote: To add, the exit button also has the effect of turning off GPS updates, so exiting also has a feature that implies something else: that you quit draining the user's battery. On Wed, Nov 28, 2012 at 12:38 PM, Latimerius l4t1m...@gmail.comjavascript: wrote: On Wed, Nov 28, 2012 at 6:24 PM, TreKing treki...@gmail.comjavascript: wrote: On Wed, Nov 28, 2012 at 11:18 AM, TreKing treki...@gmail.comjavascript: wrote: On Wed, Nov 28, 2012 at 11:02 AM, Latimerius l4t1m...@gmail.comjavascript: wrote: Yeah, well, it's probably not by Google, or one that Google had any say in. None of the built-in apps on my devices have an exit button, not even games (that in general do include it AFAICT). Google Maps Navigation has Exit Navigation as an option in the menu (at least on my device running 2.3.4). Oh, and in reference to the original point of this thread, if you press back, it asks you Exit Navigation? This will end all route guidance. If this check wasn't there, and you exited the app accidentally, you would have to re-enter the app and re-input your route guidance parameters and restart the process, which would be a pain in the ass if you're in the middle of driving. So seems like there are some valid use cases for such validation. Interesting, thanks for pointing this out. I'm guessing something about Navigation must be somehow expensive or slow so they had to put that check in. Or otherwise, was the crusade against exit buttons I remember seeing all over the net back in 2009/2010 misguided? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Data safety when writing important data to SD card
[sic] identifies misspelled words. You probably wanted to write Java with a capital J. On Tuesday, November 27, 2012 10:08:15 PM UTC-5, Tobiah wrote: On 11/27/2012 2:38 PM, Lew wrote: Tobiah wrote: I am opening a file for append using BufferedWriter. Each time the app is run, more data is added to the file. At first a made a little class representing the file and gave it a write() method that would take a string and send it out, then flush() the Writer. I was wondering when I should close the file, or whether I really needed to. Will java [sic] close the file for me when the app goes away? Right now, since the writes are few and far between, I'm just opening and closing the file each time I write a line to it, but that seems really awkward. What does seems awkward mean, let alone really awkward? What harm does awkward cause? I think inelegant would have been a better choice of words but What's awkward is holding a resource like a file open for a really long time when you aren't using it. Nice. I feel better already. File handles are a finite resource. Like all such, you should manage them wisely. Assess the objective costs and benefits of the approach in the context where you use it. Writes are few and far between, depending on what you mean by few and far, could very well be a use case for closing the file between writes. Or not. A record would be written to the file sometimes every few minutes, and at most every 10 seconds or so. At what point does not few and not far become significant enough to justify not closing the file? Almost certainly the non-measurable degree of awkwardness is not relevant. Thanks for clearing the waters. I feel a lot better about the way I wrote this bit of the code. Cheers. Tobiah P.S., why did you put the [sic] in my quote? Was it because it would not be java that closes the file, but rather the OS, or rather I'm not even close? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 can i manage security for mysql database permission as global
This has nothing to do with Android. You may have more luck asking in the MySQL forums. On Tuesday, November 27, 2012 12:56:31 AM UTC-5, Krishna Veni wrote: I have to developed one android application. The app is performed the data is retrieved from mysql database and displayed on android device. here i have to gave the permission globally on my mysql database. my mysql database permission is global means all are allowed to access my mysql database.but i have to allow to access my mysql database myself only.others are does not allow to access. So this situation how can i manage security for my mysql database. am beginner for this.please 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
[android-developers] Re: Make a one app appliance (prevent quitting app)
You'll need to cook a custom ROM. On Monday, November 26, 2012 5:02:03 PM UTC-5, Tobiah wrote: I need to make a one function appliance out of an Android phone for distribution to participants of an event. I want the user to see the app running, but not be able to do anything else. What sort of ways are there to lock down a device so that it appears as a one-app appliance? We retain ownership of the devices, so we can mess with the phones in any way before or after installing the program. Thanks, Tobiah -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: creating shared preferences throws null pointer exception
Why do you not use the default shared preferences? PreferenceManager.getDefaultSharedPreferences(context.getApplicationContext()); On Monday, November 26, 2012 3:26:36 AM UTC-5, SIVAKUMAR.J wrote: Dear All, I had android doubt. getSharedPreferences(sharedprefname, Context.MODE_PRIVATE) in a broad cast receiver returns null pointer exception?http://stackoverflow.com/questions/13560707/getsharedpreferencessharedprefname-context-mode-private-in-a-broad-cast-recei *I'm developing an android application.Im using Android SDK 2.2* I'm using 2 Broadcast receivers.Receiver A start a service S1 Receiver B starts a service S2. Both the recievers invoked at a time interval of 1 hour Receiver A is invoked @ a time 9.00,10.00 ,etc Receiver B is invoked @ a time 8.50,9.50 ,etc In a service s1 im storing some data in shared preferences Im storing some data in shared preferences in the receiver B. Im using the below code in the BroadCastReceiver for getting shared preference.But it throws null pointer exeption The coding snippet given belo *context.getApplicationContext().getSharedPreferences(myPrefs_capture_gps_per_hour, Context.MODE_PRIVATE); *in the above code *context* is the object of the class BusinessModel.This BusinessModel class is the child class of the *Application(android.app.Application)* Give ur ideas -- *Thanks Regards, Sivakumar.J* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: missing stuff
All that's missing is you agreeing to the license. On Monday, November 26, 2012 6:10:57 PM UTC-5, bob wrote: I'm trying to update my Android SDK. Anyone know why it is complaining about missing stuff here? https://lh5.googleusercontent.com/-N1XO7X5gebY/ULP26nnHvDI/AEs/UYclbz0Feyw/s1600/Screen+Shot+2012-11-26+at+5.07.36+PM.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 a simulator for the screen size is 1920X1080?
It's a very simple process. Open AVD Manager, create a new AVD with the HD screen size. Then start it up. After a few hours waiting you will realise this was a bad idea, and will get an actual device to use for development. On Thursday, November 15, 2012 10:09:31 PM UTC-5, Simon Miao wrote: As Subject. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: probleme avec android virtual device
looks like a corrupt SDK installation. Have you tried to reinstall? On Thursday, November 15, 2012 10:37:13 AM UTC-5, Christian Ngouffo Gnondji wrote: Bonjour je suis un débutant en programmation sous android apres avoir installé eclipse juno j'ai intaller le SDK pour android tout s'est bien passé mai ca passe pas lorsque je veux simuler un code sur AVD(android virtual device ) je recoi le message suiva https://lh6.googleusercontent.com/-0rnA0MywKFQ/UKULzXOPMtI/ACc/UdPD5IcBFzU/s1600/android.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en