[android-developers] forde to open the Launcher, not the last Activity
I would like to force my app to go to the launcher when i clik on it in the Home Screen I am in any activity of my app and i click HOME button and go to the Home Screen, If i click on my launcher then i always go to the last activity where i clicked HOME button, instead of my launcher activity I have tried with launch modes, with android:clearTaskOnLaunch, with android:finishOnTaskLaunch and they never work!!! Android always starts with the lastActivity onRestart() method instead of my launcher activity. How can i do that please? I need your help: this is my code in the manifest: activity android:name=.cem.activity.LanzadorCeM android:label=@string/app_cem_name android:icon=@drawable/ aprocor3 intent-filter android:label=@string/textLanzadorCeM action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: set the data connection ON by code?
maybe It is a losing battle, but i have to try. My app is a HOME aplication and i don't let get out of it unless you write a security code (for the disabilidty users tutors or parents). The cannot go to the settings and i am developing a new way to make a call and new settings windows easier for them. The problem is that when they click y power button then a dialog with several settings is shown. If they click in Power off--OK... if they click in Airplane Mode ON, i can change to Airplane Mode Off--- OK if they click in Silent Mode, i can change to their previous sound configuration (made in my app) But if they click in Data Connection OFF, i cannot chante to ON...this is my problem because i can loss the control of them and what they are doing. I hope you understand... By the way, I know this sounds like malware, but it is for a good reason...:-) On 23 mar, 12:27, lbendlin l...@bendlin.us wrote: Obviously your users are smart enough to disable data connection on their phone. You're fighting a losing battle. Never underestimate the ingenuity of users. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] set the data connection ON by code?
Hi, I am developing an application for people with disabilities (down syndrome and so on) and I need to take the control of Data Connection. My application sends information about the phone activity to a server that is very useful for people wiht disabilities parents to know what their kids are doing. So i would like to force the data connection to be always active. I can detect the Airplane mode ON and change it to OFF with: Settings.System.putInt(context.getContentResolver(),Settings.System.AIRPLANE_MODE_ON, 0); Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); intent.putExtra(state, 0); context.sendBroadcast(intent); And i would like to do the same with data connecion, in the case a user change to no active I would like to change to active data connection automaticly. is that possible? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: can i hide or change battery-low dialog?
I am developing an application for people with disabilities (down syndrome and so on) and I need to take the control of every window in the phone and Battery-Low Dialog is a window with two buttons and i need to change it with an easier dialog with only a Pictogram and a voice signal or something like this. I dont want to cheat the user...i want to make my own battery-low dialog to avoid people with dificulties to learn and use a celular phone to be confused and to go (through battery-state button) to a part of phone skills they are not able to deal with. Thats all. I see that is not possible without changing the firmware so I will try. Thanks to everyone. On 21 mar, 07:33, Krischik Martin martin.krisc...@noser.com wrote: On 18 Mrz., 09:05, guiridemeer guiridem...@gmail.com wrote: I need to hide or change the battery-low dialog. Would you please tell my which application you are working on so I can make sure I never install it. Martin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: can i hide or change battery-low dialog?
On 21 mar, 09:28, Krischik Martin martin.krisc...@noser.com wrote: On 21 Mrz., 08:59, guiridemeer guiridem...@gmail.com wrote: You should have said that in the first post and you would have got more and better answers. You should understand that on a phone for normal enabled users what you have asked for is considered evil. Of course I understand... I should have said but i forgot. No problem :-) I make my application as HOME default app and i can control the keys and the notification bar but i cant hide the system dialogs and i dont want my users to go out my app and make something they don't want or they don't know... and in Battery-low dialog there are two buttons...one is acceptable because only close the dialog, but the other (at least en Android 2.1) lets the user go to BatteryStatus window and that is not desireable. I would try with the firmware but i think it would be too much for me ;-) Regards Enrique -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] can i hide or change battery-low dialog?
Hi all, I need to hide or change the battery-low dialog. Im able to recieve the Intent.ACTION_BATTERY_LOW with a Broadcast Receiver registered with Context.registerReceiver() in my code (not able to do it through manifest receivers, as API says, I dont know why) Buy now i need to hide or avoid the Battery-low Dialog to appear or at least i would need to change this dialog window. I can't abort de BroadcastReceiver because is a non-ordered broadcast and I don't know what i can do. Any help, please? 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