[android-developers] Home screen Widget moves during android boot process.
Home screen Widget moves during android boot process. My application home screen widget moves during android boot up process. How does the Android Framework handles? Is there any way to fix the 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
[android-developers] Re: Android "java.util.BitSet" in ICS vs "Ginger Bread"
@Lew - I changed the set values using static method rather than using instance method. It does't work. It's something do with Java version compatibility in ICS vs. GB. First of all i see difference in Object it's self comparing ICS to GB. See the below code On Feb 15, 11:21 pm, Lew wrote: > I don't know why you needed to change the constructor, but I'm quite sure > that > you shouldn't use an instance method to set values in a static variable. > > -- > Lew > > > > > > > > On Wednesday, February 15, 2012 10:27:05 PM UTC-8, Subba wrote: > > > My application uses Java BitSet API, i never had problem with in > > Android Ginger Bread and below version. All of sudden Android Ice > > Cream Sandwich, it giving wrong results. > > > code: > > > public class BitTracker > > { > > private static BitSet m_FileIds = new BitSet(65535); > > > private void init() > > { > > for(int i=0; i<=63; i++) > > { > > m_FileIds.set(i); > > } > > } > > > public int GetUnUsedId() > > { > > int iUnusedId = m_FileIds.nextClearBit(1); > > > return iUnusedId; > > } > > } > > > BitTracker tracker = new BitTracker(); > > tracker.init(); > > int unusedID = tracker.GetUnUsedId(); > > > //In ICS unusedID returns "65536" > > > //In GingerBread unusedID returns "64" > > > I am able to fix the issue by changing this line > > > private static BitSet m_FileIds = new BitSet(65535); //old one > > > private static BitSet m_FileIds = new BitSet(); //new one > > > It seems to be working. I still can't understand what's deal with ICS > > vs. GingerBread.. Is there any Java compatible version difference in > > android ICS vs. GB or below versions..Curious to know.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Android "java.util.BitSet" in ICS vs "Ginger Bread"
My application uses Java BitSet API, i never had problem with in Android Ginger Bread and below version. All of sudden Android Ice Cream Sandwich, it giving wrong results. code: public class BitTracker { private static BitSet m_FileIds = new BitSet(65535); private void init() { for(int i=0; i<=63; i++) { m_FileIds.set(i); } } public int GetUnUsedId() { int iUnusedId = m_FileIds.nextClearBit(1); return iUnusedId; } } BitTracker tracker = new BitTracker(); tracker.init(); int unusedID = tracker.GetUnUsedId(); //In ICS unusedID returns "65536" //In GingerBread unusedID returns "64" I am able to fix the issue by changing this line private static BitSet m_FileIds = new BitSet(65535); //old one private static BitSet m_FileIds = new BitSet(); //new one It seems to be working. I still can't understand what's deal with ICS vs. GingerBread.. Is there any Java compatible version difference in android ICS vs. GB or below versions..Curious to know.. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 hide three-dot indicator(Option menu indicator) on ICS handsets?
Issue create here. http://code.google.com/p/android/issues/detail?id=25387 On Feb 9, 9:33 pm, Zsolt Vasvari wrote: > If that's the case, it's a bug. Report it on b.android.com > > On Feb 10, 7:19 am, Subba wrote: > > > > > > > > > It seem like there is no way to remove/hideoverflow button on certain > > screen not using this attribute "android:targetSdkVersion="14"" > > manifest. > > On preference activities overflow button shows even though there are > > no options. > > > On Feb 9, 2:39špm, Kostya Vasilyev wrote: > > > > Take the dive and actually start using the Holo theme for Android 3.0 and > > > above? > > > š10.02.2012 2:25 ÐÏÌØÚÏ×ÁÔÅÌØ "Subba" ÎÁÐÉÓÁÌ: > > > > > Any suggestions please..? > > > > > On Feb 9, 12:09 pm, Subba wrote: > > > > > Thanks Mark for the reply. > > > > > > Adding android:targetSdkVersion="14" in manifest it works. However > > > > > don't wanthide/removethreedotsbutton on all screens . Only in > > > > > preference activities don't want to show thisthreedotsbutton. > > > > > > On Feb 9, 4:10 am, Mark Murphy wrote: > > > > > > > On Thu, Feb 9, 2012 at 1:46 AM, Subba wrote: > > > > > > > How to disable/hidethree-dotindicator(Option menu indicator) on > > > > > > > ICS > > > > > > > handsets? > > > > > > > > I am running application as > > > > > > > in > > > > > > > Manifest, code is compiled with 4.0.Three-dotindicator shows on > > > > > > > every screen. > > > > > > > Add android:targetSdkVersion="11" (or higher) to your > > > > element. > > > > > > > -- > > > > > > Mark Murphy (a Commons Guy)http://commonsware.com| > > > >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > > > > Android 4.0 Programming Books:http://commonsware.com/books > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscr...@googlegroups.com > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en-Hidequoted 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: How to hide three-dot indicator(Option menu indicator) on ICS handsets?
It seem like there is no way to remove/hide overflow button on certain screen not using this attribute "android:targetSdkVersion="14"" manifest. On preference activities overflow button shows even though there are no options. On Feb 9, 2:39 pm, Kostya Vasilyev wrote: > Take the dive and actually start using the Holo theme for Android 3.0 and > above? > 10.02.2012 2:25 пользователь "Subba" написал: > > > > > > > > > Any suggestions please..? > > > On Feb 9, 12:09 pm, Subba wrote: > > > Thanks Mark for the reply. > > > > Adding android:targetSdkVersion="14" in manifest it works. However > > > don't want hide/remove three dots button on all screens . Only in > > > preference activities don't want to show this three dots button. > > > > On Feb 9, 4:10 am, Mark Murphy wrote: > > > > > On Thu, Feb 9, 2012 at 1:46 AM, Subba wrote: > > > > > How to disable/hidethree-dotindicator(Option menu indicator) on ICS > > > > > handsets? > > > > > > I am running application as in > > > > > Manifest, code is compiled with 4.0.Three-dotindicator shows on > > > > > every screen. > > > > > Add android:targetSdkVersion="11" (or higher) to your > > element. > > > > > -- > > > > Mark Murphy (a Commons Guy)http://commonsware.com| > >http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > > Android 4.0 Programming Books:http://commonsware.com/books > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to hide three-dot indicator(Option menu indicator) on ICS handsets?
Any suggestions please..? On Feb 9, 12:09 pm, Subba wrote: > Thanks Mark for the reply. > > Adding android:targetSdkVersion="14" in manifest it works. However > don't want hide/remove three dots button on all screens . Only in > preference activities don't want to show this three dots button. > > On Feb 9, 4:10 am, Mark Murphy wrote: > > > > > > > > > On Thu, Feb 9, 2012 at 1:46 AM, Subba wrote: > > > How to disable/hidethree-dotindicator(Option menu indicator) on ICS > > > handsets? > > > > I am running application as in > > > Manifest, code is compiled with 4.0.Three-dotindicator shows on > > > every screen. > > > Add android:targetSdkVersion="11" (or higher) to your element. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > Android 4.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to hide three-dot indicator(Option menu indicator) on ICS handsets?
Thanks Mark for the reply. Adding android:targetSdkVersion="14" in manifest it works. However don't want hide/remove three dots button on all screens . Only in preference activities don't want to show this three dots button. On Feb 9, 4:10 am, Mark Murphy wrote: > On Thu, Feb 9, 2012 at 1:46 AM, Subba wrote: > > How to disable/hidethree-dotindicator(Option menu indicator) on ICS > > handsets? > > > I am running application as in > > Manifest, code is compiled with 4.0.Three-dotindicator shows on > > every screen. > > Add android:targetSdkVersion="11" (or higher) to your element. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android 4.0 Programming Books:http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to hide three-dot indicator(Option menu indicator) on ICS handsets?
How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets? How to disable/hide three-dot indicator(Option menu indicator) on ICS handsets. I am running application as in Manifest, code is compiled with 4.0. Three-dot indicator shows on every screen. Example for preference activities i don't want show Three-dot indicator, since it does't have any menu options. Any body can suggest..better way to remove/hide three-dot indicator.? I still want to use three-dot indicator in some activities not in preference activities. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: SMS Broadcastreceiver not received when GO SMS Pro installed
Any luck on this issue? am facing the same issue... On Jul 3, 9:44 pm, Android Geek wrote: > I have implemented an SMS receiver which intercepts incoming SMS > messages without any issues. However, when I install GO SMS Pro and > set "Disable other message notification", then my app does not receive > any broadcast message even though I have set the priority on intent > filter very high. Is there a way to overcome so that my app always > receive a SMS broadcast irrespective of what user does on Go SMS Pro's > app, especially since my app does not show any UI pop-up notification? > As soon as I uninstall GO SMS Pro, my app starts getting incoming SMS > broadcasts and works fine. > > Here is the log when an incoming SMS is received and GO SMS Pro is > installed. There is some magic done by GO SMS Pro which I don't > understand. Can someone explain what is done here and how can I make > sure my app does get ordered broadcast notification every time? > > 07-02 19:52:21.674: INFO/Zygote(25209): Zygote: pid 25209 has INTERNET > permission, then set capability for CAP_NET_RAW > > 07-02 19:52:21.820: INFO/ActivityThread(25209): Publishing provider go- > sms: com.jb.gosms.provider.GoSmsProvider > > 07-02 19:52:21.830: INFO/ActivityThread(25209): Publishing provider go- > mms-sms: com.jb.gosms.provider.GoMmsSmsProvider > > 07-02 19:52:21.834: INFO/ActivityThread(25209): Publishing provider > com.jb.gosms.im;com.jb.gosms.chat: > com.jb.gosms.im.database.ImContentProvider > > 07-02 19:52:21.842: INFO/ActivityThread(25209): Publishing provider > com.jb.gosms.schedule.Schedule: com.jb.gosms.schedule.ScheduleProvider > > 07-02 19:52:21.846: INFO/ActivityThread(25209): Publishing provider go- > mms: com.jb.gosms.provider.GoMmsProvider > > 07-02 19:52:21.959: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 2657 > objects / 173112 bytes in 30ms > > 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Trying to load lib /data/ > data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70 > > 07-02 19:52:22.182: DEBUG/dalvikvm(25209): Added shared lib /data/data/ > com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70 > > 07-02 19:52:22.182: DEBUG/dalvikvm(25209): No JNI_OnLoad found in / > data/data/com.jb.gosms/lib/libHanzi2Pinyin.so 0x47d4cf70, skipping > init > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib in > ver=3141000 > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init in > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): file size=155203 > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Init out > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): Instance out Init > = 21 > > 07-02 19:52:22.186: INFO/Hanzi2Pinyin_Native(25209): InitLib out > > 07-02 19:52:22.467: DEBUG/dalvikvm(25209): GC_FOR_MALLOC freed 5960 > objects / 376104 bytes in 29ms > > 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): > IMSLogcreateFromPdu : calling parsePdu > > 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogpdu to > parse : > 02100202070292A106A85A0008150003100730010610254E9D3A000306110702195220 > > 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): > IMSLogparseAddress > > 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogaddress > received :3233292992 > > 07-02 19:52:22.815: DEBUG/IMS/Ims3GPP2SmsMessage(25209): IMSLogbearer > data received : 0003100730010610254E9D3A000306110702195220 > > 07-02 19:52:22.815: ERROR/bearer data(25209): bearer data obtained 1 > > 07-02 19:52:22.815: DEBUG/EMS(25209): messageType is 1 messageId is > 115 hasUserDataHeader is false > > 07-02 19:52:22.858: DEBUG/IMS/Ims3GPP2SmsMessage(25209): > IMSLogcreateFromPdu : calling parsePdu > > 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
[android-developers] Re: How to clear activity stack
Doug, I followed the document all the cases it works. However when ever i launch home screen from my app, activity stack remembers old activities(B,A), if i launch again the application using launcher, i am not able fix that. Please suggest. On Jan 16, 10:41 pm, Doug wrote: > On Jan 16, 8:06 pm, Subba wrote: > > > My application has two activities A, B. > > > Initially application launches with A activity(root activity), and > > then it launches the B activity and finishes A activity. Now B > > activity on the foreground. > > User pressed Home Button on B activity it launches HOME Screen, user > > launches the application it launches A activity(intentional) and on > > the background B activity still there. > > When user presses back (finish() method call) on A activity it goes to > > B activity. > > Is there any way toclearthe activitystacktrace when application > > launches again i want toclearthe B activity from activitystackif > > it exists. > > > Any suggestions please...? > > http://developer.android.com/guide/topics/fundamentals.html#clearstack > > Memorize this document or revisit it regularly. > > Doug -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 clear activity stack
My application has two activities A, B. Initially application launches with A activity(root activity), and then it launches the B activity and finishes A activity. Now B activity on the foreground. User pressed Home Button on B activity it launches HOME Screen, user launches the application it launches A activity(intentional) and on the background B activity still there. When user presses back (finish() method call) on A activity it goes to B activity. Is there any way to clear the activity stack trace when application launches again i want to clear the B activity from activity stack if it exists. Any suggestions please...? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Widget problems after application update.
In Nexus one Widget gets properly updated even after application update, issue fixed 2.2 version. In 2.1 devices widget still shows wrong title, even after modifying the layout in updated apk file. Is there any work around for 2.1 devices? Please suggest. On Jul 29, 4:24 pm, Subba wrote: > Kostya, > > updateMessageCount does based on count it basically hides the count > container view, if count > 0 it displays the count. > > In the first post i mentioned updateMessageCount signature wrong. Here > is the code. > > updateMessageCount( Context context, int count, RemoteViews > views) > { > > if( count > 0 ) > { > String text = ""+count; > views.setViewVisibility(R.id.counter_container,View.VISIBLE); > views.setTextViewText(R.id.counter_text, text); > }else > { > views.setViewVisibility(R.id.counter_container,View.INVISIBLE); > } > > } > > In the updated version apk file i try to set the application > title in count > 0 loop, it throws the android.widget.RemoteViews > $ActionException: can't find view: 0x7f0b004e. Below is the stack > trace > > if( count > 0 ) > { > String text = ""+count; > views.setViewVisibility(R.id.counter_container,View.VISIBLE); > views.setTextViewText(R.id.app_name_text, "testapp"); > views.setTextViewText(R.id.counter_text, text); > } > > W/AppWidgetHostView( 185): updateAppWidget couldn't find any view, > using error view > W/AppWidgetHostView( 185): android.widget.RemoteViews > $ActionException: can't find view: 0x7f0b004e > W/AppWidgetHostView( 185): at android.widget.RemoteViews > $ReflectionAction.apply(RemoteViews.java:427) > W/AppWidgetHostView( 185): at > android.widget.RemoteViews.performApply(RemoteViews.java:925) > W/AppWidgetHostView( 185): at > android.widget.RemoteViews.apply(RemoteViews.java:902) > W/AppWidgetHostView( 185): at > android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java: > 208) > W/AppWidgetHostView( 185): at > com.htc.launcher.LauncherAppWidgetHostView.updateAppWidget(LauncherAppWidgetHostView.java: > 116) > W/AppWidgetHostView( 185): at > android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java: > 243) > W/AppWidgetHostView( 185): at android.appwidget.AppWidgetHost > $UpdateHandler.handleMessage(AppWidgetHost.java:72) > W/AppWidgetHostView( 185): at > android.os.Handler.dispatchMessage(Handler.java:99) > W/AppWidgetHostView( 185): at android.os.Looper.loop(Looper.java: > 123) > W/AppWidgetHostView( 185): at > android.app.ActivityThread.main(ActivityThread.java:4595) > W/AppWidgetHostView( 185): at > java.lang.reflect.Method.invokeNative(Native Method) > W/AppWidgetHostView( 185): at > java.lang.reflect.Method.invoke(Method.java:521) > W/AppWidgetHostView( 185): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:860) > W/AppWidgetHostView( 185): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) > W/AppWidgetHostView( 185): at dalvik.system.NativeStart.main(Native > Method) > > On Jul 29, 3:58 pm, Kostya Vasilyev wrote: > > > What does updateMessageCount do? Post simplified source. > > > -- > > Kostya Vasilyev --http://kmansoft.wordpress.com > > > 30.07.2010 2:48 пользователь "Subba" написал: > > > Any help or suggestions? > > > On Jul 28, 6:28 pm, Subba wrote:> Application > > haswidgetwhich basically shows the number of new message > > > count in thewidget.Widgethas title and Count.When application gets > > > updated,widgettitle gets replaced with message count, and some times > > > it shows problem loadingwidget. seems like R value not updated after > > > app update. However user removes the application or reboot the > > > phonewidgeticon shows properly. Is there any way to fix the issue? > > > > Any suggestions.Here is the sample code > > > > public void onReceive(Context context, Intent inten... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Widget problems after application update.
In Nexus one widget issue is be fixed. However in HTC Hero 2.1 widget issue still there even after adding linear layout to the widget. Any other workarounds for 2.1 devices? Seems like OEM is catching widget layout resource Ids, it's not updating resources. On Jul 29, 4:24 pm, Subba wrote: > Kostya, > > updateMessageCount does based on count it basically hides the count > container view, if count > 0 it displays the count. > > In the first post i mentioned updateMessageCount signature wrong. Here > is the code. > > updateMessageCount( Context context, int count, RemoteViews > views) > { > > if( count > 0 ) > { > String text = ""+count; > views.setViewVisibility(R.id.counter_container,View.VISIBLE); > views.setTextViewText(R.id.counter_text, text); > }else > { > views.setViewVisibility(R.id.counter_container,View.INVISIBLE); > } > > } > > In the updated version apk file i try to set the application > title in count > 0 loop, it throws the android.widget.RemoteViews > $ActionException: can't find view: 0x7f0b004e. Below is the stack > trace > > if( count > 0 ) > { > String text = ""+count; > views.setViewVisibility(R.id.counter_container,View.VISIBLE); > views.setTextViewText(R.id.app_name_text, "testapp"); > views.setTextViewText(R.id.counter_text, text); > } > > W/AppWidgetHostView( 185): updateAppWidget couldn't find any view, > using error view > W/AppWidgetHostView( 185): android.widget.RemoteViews > $ActionException: can't find view: 0x7f0b004e > W/AppWidgetHostView( 185): at android.widget.RemoteViews > $ReflectionAction.apply(RemoteViews.java:427) > W/AppWidgetHostView( 185): at > android.widget.RemoteViews.performApply(RemoteViews.java:925) > W/AppWidgetHostView( 185): at > android.widget.RemoteViews.apply(RemoteViews.java:902) > W/AppWidgetHostView( 185): at > android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java: > 208) > W/AppWidgetHostView( 185): at > com.htc.launcher.LauncherAppWidgetHostView.updateAppWidget(LauncherAppWidgetHostView.java: > 116) > W/AppWidgetHostView( 185): at > android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java: > 243) > W/AppWidgetHostView( 185): at android.appwidget.AppWidgetHost > $UpdateHandler.handleMessage(AppWidgetHost.java:72) > W/AppWidgetHostView( 185): at > android.os.Handler.dispatchMessage(Handler.java:99) > W/AppWidgetHostView( 185): at android.os.Looper.loop(Looper.java: > 123) > W/AppWidgetHostView( 185): at > android.app.ActivityThread.main(ActivityThread.java:4595) > W/AppWidgetHostView( 185): at > java.lang.reflect.Method.invokeNative(Native Method) > W/AppWidgetHostView( 185): at > java.lang.reflect.Method.invoke(Method.java:521) > W/AppWidgetHostView( 185): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:860) > W/AppWidgetHostView( 185): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) > W/AppWidgetHostView( 185): at dalvik.system.NativeStart.main(Native > Method) > > On Jul 29, 3:58 pm, Kostya Vasilyev wrote: > > > What does updateMessageCount do? Post simplified source. > > > -- > > Kostya Vasilyev --http://kmansoft.wordpress.com > > > 30.07.2010 2:48 пользователь "Subba" написал: > > > Any help or suggestions? > > > On Jul 28, 6:28 pm, Subba wrote:> Application > > haswidgetwhich basically shows the number of new message > > > count in thewidget.Widgethas title and Count.When application gets > > > updated,widgettitle gets replaced with message count, and some times > > > it shows problem loadingwidget. seems like R value not updated after > > > app update. However user removes the application or reboot the > > > phonewidgeticon shows properly. Is there any way to fix the issue? > > > > Any suggestions.Here is the sample code > > > > public void onReceive(Context context, Intent inten... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Widget problems after application update.
Kostya, updateMessageCount does based on count it basically hides the count container view, if count > 0 it displays the count. In the first post i mentioned updateMessageCount signature wrong. Here is the code. updateMessageCount( Context context, int count, RemoteViews views) { if( count > 0 ) { String text = ""+count; views.setViewVisibility(R.id.counter_container,View.VISIBLE); views.setTextViewText(R.id.counter_text, text); }else { views.setViewVisibility(R.id.counter_container,View.INVISIBLE); } } In the updated version apk file i try to set the application title in count > 0 loop, it throws the android.widget.RemoteViews $ActionException: can't find view: 0x7f0b004e. Below is the stack trace if( count > 0 ) { String text = ""+count; views.setViewVisibility(R.id.counter_container,View.VISIBLE); views.setTextViewText(R.id.app_name_text, "testapp"); views.setTextViewText(R.id.counter_text, text); } W/AppWidgetHostView( 185): updateAppWidget couldn't find any view, using error view W/AppWidgetHostView( 185): android.widget.RemoteViews $ActionException: can't find view: 0x7f0b004e W/AppWidgetHostView( 185): at android.widget.RemoteViews $ReflectionAction.apply(RemoteViews.java:427) W/AppWidgetHostView( 185): at android.widget.RemoteViews.performApply(RemoteViews.java:925) W/AppWidgetHostView( 185): at android.widget.RemoteViews.apply(RemoteViews.java:902) W/AppWidgetHostView( 185): at android.appwidget.AppWidgetHostView.updateAppWidget(AppWidgetHostView.java: 208) W/AppWidgetHostView( 185): at com.htc.launcher.LauncherAppWidgetHostView.updateAppWidget(LauncherAppWidgetHostView.java: 116) W/AppWidgetHostView( 185): at android.appwidget.AppWidgetHost.updateAppWidgetView(AppWidgetHost.java: 243) W/AppWidgetHostView( 185): at android.appwidget.AppWidgetHost $UpdateHandler.handleMessage(AppWidgetHost.java:72) W/AppWidgetHostView( 185): at android.os.Handler.dispatchMessage(Handler.java:99) W/AppWidgetHostView( 185): at android.os.Looper.loop(Looper.java: 123) W/AppWidgetHostView( 185): at android.app.ActivityThread.main(ActivityThread.java:4595) W/AppWidgetHostView( 185): at java.lang.reflect.Method.invokeNative(Native Method) W/AppWidgetHostView( 185): at java.lang.reflect.Method.invoke(Method.java:521) W/AppWidgetHostView( 185): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) W/AppWidgetHostView( 185): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) W/AppWidgetHostView( 185): at dalvik.system.NativeStart.main(Native Method) On Jul 29, 3:58 pm, Kostya Vasilyev wrote: > What does updateMessageCount do? Post simplified source. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 30.07.2010 2:48 пользователь "Subba" написал: > > Any help or suggestions? > > On Jul 28, 6:28 pm, Subba wrote:> Application > haswidgetwhich basically shows the number of new message > > count in thewidget.Widgethas title and Count.When application gets > > updated,widgettitle gets replaced with message count, and some times > > it shows problem loadingwidget. seems like R value not updated after > > app update. However user removes the application or reboot the > > phonewidgeticon shows properly. Is there any way to fix the issue? > > > > > Any suggestions.Here is the sample code > > > public void onReceive(Context context, Intent inten... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Widget problems after application update.
Any help or suggestions? On Jul 28, 6:28 pm, Subba wrote: > Application haswidgetwhich basically shows the number of new message > count in thewidget.Widgethas title and Count.When application gets > updated,widgettitle gets replaced with message count, and some times > it shows problem loadingwidget. seems like R value not updated after > app update. However user removes the application or reboot the > phonewidgeticon shows properly. Is there any way to fix the issue? > > Any suggestions.Here is the sample code > > public void onReceive(Context context, Intent intent) { > > String action = intent.getAction(); > > if( AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action) ) > { > int layoutID = R.layout.WidgetLayout; > int[] ids = > intent.getIntArrayExtra( AppWidgetManager.EXTRA_APPWIDGET_IDS ); > > for (int i=0; i { > int appWidgetId = ids[i]; > > RemoteViews views = new > RemoteViews(context.getPackageName(), > layoutID ); > updateMessageCount(count); > AppWidgetManager manager = > AppWidgetManager.getInstance( context ); > manager.updateAppWidget(appWidgetId, views); > } > > } > } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Widget problems after application update.
Application has widget which basically shows the number of new message count in the widget. Widget has title and Count.When application gets updated, widget title gets replaced with message count, and some times it shows problem loading widget. seems like R value not updated after app update. However user removes the application or reboot the phone widget icon shows properly. Is there any way to fix the issue? Any suggestions.Here is the sample code public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if( AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action) ) { int layoutID = R.layout.WidgetLayout; int[] ids = intent.getIntArrayExtra( AppWidgetManager.EXTRA_APPWIDGET_IDS ); for (int i=0; ihttp://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Web view Event
Can you explain how it will work. can you give an example.? On Jan 26, 9:16 am, Michael blah wrote: > i went old school when doing something similar.. cookies and query > strings.. since the user never sees either it worked fine for me.. > > > > On Tue, Jan 26, 2010 at 11:40 AM, Subba wrote: > > Hi, > > I am developing an application which requires cancellation survey > > when user tries to deactivate application service. Cancellation survey > > i am using the third party survey software > >http://wufoo.com/gallery/templates/surveys/cancellation-survey/. > > > I am able to render the survey (third party html) web view in my > > activity.When ever the user presses submit button on WebView, activity > > need to store the status of survey(like user successfully submitted > > or not). Is there any way to detect the event from web view? > > > Please any suggestions...? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Web view Event
Hi, I am developing an application which requires cancellation survey when user tries to deactivate application service. Cancellation survey i am using the third party survey software http://wufoo.com/gallery/templates/surveys/cancellation-survey/. I am able to render the survey (third party html) web view in my activity.When ever the user presses submit button on WebView, activity need to store the status of survey(like user successfully submitted or not). Is there any way to detect the event from web view? Please any suggestions...? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Rating Bar Dialog API
I know Market application has Rating Bar Dialog. Is there any API to create Rating Bar Dialog in Android SDK 1.5 or 1.6.? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add Google Maps library, Maps to the Android 1.5 version device?
Thanks. I was able to install Maps library and Maps application in my device. On Jun 1, 6:27 pm, XC He wrote: > Try adb remount > > XC He > 2009/6/2 Subba > > > > > I extracted com.google.android.map.jar and com.google.android.map.xml > > and Map.apk files from the another development device which has google > > maps in it. > > > I started with following procedure.. > > > 1. adb -d shell > > > 2. # mount -o rw -t yaffs2 /dev/block/mtdblock3 /system > > mount -o rw -t yaffs2 /dev/block/mtdblock3 /system > > mount: Device or resource busy > > > I can't copy the above files to the /system/framework/ , /system/etc/ > > permissions/ , and /system/app to these directories. > > > C:\>adb -d push C:\GoogleMAPS\Maps.apk /system/framework/ > > failed to copy 'C:\GoogleMAPS\Maps.apk' to '/system/framework// > > Maps.apk': Read-only file system > > > Is there any way to change the system image to Read write mode.? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 add Google Maps library, Maps to the Android 1.5 version device?
I extracted com.google.android.map.jar and com.google.android.map.xml and Map.apk files from the another development device which has google maps in it. I started with following procedure.. 1. adb -d shell 2. # mount -o rw -t yaffs2 /dev/block/mtdblock3 /system mount -o rw -t yaffs2 /dev/block/mtdblock3 /system mount: Device or resource busy I can't copy the above files to the /system/framework/ , /system/etc/ permissions/ , and /system/app to these directories. C:\>adb -d push C:\GoogleMAPS\Maps.apk /system/framework/ failed to copy 'C:\GoogleMAPS\Maps.apk' to '/system/framework// Maps.apk': Read-only file system Is there any way to change the system image to Read write mode.? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---