[android-developers] Re: Avoid black Screen
Arun Kumar K wrote: Hi, i want to avoid black screen between two activity...how can i avoid please reply me soon... i am using asynchronous task -- *Thanks Regards* *K.Arun Kumar* http://android-developers.blogspot.com/2009/03/window-backgrounds-ui-speed.html?m=1 pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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]
Dear All, How to run J2ME Jad/Jar in android device. All are welcome to give their ideas -- *Thanks Regards, SIVAKUMAR.J http://stackoverflow.com/users/385138/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 --- 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]
First idea: use ggogle and learn from tutorials and examples. On 10 April 2013 09:54, Siva Kumar j.sivakumar...@gmail.com wrote: Dear All, How to run J2ME Jad/Jar in android device. All are welcome to give their ideas -- *Thanks Regards, SIVAKUMAR.J http://stackoverflow.com/users/385138/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 --- 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. -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android Google Maps V2 labels language
Hello, Following this http://stackoverflow.com/questions/14079656/how-is-the-map-labels-language-set-in-google-maps-android-api-v2 question: In Google Maps Android API v1, I used to set up the default locale with Locale.setDefault. This localized the map's language. How this is done with the new apps? Is it supported? How can I define the labels language on the map ? Regards, Shushu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Play Video using OpenMAXAL
I want to play video using *OpenMAXAL*.Actually I want to draw video frames on SurfaceView so I thought to use *OpenMAXAL* for this.Can any help me out. -- *Thanks Regards* Dilip Kumar Chaudhary My Linkedin Profilehttp://in.linkedin.com/pub/dilip-kumar-chaudhary/44/64/55b My Development Blog http://dilipdevelopment.blogspot.com/ -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Highlight part of the text in a textview object
TextView textView = (TextView) ((MessageListItem)view).findViewById(R.id.text_view); int length = textView.getText().toString().length(); Spannable str = (Spannable)textView.getText(); str.setSpan(new BackgroundColorSpan(Color.RED), 0, length, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); On Tuesday, April 20, 2010 1:13:34 AM UTC+5:30, Sebastian wrote: the problem is that your solution is only for the font color, but i want to set the font background :( -- 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 --- 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: supporting Google Maps Android API v2 on 2.3+
private GoogleMap mMap; mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)) .getMap(); LatLng currentView = new LatLng(lat, lon); mMap.getUiSettings().setZoomControlsEnabled(true); mMap.getUiSettings().setAllGesturesEnabled(false); CameraPosition cameraPosition = new CameraPosition.Builder() .target(currentView) .zoom(17) .bearing(90) .build(); Well, my v2 map code looks like this: mMap.addMarker(new MarkerOptions() .position(currentView) .title(intent.getStringExtra(address)) .snippet(Alert: + intent.getStringExtra(alert) + , Speed: + intent.getStringExtra(speed)) .draggable(true)); mMap.moveCamera(CameraUpdateFactory.newCameraPosition(cameraPosition)); I'm not sure if I need to perform some kind of check to see what version the user is using and then write code for that version, or if this code can somehow be supported in older androids using an environment variable. On Tuesday, April 9, 2013 8:00:19 PM UTC-4, RichardC wrote: The sample works from Android platform version 8, which is Android 2.2. You need to give us more information about what you have done in your project. On Tuesday, April 9, 2013 11:09:56 PM UTC+1, John Merlino wrote: I wrote my application using Google Maps Android api v2, but when trying to run the app on gingerbread, for example, it says the app is not supported. What's the quickest way to support older devices with google maps android api 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 --- 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] Trust chain certificates to access https service in Android
Dear... I need to access a server with a public certificate created by a government institute. I loaded the server certificate in .DER format, but it does not load a trust chain of this certificate (message: Trust anchor for certification path not found). The root CA is not in System CA Trust Store. How to load a trust chain? Is possible to load a p7b file in the Android? My code: public void carregaCertificado(String nmArquivo) throws CertificateException, KeyStoreException, IOException { { FileInputStream fis = null; fis = new FileInputStream(nmArquivo); BufferedInputStream bis = new BufferedInputStream(fis); CertificateFactory cf = CertificateFactory.getInstance(X.509); while (bis.available() 0) { Certificate cert = cf.generateCertificate(bis); ksServer.setCertificateEntry(nmArquivo, cert); } } } Thanls mbarbiero -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to keep WiFi on and let screen go to sleep?
I'm programming an Android device for use in an industrial environment where it needs to stay in touch with the server even when the screen goes to sleep. I thought I did all the right stuff but when the screen goes out it still sends a Fin to the server (confirmed on a network data packet sniffer). I know that to do a WifiLock I must also do a WakeLock, so, in my onCreate I do . . . private PowerManager.WakeLock wakelock;private WifiManager.WifiLock wifilock; . . . PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wakelock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, CPUOnly); wakelock.acquire(); WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifilock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL, WifiLock); wifilock.acquire(); I read on the web that this doesn't work on some devices and you have to leave the screen on dim, so I replaced the line above with wakelock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, CPUOnly); That worked in the sense that WiFi stayed on, but at the expense of leaving the screen on dimly. Is there any workaround to this so the screen can go off but WiFi stay on? ALSO - this is on an Android 2.36 device, but the Android documentation says that as of API 17 SCREEN_DIM_WAKE_LOCK is deprecated and we're supposed to use FLAG_KEEP_SCREEN_ON, but that leaves the display on at *full brightness*! So what are we supposed to do then? Thanks in advance! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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 keep WiFi on and let screen go to sleep?
Just an addendum - I tried setting the WiFi Sleep Policy to Never in the WiFi Settings advanced Menu and it made no difference - unless I let the screen stay on, however dimly, as soon as the display goes out it sends a fin to the server. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TtsEngine sample
Well, I found out that Reto Meier has some good information on TTS in Chapter 11 of his book. That can be used in lieu of the sample. Also, I wrote this quick test and am posting it in case it helps anyone: TextToSpeech tts = null; ... tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() { @Override public void onInit(int status) { if (status == TextToSpeech.SUCCESS) { Toast.makeText(MainActivity.this, Success, Toast.LENGTH_LONG).show(); tts.speak(test, TextToSpeech.QUEUE_ADD, null); } else if (status == TextToSpeech.ERROR) { Toast.makeText(MainActivity.this, Error, Toast.LENGTH_LONG).show(); } } }); On Tuesday, April 9, 2013 5:19:22 PM UTC-5, bob wrote: Any idea what this sample is supposed to do? There is no Launcher activity, and the *speak* method is never called. Thanks. On Wednesday, August 8, 2012 1:48:56 PM UTC-5, Harri Smått wrote: On Aug 8, 2012, at 9:13 PM, bob b...@coolfone.comze.com wrote: I'm wondering if it even works at all. At least it compiles and installs ok after you change IceCreamSandwich with proper API integer. -- H -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 keep WiFi on and let screen go to sleep?
Why do you need to keep the Wifi on? Maybe if you really need to notify the device of something, send it a text message? I bet it can still receive text messages with the screen off. Thanks. On Wednesday, April 10, 2013 10:43:44 AM UTC-5, plnelson wrote: Just an addendum - I tried setting the WiFi Sleep Policy to Never in the WiFi Settings advanced Menu and it made no difference - unless I let the screen stay on, however dimly, as soon as the display goes out it sends a fin to the server. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 keep WiFi on and let screen go to sleep?
On Wed, Apr 10, 2013 at 8:03 AM, plnelson pna...@gmail.com wrote: I'm programming an Android device for use in an industrial environment where it needs to stay in touch with the server even when the screen goes to sleep. I thought I did all the right stuff but when the screen goes out it still sends a Fin to the server (confirmed on a network data packet sniffer). I know that to do a WifiLock I must also do a WakeLock, so, in my onCreate I do . . . private PowerManager.WakeLock wakelock;private WifiManager.WifiLock wifilock; . . . PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); wakelock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, CPUOnly); wakelock.acquire(); WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifilock = wifiManager.createWifiLock(WifiManager.WIFI_MODE_FULL, WifiLock); wifilock.acquire(); Acquiring wifilock like this only makes sure the system does not shut down wifi. The actual wifi connection still goes through power optimizations once screen is off in the driver. This should not drop your connections, but we have seen some vendor driverss use optimizations that cause interop issues with certain access points leading to heavy loss or drops. I read on the web that this doesn't work on some devices and you have to leave the screen on dim, so I replaced the line above with wakelock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, CPUOnly); That worked in the sense that WiFi stayed on, but at the expense of leaving the screen on dimly. Is there any workaround to this so the screen can go off but WiFi stay on? ALSO - this is on an Android 2.36 device, but the Android documentation says that as of API 17 SCREEN_DIM_WAKE_LOCK is deprecated and we're supposed to use FLAG_KEEP_SCREEN_ON, but that leaves the display on at *full brightness*! So what are we supposed to do then? Thanks in advance! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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 keep WiFi on and let screen go to sleep?
On Wednesday, April 10, 2013 2:37:53 PM UTC-4, bob wrote: Why do you need to keep the Wifi on? As I explained in the OP, the Android devices are used in an industrial environment. Specifically they are used in a factory where they are sending and receiving information to a central process control PC even when users are not interacting with the display or keyboard. But *why* I want WiFi to stay on isn't really the point - the point is that this is a feature that Android supposedly supports and I can't seem to get it to work.Is this an Android bug or am I doing something wrong? The devices are all Samsung Media Players (a cellphone without the phone - sort of an Android iPod) running stock-out-of-the-box Android 2.35 or 2.36. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 keep WiFi on and let screen go to sleep?
Acquiring wifilock like this only makes sure the system does not shut down wifi. The actual wifi connection still goes through power optimizations once screen is off in the driver. This should not drop your connections, But it does. As I said, it sends a FIN packet - that's a request to close the connection. The server responds with an ACK and.a FIN of its own which Android ACKs. This is the textbook-standard way to close a TCP connection, and it's initiated by Android when the display goes off. We watch it all on our network sniffers and it's 100% reliable and repeatable. The Android device does *not* send a FIN packet as long as the display stays on, no matter how long it stays on. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 keep WiFi on and let screen go to sleep?
On Wed, Apr 10, 2013 at 4:06 PM, plnelson pna...@gmail.com wrote: But it does. As I said, it sends a FIN packet - that's a request to close the connection. The server responds with an ACK and.a FIN of its own which Android ACKs. This is the textbook-standard way to close a TCP connection, and it's initiated by Android when the display goes off. We watch it all on our network sniffers and it's 100% reliable and repeatable. I'm no low-level WiFi expert, but if WiFi were powered down, I would expect precisely zero of these packets. Are you sure nothing in your app is closing the socket? Say, courtesy of an onPause() or onStop() call when the screen turns off? -- 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.7 Available! -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To 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] Android 4.0.4 : LocationManager.NETWORK_PROVIDER is not triggering onLocationChanged in ICS
Hello group, A working piece of code : public void startReceivingLocationUpdates() { if (mLocationManager != null) { try { mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER , Constants.LOCATION_COLLECTION_FREQUENCY, 0, mLocationListeners[1]); } catch (java.lang.SecurityException ex) { LogHandler.log(ex, Security Exception in receiving location data.); } catch (IllegalArgumentException ex) { LogHandler.log(ex, Illegal Argument exception in receiving location data.); } } } has certain issues on Android 4.0.4 phones. One of the application that I maintain, uses this for collecting location data every 10 minutes. I register this as a part of background service. Typically, we get data for 5-6 days but after that OnLocationChange event handler is never triggered. This is happening only on 4.0.4 devices. Any heads up on what I am doing wrong or is this a known issue? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- 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 keep WiFi on and let screen go to sleep?
What are you trying to do? If you want to measure power using wifi, then just subtract the screen power consumption numbers after two tests - one with screen in flight mode and one with wifi on. Not sure if any point to this was ever made in this thread. On Wed, Apr 10, 2013 at 1:06 PM, plnelson pna...@gmail.com wrote: Acquiring wifilock like this only makes sure the system does not shut down wifi. The actual wifi connection still goes through power optimizations once screen is off in the driver. This should not drop your connections, But it does. As I said, it sends a FIN packet - that's a request to close the connection. The server responds with an ACK and.a FIN of its own which Android ACKs. This is the textbook-standard way to close a TCP connection, and it's initiated by Android when the display goes off. We watch it all on our network sniffers and it's 100% reliable and repeatable. The Android device does *not* send a FIN packet as long as the display stays on, no matter how long it stays on. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] How to change an app's internal locale on Android 4.2 ?
Hello, You can change an app's internal locale like this: private void changeInternalLocale() { Locale newLocale = Locale.FRENCH; Locale.setDefault(newLocale); Configuration config = getBaseContext().getResources().getConfiguration(); config.locale = newLocale; getBaseContext().getResources().updateConfiguration( config, getBaseContext().getResources().getDisplayMetrics()); onConfigurationChanged(config); // Restart the activity. Intent intent = getIntent(); finish(); startActivity(intent); } This works on Android 4.1 and below, but it doesn't work on Android 4.2: The app becomes very unstable after you change the internal locale, then change orientation. The Activity will continuously relaunch itself in an endless loop. It's like this bug here: http://code.google.com/p/android/issues/detail?id=53079 Does anyone know how to workaround it to make it work on Android 4.2? Some apps are able to do it, but I don't know how they did 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: How to keep WiFi on and let screen go to sleep?
Maybe you should just leave the display on but set all the display pixels to black? This should help with the power drain of the display. Thanks. On Wednesday, April 10, 2013 2:53:41 PM UTC-5, plnelson wrote: On Wednesday, April 10, 2013 2:37:53 PM UTC-4, bob wrote: Why do you need to keep the Wifi on? As I explained in the OP, the Android devices are used in an industrial environment. Specifically they are used in a factory where they are sending and receiving information to a central process control PC even when users are not interacting with the display or keyboard. But *why* I want WiFi to stay on isn't really the point - the point is that this is a feature that Android supposedly supports and I can't seem to get it to work.Is this an Android bug or am I doing something wrong? The devices are all Samsung Media Players (a cellphone without the phone - sort of an Android iPod) running stock-out-of-the-box Android 2.35 or 2.36. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: How to keep WiFi on and let screen go to sleep?
If you write a simple socket based app that connects to another device and stays active with wifi on and everything else in flight mode, then your wifi will stay active once you turn off your screen. Android has no knowledge of this going on in the kernel. Also, you can use ADB connected to the device to run the program and monitor it. Remember that the USB cable will use change your power readings if you are concerned about that. Not sure of your objectives so hard to know where you are going with this. Also, The only other way to try is to turn on flight mode and then just turn on wifi manually through the settings. You should see the wifi icon. Then force the screen off. On Wed, Apr 10, 2013 at 2:20 PM, bob b...@coolfone.comze.com wrote: Maybe you should just leave the display on but set all the display pixels to black? This should help with the power drain of the display. Thanks. On Wednesday, April 10, 2013 2:53:41 PM UTC-5, plnelson wrote: On Wednesday, April 10, 2013 2:37:53 PM UTC-4, bob wrote: Why do you need to keep the Wifi on? As I explained in the OP, the Android devices are used in an industrial environment. Specifically they are used in a factory where they are sending and receiving information to a central process control PC even when users are not interacting with the display or keyboard. But *why* I want WiFi to stay on isn't really the point - the point is that this is a feature that Android supposedly supports and I can't seem to get it to work.Is this an Android bug or am I doing something wrong? The devices are all Samsung Media Players (a cellphone without the phone - sort of an Android iPod) running stock-out-of-the-box Android 2.35 or 2.36. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] setRate method and seekto methods for audio player
Hi, i am working on a music player, i would like to implement seek bar functionality and setrate method for music player , can any one suggest me how can i implement both of these functionalists or a class which has these both methods, Thanks, shiva shankar -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 don't think j2me can run in Android On Wed, Apr 10, 2013 at 6:57 PM, Fred Niggle fred.nig...@googlemail.comwrote: First idea: use ggogle and learn from tutorials and examples. On 10 April 2013 09:54, Siva Kumar j.sivakumar...@gmail.com wrote: Dear All, How to run J2ME Jad/Jar in android device. All are welcome to give their ideas -- *Thanks Regards, SIVAKUMAR.J http://stackoverflow.com/users/385138/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 --- 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. -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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. -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: asterisk sip account
I think you need to research on port forwarding in emulator On Sat, Apr 6, 2013 at 6:02 AM, bob b...@coolfone.comze.com wrote: Why not just make the call from one *real* device to another? Thanks. On Friday, April 5, 2013 1:46:26 AM UTC-5, Tamilarasi Sivaraj wrote: HI, I have to create two asterisk sip account in locally and i set up this account into my android emulators. It's displays the online status. But My problem is when i try call from one emulator to another. The call going to automatically end. Any body else know about the solution please share with me. Thanks, Tamilarasi Sivaraj -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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. -- Regards, Michael Leung http://www.itblogs.info - My IT Blog http://diary.skynovel.info - My Blog http://www.michaelleung.info - My Homepage -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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.