Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
Congratulations, James. Note: you can merge the broadcast receiver with your AppWidgetProvider, same one that handles APPWIDGET_UPDATE. -- Kostya 08.06.2010 15:18, cellurl пишет: I got it working. I tossed my version and started with a copy of ApiDemos, adding code below. One interesting observation: ApiDemos.apk actually contains three things. Widget: Shortcut: App: The shortcut and app point to different starting points ;-) Thanks all for holding my hand. jp public class ExampleBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (action.equals(org.jamesp.gpscruise.UpdateWidgetAction)) ... public class StatusBarNotifications extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //Uri uri = Uri.parse(55); //Intent intent = new Intent(org.jamesp.gpscruise.UpdateWidgetAction, uri); Intent intent = new Intent(org.jamesp.gpscruise.UpdateWidgetAction); sendBroadcast(intent); receiver android:name=.appwidget.ExampleBroadcastReceiver android:enabled=true intent-filter action android:name=org.jamesp.gpscruise.UpdateWidgetAction / /intent-filter /receiver -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
Mark, et al Thanks for that. Perhaps not the best way, but I am still trying to get the Intent-Method to work. Aside: In experimenting, I can receive android.intent.action.PHONE_STATE (but not my broadcast). The app sends the Intent, but the widget never shows Log.d() in MyIntentReceiver.java. Q: Do I need the meta tag? Q: Do I need a permissions tag? Thanks for continued help. jp ---status bar app public class StatusBarNotifications extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.status_bar_notifications); Uri uri = Uri.parse(55); Intent intent = new Intent(org.jamesp.gpscruise.UpdateWidgetAction, uri); sendBroadcast(intent); --widget --(Manifest, MyIntentReceiver.java)- receiver android:name=.MyIntentReceiver android:label=@string/widget_name intent-filter action android:name=org.jamesp.gpscruise.UpdateWidgetAction / /intent-filter /receiver public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Log.d(TAG,MyIntentReceiver: onUpdate()); } @Override public void onReceive(Context context, Intent intent) { Log.d(TAG,MyIntentReceiver: onReceive); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
oops. last email missing this code.--- public class MyIntentReceiver extends BroadcastReceiver { public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { Log.d(TAG,MyIntentReceiver: onUpdate()); } @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub Log.d(TAG,MyIntentReceiver: onReceive); } } -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
Thanks for continued help. I now have two items, a status-bar app which calculates speed limit, and a widget which [should] receive the new speed limit(s). I don't think I can use ACTION_APPWIDGET_UPDATE outside the widget?? Any comments welcomed. jp status bar app- Uri uri = Uri.parse(55); Intent intent = new Intent(Intent.ACTION_APPWIDGET_UPDATE, uri); sendBroadcast(intent); widget app-- receiver android:name=.WordWidget android:label=@string/widget_name intent-filter action android:name=android.appwidget.action.APPWIDGET_UPDATE / /intent-filter meta-data android:name=android.appwidget.provider android:resource=@xml/widget_word / /receiver -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
james pruett wrote: Thanks for continued help. I now have two items, a status-bar app which calculates speed limit, and a widget which [should] receive the new speed limit(s). I don't think I can use ACTION_APPWIDGET_UPDATE outside the widget?? You don't need ACTION_APPWIDGET_UPDATE. Just update the app widget (create RemoteViews, fill in the data, tell a AppWidgetManager to updateAppWidget()). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
On Tue, Jun 1, 2010 at 11:07 PM, james pruett gpscru...@gmail.com wrote: I don't suppose any of you guys would write this for me? Sure - how much are you willing to pay? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
100%, You can publish it if you want on your market. Don't share your dreams with people who can only offer Why bother? Share your dreams, instead, with the people who offer you a Why NOT? @ThatKevinSmith On Wed, Jun 2, 2010 at 9:44 AM, TreKing treking...@gmail.com wrote: On Tue, Jun 1, 2010 at 11:07 PM, james pruett gpscru...@gmail.com wrote: I don't suppose any of you guys would write this for me? Sure - how much are you willing to pay? - TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
James, The 30 minute limit only applies to automatic updates scheduled by using the widget .xml desciptor. Your widget provider can update its widgets (using the usual mechanism of RemoteViews) any time it wants. For example, in response to some other broadcast. In my application, this happens when in response to WiFi state changes. In yours, it could be something else. -- Kostya 01.06.2010 5:33, james pruett ?: Are you saying widgets can update faster than 30minutes? Polling? public int updatePeriodMillis Since: API Level 3 http://developer.android.com/guide/appendix/api-levels.html#level3 How often, in milliseconds, that this AppWidget wants to be updated. The AppWidget manager may place a limit on how often a AppWidget is updated. This field corresponds to the |android:updatePeriodMillis| attribute in the AppWidget meta-data file. *Note:* Updates requested with |updatePeriodMillis| will not be delivered more than once every 30 minutes. On Mon, May 31, 2010 at 10:03 AM, niko20 nikolatesl...@yahoo.com mailto:nikolatesl...@yahoo.com wrote: You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an app - have an app that runs and puts a small icon in the notification bar, and if that app is running then the widget updates more frequently. The app is invisible except for the notification bar. When you pull down the bar and click on the app it can open and you can then turn it off from in the app, and then have the widget not update anymore. -niko On May 31, 7:39 am, TreKing treking...@gmail.com mailto:treking...@gmail.com wrote: On Sun, May 30, 2010 at 3:04 PM, cellurl gpscru...@gmail.com mailto:gpscru...@gmail.com wrote: Can an app not be full-screen? Yes - check out themes, specifically the dialog theme. E.g. can I make a postage size app? I don't know if there are limits on the size, but probably. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking http://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com mailto:android-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
To update you widget faster than every 30 minutes instead of using updatePeriodMillis you can use the AlarmManager, which will fire your BroadcastReceiver every X ms. YuviDroid On Tue, Jun 1, 2010 at 3:33 AM, james pruett gpscru...@gmail.com wrote: Are you saying widgets can update faster than 30minutes? Polling? public int updatePeriodMillis Since: API Level 3http://developer.android.com/guide/appendix/api-levels.html#level3 How often, in milliseconds, that this AppWidget wants to be updated. The AppWidget manager may place a limit on how often a AppWidget is updated. This field corresponds to the android:updatePeriodMillis attribute in the AppWidget meta-data file. *Note:* Updates requested with updatePeriodMillis will not be delivered more than once every 30 minutes. On Mon, May 31, 2010 at 10:03 AM, niko20 nikolatesl...@yahoo.com wrote: You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an app - have an app that runs and puts a small icon in the notification bar, and if that app is running then the widget updates more frequently. The app is invisible except for the notification bar. When you pull down the bar and click on the app it can open and you can then turn it off from in the app, and then have the widget not update anymore. -niko On May 31, 7:39 am, TreKing treking...@gmail.com wrote: On Sun, May 30, 2010 at 3:04 PM, cellurl gpscru...@gmail.com wrote: Can an app not be full-screen? Yes - check out themes, specifically the dialog theme. E.g. can I make a postage size app? I don't know if there are limits on the size, but probably. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- YuviDroid http://android.yuvalsharon.net -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
I don't suppose any of you guys would write this for me? It will take me 2months and still look like scheit jp wikispeedia.org -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
[android-beginners] Re: Can a full app (not widget) be postage stamp size?
You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an app - have an app that runs and puts a small icon in the notification bar, and if that app is running then the widget updates more frequently. The app is invisible except for the notification bar. When you pull down the bar and click on the app it can open and you can then turn it off from in the app, and then have the widget not update anymore. -niko On May 31, 7:39 am, TreKing treking...@gmail.com wrote: On Sun, May 30, 2010 at 3:04 PM, cellurl gpscru...@gmail.com wrote: Can an app not be full-screen? Yes - check out themes, specifically the dialog theme. E.g. can I make a postage size app? I don't know if there are limits on the size, but probably. - TreKing - Chicago transit tracking app for Android-powered deviceshttp://sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
thanks for that. A couple questions. Q1. I would have to have widget-updates every second (only when moving of course). Is that possible? Q2. Is there any sample code that shows how to tie an app to widget to get fast updates you mentioned? So I am guessing the theme approach isn't quite what I want, since it is still creates a single app which isn't desirable I always wanted the widget concept, but I positively must have updates 5seconds. thanks guys! jp On Mon, May 31, 2010 at 10:03 AM, niko20 nikolatesl...@yahoo.com wrote: You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an app - have an app that runs and puts a small icon in the notification bar, and if that app is running then the widget updates more frequently. The app is invisible except for the notification bar. When you pull down the bar and click on the app it can open and you can then turn it off from in the app, and then have the widget not update anymore. -niko On May 31, 7:39 am, TreKing treking...@gmail.com wrote: On Sun, May 30, 2010 at 3:04 PM, cellurl gpscru...@gmail.com wrote: Can an app not be full-screen? Yes - check out themes, specifically the dialog theme. E.g. can I make a postage size app? I don't know if there are limits on the size, but probably. - TreKing - Chicago transit tracking app for Android-powered deviceshttp:// sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en
Re: [android-beginners] Re: Can a full app (not widget) be postage stamp size?
Are you saying widgets can update faster than 30minutes? Polling? public int updatePeriodMillis Since: API Level 3http://developer.android.com/guide/appendix/api-levels.html#level3 How often, in milliseconds, that this AppWidget wants to be updated. The AppWidget manager may place a limit on how often a AppWidget is updated. This field corresponds to the android:updatePeriodMillis attribute in the AppWidget meta-data file. *Note:* Updates requested with updatePeriodMillis will not be delivered more than once every 30 minutes. On Mon, May 31, 2010 at 10:03 AM, niko20 nikolatesl...@yahoo.com wrote: You can make it small, but I believe it will capture all focus, so even if you see other apps you wont be able to interact with them. I'd think a widget work work...but yes the polling would have to be rather high, which is not good for a widget. What you could do is tie a widget together with an app - have an app that runs and puts a small icon in the notification bar, and if that app is running then the widget updates more frequently. The app is invisible except for the notification bar. When you pull down the bar and click on the app it can open and you can then turn it off from in the app, and then have the widget not update anymore. -niko On May 31, 7:39 am, TreKing treking...@gmail.com wrote: On Sun, May 30, 2010 at 3:04 PM, cellurl gpscru...@gmail.com wrote: Can an app not be full-screen? Yes - check out themes, specifically the dialog theme. E.g. can I make a postage size app? I don't know if there are limits on the size, but probably. - TreKing - Chicago transit tracking app for Android-powered deviceshttp:// sites.google.com/site/rezmobileapps/treking -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en