[android-developers] Re: ADC 2 rating
Yes, in deed! But, still, IMHO it is not enough to score user experience. On Oct 26, 11:50 am, Nightwolf wrote: > I have no such statistics. According to Google blog the target was > about 100 ratings per application. > > On Oct 26, 11:36 am, Omer Saatcioglu wrote: > > > > > Hi, > > > I submitted an app to ADC 2 and I had the chance to track user > > statistics over my server. As I observed that only 125 users used my > > app during the first round. This seemed to me a very low rate. What do > > you think? Does anybody has an statistic like this? > > > Best Regards, > > Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ADC 2 rating
Hi, I submitted an app to ADC 2 and I had the chance to track user statistics over my server. As I observed that only 125 users used my app during the first round. This seemed to me a very low rate. What do you think? Does anybody has an statistic like this? Best Regards, Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ADC 2 Submission Site -- Now live
Hello Android Team, I had uploaded my app Instant Lyrics after 1st August and it is now in the market. That's why, when I try to upload my app to ADC 2 it says that "You have another application on Android Market or ADC with the same package name (com.saatcioglu.android.instantlyrics). Go to that other application, and click upgrade." I unpublished the app from Market but still I have the same error. What should I do? Thank you, Omer On Aug 27, 8:23 pm, Dan Morrill wrote: > We are not planning to extend the submission deadline. > - Dan > > > > On Tue, Aug 25, 2009 at 2:22 PM, patrick wrote: > > > Hi, > > > i'm asking wher can we ask google to extend the deadline? > > > thks > > > On 25 août, 17:05, Dan Sherman wrote: > > > There's no reason that they would change the deadline. The deadline has > > > been set at the 31st since late May (as stated before). With that > > deadline > > > posted, your app should be ready to hit the submit button on the 31st or > > > sooner. Nothing changed, they're giving you a full week to hit the > > "Submit" > > > button. > > > > - Dan > > > > On Tue, Aug 25, 2009 at 12:06 PM, Maps.Huge.Info (Maps API Guru) < > > > > cor...@gmail.com> wrote: > > > > > I see no need to extend the deadline, it's been public since May 27th, > > > > if you're not ready by now, you'll probably never be ready. People > > > > have to learn that a deadline means something, extending it would only > > > > punish those who are ready and reward those who can't meet project > > > > goals on time. > > > > > -John Coryat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 not change the text appears in AlertDialog
http://code.google.com/p/android/issues/detail?id=857 This problem is because of a bug in the super class Dialog. Once I called removeDialog before I call showDialog in my code. The problem is completely solved. So, I am creating the dialog like this from now on: removeDialog(R.id.display_success); showDialog(R.id.display_success); On Thu, May 7, 2009 at 11:16 AM, Omer Saatcioglu wrote: > Hello, > > Today I faced a very weird problem. In my game I create AlertDialog to > show the user next level challenges when one is succeeded. So, the > corresponding code is like this. when the game is succeeded showDialog > (R.id.display_success) is called and the following code is executed. > So, I am expecting to execute this code in every call. However; the > game is executing only once and showing the same AlertDialog in every > other execution. I mean, like the instance is not created after the > first one is created and the first instance is used all the time. I > hope I could describe my problem. Thank you. > >case R.id.display_success: >Log.d("GfxMasterShot::onCreateDialog", "Succcess " + > Integer.toString(SMBGuesstheNumber.nCurrentLevel)); >updateGameSettings(); >message = formatLevel() >+ formatMission(); >return new AlertDialog.Builder(this) >.setIcon(R.drawable.smiley_happy) >.setTitle(R.string.dialog_success) >.setMessage(message) >.setPositiveButton(R.string.alert_dialog_newgame, > new > DialogInterface.OnClickListener() { >public void onClick(DialogInterface dialog, > int whichButton) { >StartaNewGame(); >} >}) >.setNegativeButton(R.string.exit, new > DialogInterface.OnClickListener() { >public void onClick(DialogInterface dialog, > int whichButton) { > > CtrlMaintanence.getInstance().setCurrentLevel > (SMBGuesstheNumber.nCurrentLevel + 1); >finish(); >} >}) >.create(); > > -- Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 not change the text appears in AlertDialog
Hello, Today I faced a very weird problem. In my game I create AlertDialog to show the user next level challenges when one is succeeded. So, the corresponding code is like this. when the game is succeeded showDialog (R.id.display_success) is called and the following code is executed. So, I am expecting to execute this code in every call. However; the game is executing only once and showing the same AlertDialog in every other execution. I mean, like the instance is not created after the first one is created and the first instance is used all the time. I hope I could describe my problem. Thank you. case R.id.display_success: Log.d("GfxMasterShot::onCreateDialog", "Succcess " + Integer.toString(SMBGuesstheNumber.nCurrentLevel)); updateGameSettings(); message = formatLevel() + formatMission(); return new AlertDialog.Builder(this) .setIcon(R.drawable.smiley_happy) .setTitle(R.string.dialog_success) .setMessage(message) .setPositiveButton(R.string.alert_dialog_newgame, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { StartaNewGame(); } }) .setNegativeButton(R.string.exit, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { CtrlMaintanence.getInstance().setCurrentLevel (SMBGuesstheNumber.nCurrentLevel + 1); finish(); } }) .create(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ActivityInfo is null in Intrumentation class
did you add the intents to AndroidManifest.xml? On Tue, Apr 28, 2009 at 2:05 PM, a...@lg wrote: > > @Override >public void onStart() { >super.onStart(); > _intent = new Intent(Intent.ACTION_MAIN); > _intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); > _intent = _intent.setClass(getTargetContext(), ClassUnderTest.class); > ActivityInfo ai = _intent.resolveActivityInfo(getTargetContext > ().getPackageManager(), 0); >if (ai != null) { > ClassUnderTest activity = (ClassUnderTest) > startActivitySync(_intent); >} > } > > > This a part of my code in my Instrumentation class. Earlier, i got a > run time Exception,Quote: > java.lang.RuntimeException: Unable to resolve activity for: Intent > { flags=0x1000 comp={com.android.test.ui/ > com.android.test.ui.ClassUnderTest} }. > > Later on, i checked the activity info which is always null. How to set > the ActivityInfo..? What is required to update in the code? > > > > -- Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Writting/Reading Sync settings - Possible?
Ok. I am looking for the same thing desperately too and I think that configuring sync settings is not possible (I mean supported) Anyway, even though it is not possible, could anybody tell us why it is not? I will be very happy. Thanks, Omer On Feb 24, 1:21 pm, Abraham wrote: > HI, > > Even I'm looking for the same...Is it possible to read / write thesyncsettings > > Thanks > Abraham > > On Jan 13, 11:07 pm, code_android_festival_way > > wrote: > > One last try if someone could tell me how to toggle thesync > > settings. :-) > > > On 13 Jan., 10:40, code_android_festival_way > > > wrote: > > > Something new on that topic? > > > > On 11 Jan., 09:11, code_android_festival_way > > > > wrote: > > > > Hello. > > > > > I have seen several applications in the market that enable you to > > > > toggle yoursyncsettings. (for example ToggleSettings) How is this > > > > done? I have found the permissions to read and write thesyncsettings > > > > but I don't really know how to to that. > > > > > Could someone drop me an example how to change thesyncsettings? This > > > > would be really nice. > > > > > I'm looking forward reading your responses. > > > > > Regards.- Hide quoted text - > > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Active Calendar app on Android Emulator?
Emulator can not sync with Google Server. You should test the sync with a real device that had activated with google ID. On Feb 26, 1:52 pm, Steven Farley wrote: > I have the same problem, running the emulator on Mac OS X. Any > suggesstions would be appreciated. > > On Feb 21, 3:24 am, Tim Bao wrote: > > > Hi, all, > > > I am sorry to bring this into such a board audience but seems nobody > > has posted similar problem or solution on the internet. > > > I am trying to use Calendar.apk in the emulator on a windows xp > > system. The SDK version I am using is 1.1r1. However, the calendar app > > will always go away with a message "Your events will appear shortly". > > My guess is that the app is bound with Google account so I go to > > "Setup"->"DataSynchronization". Once I click the "Data > >Synchronization", I got a failure reading "The application Google Apps > > (process com.google.process.gapps) has stopped unexpectedly. Please > > try again". By check logcat output, I got the following(see the msg at > > the end). Anybody can help me out how to install the App/Service or > > configure the service or activate the signin service so that I can use > > Calendar on emulator? Your help is highly appreciated. > > > I/ActivityManager( 52): Starting activity: Intent > > { action=android.intent.acti > > on.MAIN comp={com.android.settings/ > > com.android.settings.SyncSettings} } > > W/GoogleLoginService( 181): Device has no accounts: sending Intent > > { action=and > > roid.accounts.LOGIN_ACCOUNTS_MISSING } > > I/GoogleLoginService.PasswordEncrypter( 181): no public key available > > I/ActivityManager( 52): Stopping service: > > com.google.android.googleapps/.Googl > > eLoginService > > I/ActivityManager( 52): Displayed activity > > com.android.settings/.SyncSettings: > > 883 ms > > I/ActivityManager( 52): Starting activity: Intent { comp= > > {com.google.android.g > > oogleapps/com.google.android.googleapps.RunSetupWizardActivity} (has > > extras) } > > I/ActivityManager( 52): Start proc com.google.process.app for > > activity com.goo > > gle.android.googleapps/.RunSetupWizardActivity: pid=449 uid=10016 gids= > > {3003} > > I/ActivityManager( 52): Starting activity: Intent { comp= > > {com.android.setupwiz > > ard/com.android.setupwizard.AccountIntroActivity} (has extras) } > > D/AndroidRuntime( 449): Shutting down VM > > W/dalvikvm( 449): threadid=3: thread exiting with uncaught exception > > (group=0x4 > > 000fe68) > > E/AndroidRuntime( 449): Uncaught handler: thread main exiting due to > > uncaught e > > xception > > E/AndroidRuntime( 449): java.lang.RuntimeException: Unable to start > > activity Co > > mponentInfo{com.google.android.googleapps/ > > com.google.android.googleapps.RunSetup > > WizardActivity}: android.content.ActivityNotFoundException: Unable to > > find expli > > cit activity class {com.android.setupwizard/ > > com.android.setupwizard.AccountIntro > > Activity}; have you declared this activity in your > > AndroidManifest.xml? > > E/AndroidRuntime( 449): at > > android.app.ActivityThread.performLaunchActiv > > ity(ActivityThread.java:2141) > > E/AndroidRuntime( 449): at > > android.app.ActivityThread.handleLaunchActivi > > ty(ActivityThread.java:2157) > > E/AndroidRuntime( 449): at android.app.ActivityThread.access > > $1800(Activi > > tyThread.java:112) > > E/AndroidRuntime( 449): at android.app.ActivityThread > > $H.handleMessage(Ac > > tivityThread.java:1581) > > E/AndroidRuntime( 449): at android.os.Handler.dispatchMessage > > (Handler.ja > > va:88) > > E/AndroidRuntime( 449): at android.os.Looper.loop(Looper.java: > > 123) > > E/AndroidRuntime( 449): at android.app.ActivityThread.main > > (ActivityThrea > > d.java:3739) > > E/AndroidRuntime( 449): at > > java.lang.reflect.Method.invokeNative(Native > > Method) > > E/AndroidRuntime( 449): at java.lang.reflect.Method.invoke > > (Method.java:5 > > 15) > > E/AndroidRuntime( 449): at com.android.internal.os.ZygoteInit > > $MethodAndA > > rgsCaller.run(ZygoteInit.java:739) > > E/AndroidRuntime( 449): at > > com.android.internal.os.ZygoteInit.main(Zygot > > eInit.java:497) > > E/AndroidRuntime( 449): at dalvik.system.NativeStart.main > > (Native Method) > > > E/AndroidRuntime( 449): Caused by: > > android.content.ActivityNotFoundException: U > > nable to find explicit activity class {com.android.setupwizard/ > > com.android.setup > > wizard.AccountIntroActivity}; have you declared this activity in your > > AndroidMan > > ifest.xml? > > E/AndroidRuntime( 449): at > > android.app.Instrumentation.checkStartActivit > > yResult(Instrumentation.java:1467) > > E/AndroidRuntime( 449): at > > android.app.Instrumentation.execStartActivity > > (Instrumentation.java:1441) > > E/AndroidRuntime( 449): at > > android.app.Activity.startActivityForResult(A > > ctivity.java:2526) > > E/AndroidRuntime( 449): at >
[android-developers] Re: How to enable/disable GPRS/EDGE data connection
Ow that's good. I didn't know that. (market search sucks) Thank you David. However. I also want to disable auto sync and background data when in the GPRS/EDGE mode and actually I am curious how we can change phone settings, in the first place. On Thu, Apr 16, 2009 at 10:40 PM, David Turner wrote: > For what is worth, there is already an application on Market called > APNDroid that will just do that for you > > > On Thu, Apr 16, 2009 at 8:14 PM, Omer Saatcioglu wrote: > >> Hello all, >> The service providers in my country are charging for the MBs I downloaded >> in my GPRS/EDGE connection. So, whenever I want to disable the GPRS, I just >> change my default APN to something wrong and then correct it when I want to >> enable it again. I couldn't find another way to enable/disable. I think, >> Android team assumed that only 3G users with a good data plan only would use >> this phone. Anyway, I just want to develop an application which can do that >> automatically for me. However; I couldn't find how to change the APN >> settings in the docs. The only clue I had was this: >> http://developer.android.com/reference/android/provider/Settings.html#ACTION_APN_SETTINGS >> >> but I couldn't find how to use it. Could you please help me? Any >> alternative ways and/or suggestions are welcome. >> >> Thank you, >> Omer >> >> >> > > > > -- Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 enable/disable GPRS/EDGE data connection
Hello all, The service providers in my country are charging for the MBs I downloaded in my GPRS/EDGE connection. So, whenever I want to disable the GPRS, I just change my default APN to something wrong and then correct it when I want to enable it again. I couldn't find another way to enable/disable. I think, Android team assumed that only 3G users with a good data plan only would use this phone. Anyway, I just want to develop an application which can do that automatically for me. However; I couldn't find how to change the APN settings in the docs. The only clue I had was this: http://developer.android.com/reference/android/provider/Settings.html#ACTION_APN_SETTINGS but I couldn't find how to use it. Could you please help me? Any alternative ways and/or suggestions are welcome. Thank you, Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 change APN Settings
I have the same problem too. Is there anyone who can help us for this? Thank you, Omer On Feb 24, 12:42 pm, "Jun'ichiHira" wrote: > Hello > I'm developing an application that change SystemAPN. > but I don't have any information to do that. > Does anyone know how to changeAPNSettings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Restoring the active Activity while resuming the application
Actually, I am really confused. Whenever I run the test application on the device, it behaves like I wanted (the child activity is activated after launching from home screen or recently launched screen) However; When I ran my application after I removed overridden onPause and onResume methods, my application behaves like you say (the main activity is activated after launching from home screen or recently launched screen) I am still debugging this problem though. I think I will just say at the end "it is not a bug but it is a feature" :) On Thu, Apr 9, 2009 at 10:12 AM, for android wrote: > I am not sure whether you will get different results in the device. > > It will behave the same way AFAIK. > > > When ever home button is pressed your Child activity is being > finished...There is no way it will behave differently on the device. > > On Thu, Apr 9, 2009 at 12:35 PM, Omer Saatcioglu wrote: > >> >> Actually, this code is a work around to get rid of the problem. >> However; I think I found the root cause of my problem at >> stackoverflow.com. I asked the same question and they told me that >> there is a bug in emulator: >> http://code.google.com/p/android/issues/detail?id=2373 >> >> I think that all I need to do right now is clean the save/restore >> state codes from my project and run the signed copy directly on my >> device. >> >> Thank your for your kind help. >> >> >> On Apr 9, 8:58 am, for android wrote: >> > you are finishing the activity onPause..hence you are getting such >> results. >> > >> > @Override >> > protected void onPause(){ >> > super.onPause(); >> > if(SMBGuesstheNumber.isGameStarted) >> > { >> > savetheGame(); >> > } >> > CtrlMaintanence ctrlMaintanence= new CtrlMaintanence(); >> > ctrlMaintanence.savetheGame(); >> > *finish();* >> > } >> > >> > if you need to do any wrk while the activity is finishing then use >> > isFinishing() method >> > >> > On Thu, Apr 9, 2009 at 11:10 AM, Omer Saatcioglu > >wrote: >> > >> > >> > >> > >> > >> > > On Apr 7, 8:22 pm, Marco Nelissen wrote: >> > > > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu < >> osaatcio...@gmail.com> >> > > wrote: >> > >> > > > > Hello all, >> > >> > > > > I have two activities running: MainActivity and ChildActivity. >> > > > > Whenever the user clicks in the button in MainActivity, the >> > > > > ChildActivity is launched. What I want to do is this: >> > >> > > > > When the active activity is the ChildActivity and the user clicks >> the >> > > > > home button then relaunch the application (like opening from the >> > > > > beginning), I want to see the ChildActivity instead of >> MainActivity >> > > > > that is launched. However; This is happening only when the user >> clicks >> > > > > from recent activities window. (the window opened when you long >> press >> > > > > the home button) >> > >> > > > It should already be doing what you want it to do, unless you have >> > > > something in your manifest that specifically makes it not do this. >> > > > What does your AndroidManifest.xml look like? >> > >> > > hello Mark, >> > >> > > Thank you for the interest. the following is my AndroidManifest.xml. >> > > The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber >> > >> > > http://schemas.android.com/apk/res/android"; >> > > package="com.saatcioglu.android.guessthenumber" >> > > android:versionCode="5" >> > > android:versionName="0.5"> >> > > >> > > >> > > >> > >> > > android:label="@string/app_name"> >> > > >> > > >> > >> > > android:name="android.intent.category.LAUNCHER" /> >> > > >> > > >> > >> > > android:label="@string/app_name"> >> > > >> > >> > > android:label="Guess the Number Prefs"> >> > > >> > >> > > android:label="Guess the Number Prefs"> >> > > >> > > >> > > >> > >> > > you can find all the code athttp://code.google.com/p/guessthenumber/ >> >> > > > > -- Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Restoring the active Activity while resuming the application
Actually, this code is a work around to get rid of the problem. However; I think I found the root cause of my problem at stackoverflow.com. I asked the same question and they told me that there is a bug in emulator: http://code.google.com/p/android/issues/detail?id=2373 I think that all I need to do right now is clean the save/restore state codes from my project and run the signed copy directly on my device. Thank your for your kind help. On Apr 9, 8:58 am, for android wrote: > you are finishing the activity onPause..hence you are getting such results. > > @Override > protected void onPause(){ > super.onPause(); > if(SMBGuesstheNumber.isGameStarted) > { > savetheGame(); > } > CtrlMaintanence ctrlMaintanence= new CtrlMaintanence(); > ctrlMaintanence.savetheGame(); > * finish();* > } > > if you need to do any wrk while the activity is finishing then use > isFinishing() method > > On Thu, Apr 9, 2009 at 11:10 AM, Omer Saatcioglu wrote: > > > > > > > On Apr 7, 8:22 pm, Marco Nelissen wrote: > > > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu > > wrote: > > > > > Hello all, > > > > > I have two activities running: MainActivity and ChildActivity. > > > > Whenever the user clicks in the button in MainActivity, the > > > > ChildActivity is launched. What I want to do is this: > > > > > When the active activity is the ChildActivity and the user clicks the > > > > home button then relaunch the application (like opening from the > > > > beginning), I want to see the ChildActivity instead of MainActivity > > > > that is launched. However; This is happening only when the user clicks > > > > from recent activities window. (the window opened when you long press > > > > the home button) > > > > It should already be doing what you want it to do, unless you have > > > something in your manifest that specifically makes it not do this. > > > What does your AndroidManifest.xml look like? > > > hello Mark, > > > Thank you for the interest. the following is my AndroidManifest.xml. > > The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber > > > http://schemas.android.com/apk/res/android"; > > package="com.saatcioglu.android.guessthenumber" > > android:versionCode="5" > > android:versionName="0.5"> > > > > > > > > > android:label="@string/app_name"> > > > > > > > android:name="android.intent.category.LAUNCHER" /> > > > > > > > android:label="@string/app_name"> > > > > > android:label="Guess the Number Prefs"> > > > > > android:label="Guess the Number Prefs"> > > > > > > > > > you can find all the code athttp://code.google.com/p/guessthenumber/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Restoring the active Activity while resuming the application
On Apr 7, 8:22 pm, Marco Nelissen wrote: > On Tue, Apr 7, 2009 at 10:04 AM, Omer Saatcioglu > wrote: > > > Hello all, > > > I have two activities running: MainActivity and ChildActivity. > > Whenever the user clicks in the button in MainActivity, the > > ChildActivity is launched. What I want to do is this: > > > When the active activity is the ChildActivity and the user clicks the > > home button then relaunch the application (like opening from the > > beginning), I want to see the ChildActivity instead of MainActivity > > that is launched. However; This is happening only when the user clicks > > from recent activities window. (the window opened when you long press > > the home button) > > It should already be doing what you want it to do, unless you have > something in your manifest that specifically makes it not do this. > What does your AndroidManifest.xml look like? hello Mark, Thank you for the interest. the following is my AndroidManifest.xml. The MainActivity is GfxMain and ChildActivity is GfxGuesstheNumber http://schemas.android.com/apk/res/android"; package="com.saatcioglu.android.guessthenumber" android:versionCode="5" android:versionName="0.5"> you can find all the code at http://code.google.com/p/guessthenumber/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Restoring the active Activity while resuming the application
Hello all, I have two activities running: MainActivity and ChildActivity. Whenever the user clicks in the button in MainActivity, the ChildActivity is launched. What I want to do is this: When the active activity is the ChildActivity and the user clicks the home button then relaunch the application (like opening from the beginning), I want to see the ChildActivity instead of MainActivity that is launched. However; This is happening only when the user clicks from recent activities window. (the window opened when you long press the home button) I had some suggestions actually work arounds and I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem. There should be a smart way out there. By the way; I don't think my code has a specific problem to generate this error/feature. Because, I created a test project and tried standalone before sending the question and faced the same problem. Anyhow, here is the test code. Thank you. public class MainActivity extends Activity implements OnClickListener { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.setTitle("MainActivity"); ((Button) findViewById (R.id.btnChildActivity)).setOnClickListener(this); } @Override public void onClick(View arg0) { // TODO Auto-generated method stub startActivity(new Intent(this, ChildActivity.class)); } } public class ChildActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); this.setTitle("ChildActivity"); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Restoring the active Activity while resuming the application
Hello all, I have two activities running: MainActivity and ChildActivity. Whenever the user clicks in the button in MainActivity, the ChildActivity is launched. What I want to do is this: When the active activity is the ChildActivity and the user clicks the home button then relaunch the application (like opening from the beginning), I want to see the ChildActivity instead of MainActivity that is launched. However; This is happening only when the user clicks from recent activities window. (the window opened when you long press the home button) I had some suggestions actually work arounds and I tried to manipulate onStart, onRestart, onResume, onStop, onDestroy events. But, they didn't fully solve the problem. There should be a smart way out there. By the way; I don't think my code has a specific problem to generate this error/feature. Because, I created a test project and tried standalone before sending the question and faced the same problem. Anyhow, here is the test code. Thank you. public class MainActivity extends Activity implements OnClickListener { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.setTitle("MainActivity"); ((Button) findViewById (R.id.btnChildActivity)).setOnClickListener(this); } @Override public void onClick(View arg0) { // TODO Auto-generated method stub startActivity(new Intent(this, ChildActivity.class)); } } public class ChildActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main2); this.setTitle("ChildActivity"); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Long Click Event of Button
Hello all, I have a problem. I use Click and Long Click Event in a button. Everything's seems fine. However; whenever a user long click the button, the click event also triggers. I couldn't find what I am doing wrong. On the other hand, I noticed something might highly relevant showDialog function returns before the user selects in the popup menu. this is the long click function: @Override public boolean onLongClick(View view) { if(SMBGuesstheNumber.bDisplayFlagList) { theActiveButton = (Button) view; showDialog(R.id.display_flaglist); } return false; } and this is the dialog handler: case R.id.display_flaglist: AlertDialog listdialog = new AlertDialog.Builder (GfxGuesstheNumber.this) .setIcon(R.drawable.droid) .setTitle(R.string.dialog_flaglist) .setItems(R.array.entries_flaglist, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { switch(whichButton){ case 0: theActiveButton.setTextColor(Color.BLACK); break; case 1: theActiveButton.setTextColor(Color.GREEN); break; case 2: theActiveButton.setTextColor(Color.YELLOW); break; case 3: theActiveButton.setTextColor(Color.RED); break; } } }) .create(); return listdialog; Any comment will be helpful. Thank you, Omer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---