Android :: Widget Does Not Load Orientation Changes During Configuration / Submit A Bug Report?
Jul 12, 2009
I'd like to report a bug we just found while writing a widget.
Summary: There is a widget installed, that defines a configuration activity. If the user changes the orientation while they are in the configuration activity, and they finish that activity in a different orientation that they started, the widget does NOT appear in the home screen after the configuration is done.
How to reproduce: have a minimal widget, with a configuration activity that contains a button, which correctly updates the App Widget when it is clicked (as explained in http://developer.android.com/guide/topics/appwidgets/index.html#Confi...). Add a new instance of the widget, so the config screen shows up. Change the orientation once. Click on the button. Your widget does not appear in the home screen. (Ouch.)
If this has already been reported, or if there's a better way to submit a bug report.
View 4 Replies
Nov 23, 2009
I'm trying to guess why a user would report "Force quits every time I load" the problem does not occur for all users, especially not me.The system constructs a database when it first loads. I suspect that user's phone does not have enough memory.Questions: How can I verify that the system has enough memory to store a small database?
What else might cause a user's particular system to force quit on startup?Wrong answers or things I've tried thus far:The user's hardware is probably different than mine The user's software and available memory is likely different as well The data is already loading in its own thread, with a progress dialog showing
View 4 Replies
View Related
Nov 10, 2010
While working on orientation change I have found that the onConfigurationChanged is not getting called when changing the orientation from portrait to landscape.But when I am changing from landscape to portrait the method is getting called. Is it the correct behavior because the onConfigurationChanged should by called whenever we are changing the orientation. (android:configChanges="orientation")? I have also found one strange behavior or error, When we are changing from portrait to landscape orientation the string value is displayed correctly(automatically by android system) but when in am changing the orientation from landscape to portrait the same string is displayed(i.e the string in landscape mode).The expected behavior is the string id specified in the portrait mode should be displayed.Is it an platform bug or something wrong in my code/programming.
View 2 Replies
View Related
Nov 8, 2012
I have an Emgeton 7 inch tablet for which I'm trying out some different ICS ROMs on. The best ROM I have found so far has one issue: The screen orientation is 90 degrees out. The accelerometer actually works but it is set to 90 degrees "ahead"
How and where is the default settings for the accelerometer set and is it possible to change it without a re-compile? Would I be able to use anything from the stock ICS firmware to fix it?
View 2 Replies
View Related
Oct 17, 2010
I have a widget with a configuration activity.
Currently the configuration launches when you click on the widget.
I want to add the configuration as an app icon to the launcher.
The problem is that when the configuration launches on click, I get a specific widget id , so each widget instance can have a different configuration.
What will happen if I start the activity from the launcher?
I wont be able to show multiple configurations on the same activity.
View 1 Replies
View Related
Sep 26, 2010
My widget launches a configuration screen when chosen to be put on screen. That works fine.
I wanted to be able to touch a part of the widget to return to that configuration screen.
I have created 2 pending intents in my widget's service but only one works. The code is below...
For the life of me i cannot understand how i can launch again the configuration activity.
View 1 Replies
View Related
Sep 18, 2010
I'm having an issue with a config activity for a widget. According to the dev docs, if I specify a configuration activity than the onUpdate method of the AppWidgetProvider doesn't get called until after you request an update once you've completed the configuration activity. For me its happening in reverse, the onUpdate method of the AppWidgetProvider gets called first, followed by the configuration activity. Then the onUpdate method is never called after completion of the config activity even though I request it explicitly. I tried with level 4 and level 7 API, same result. Here is some of the source:
Manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.chris.android.swidget"
android:versionCode="1" android:versionName="1.0">
<application android:icon="@drawable/app_icon" android:label="@string/app_name">
<activity android:name=".SWidgetConfigure">
<intent-filter> <action android:name="android.appwidget.action.APPWIDGET_CONFIGURE" />
</intent-filter> </activity>
<receiver android:name=".SWidgetProvider" android:label="@string/ widget_name">
<meta-data android:name="android.appwidget.provider" android:resource="@xml/swidget_info"/> <intent-filter> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter> </receiver>
<service android:name=".service.PUpdateService" />
</application> <uses-sdk android:minSdkVersion="4" />
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
swidget_info.xml: <?xml version="1.0" encoding="utf-8"?> <appwidget-provider
xmlns:android="http://schemas.android.com/apk/res/android"
android:minWidth="294dp" android:minHeight="72dp"
android:updatePeriodMillis="86400000"
android:initialLayout="@layout/swidget_layout"
android:configure="com.chris.android.swidget.SWidgetConfigure" >
</appwidget-provider>
I can include source of the onUpdate method from the AppWidgetProvider activity and the onCreate method of the configuration activity if necessary, but they are both being called find its just the order they show up on the emulator is wrong.
View 5 Replies
View Related
Oct 16, 2010
I am writing my first application and am trying to get my widget to load a different image when it is added to the home screen based on the state of the notification volume.It is detecting the notification state fine and the proper Toast messages appear when I add the widget, but I'm not getting any icon.I just get an empty button.I'm using the same code to change the icon in my onReceive() method to do other things and that works fine.Is this the proper way to accomplish that?
View 3 Replies
View Related
Aug 31, 2010
I think that it would be too complex to open a database. Does using shared preferences make my app's data size become big. Is there a temporary storage place for my data or should I delete the data in the shared preferences for that widget.
View 1 Replies
View Related
Sep 1, 2009
I've built an app widget a fairly simple one that draws an image inside a frame. (If that sounds familiar, that's because it's very similar to the built-in one, but it's a start to something else.)The RemoteView consists of little more than a FrameView and an ImageView. I have a second FrameView that may display or not depending on some certain state awareness.The Image updates on an Alarm schedule rather than the built-in mechanism so the user can adjust this value after installation. The image is set on the RemoteView using a drawable ID from included resources in the package. They've been resized to approximately a quarter of the screen size, but might still be scaled a little by the ImageView.All of this has been working fine. There is one issue that I've been unable to diagnose even the root of the problem.
After an orientation change when the home screen redraws, the ImageView doesn't always draw. The rest of the RemoteView does draw just as it was set during the most recent Update.The mystery is that the ImageView does, in fact, draw if the Alarm is currently set. If it's not currently set, it doesn't draw. Nothing else seems to affect whether it draws or not. It doesn't matter if the widget process is running or not, either (killing it via DDMS and then rotating has the same effect).This occurs in the emulator as well as the G1. During a rotate, the widget gets no update event at all.I could set it to listen for configuration changed broadcasts, but since it works in one of the cases, I suspect something else is going on and that's just an unnecessary piece of duct tape.
View 12 Replies
View Related
Oct 14, 2010
I have a samsung tablet.I have a test widget.When I change orientation the widget disappears, but is actually still there (I can long press to remove it).in my res directory,I have resdrawable resdrawable-hdpi resdrawable-ldpi resdrawable-mdpi reslayout reslayout-land reslayout-large-land With valid values in all of these areas, but the widget just will not appear when I go into landscape mode.
View 2 Replies
View Related
Jul 8, 2010
How did you support both landscape and portrait for appwidget? the layout of appwidget will never change when orientate the device from landscape to portrait. by the way, would you please tell me which device support both landscape and portrait for appwidget?
View 1 Replies
View Related
Apr 26, 2010
I have a widget set up and it displays properly in both portrait and landscape when added to each. But when I change orientation it has the problem "Problem Loading Widget". I delete this, re-add the widget, and it displays correctly. Thus, my widget can support both portrait and landscape but it doesn't survive an orientation switch. What am I missing? Do I need to redraw the widget when orientation is changed? Doesn't it do this automatically? Do I need to call onUpdate() somehow?
View 2 Replies
View Related
Jun 19, 2009
Maybe I'm missing something obvious, but how do you handle orientation changes for a Cupcake desktop widget?When it is initially created, the onUpdate method of my AppWidgetProvider calls views.setOnClickPendingIntent(buttonID, pendingIntent) to register for my button events, but when the orientation changes, new buttons are created and I don't have an opportunity to re-register the "onClick" listeners. What is the proper way to do this?
View 6 Replies
View Related
Jul 8, 2009
I have a widget , thats working just fine in a particular orientation, but the moment i change the orientation to landscape/portrait, the widget is not able to launch. I have one layout and one layout-land folder in res directory.The problem is that the widget created in landscape mode is not opening in portrait mode and vice-versa.
View 4 Replies
View Related
Apr 9, 2010
I want my widget to update when the phones orientation has changed. Before android 2.0 you could register your widget to get the intent on orientation change. Code...
View 1 Replies
View Related
Aug 17, 2010
I have two buttons on a widget that change some items in a widget, if an orientation is changed on a phone, buttons do nothing. I read http://developer.android.com/guide/topics/resources/runtime-changes.html but this is all about activity not widget.
View 1 Replies
View Related
Mar 15, 2010
I am writing a home screen widget and want to update (modify) the home screen widget when the device orientation changes from portrait to landscape or the other way. How can I make it? Currently, I tried to register to CONFIGURATION_CHANGED action like the code below ...
View 3 Replies
View Related
Dec 9, 2009
Astrid is great! Easy to use. Small widget that displays tasks. Simple. Many options. but... When i reboot the Hero, it seems that the Astrid widget takes almost FOREVER! and i really do mean hours to load.
View 3 Replies
View Related
Aug 4, 2010
I am trying to simply load just the contact photo of all my contacts and display them in a gallery.widget. Do I create a query? I was trying simply just to do People.loadcontactphoto but was getting errors....Any easy way to do this?
View 1 Replies
View Related
Mar 15, 2010
Is there a way in Android to load KML files from Google Earth into a map widget?
Specifically I am looking to load saved shapes created in Google Earth overtop a map widget as easily as possible. Has anybody ever tried this before?
View 2 Replies
View Related
Aug 26, 2009
I never submit to Android market before. I don't want to make mistake on submitting my application.
1> Do I need to sign application.apk?
2> If I can run the application, loaded from eclipse to my phone, there would not be problem for people who downloads from ADC. Is that correct?
View 3 Replies
View Related
Aug 15, 2009
I've just purchased to be an android developer when i visit http://market.android.com/publish, i don't see anything about publish for adc 2 how to submit app for adc 2?
View 14 Replies
View Related
Aug 31, 2009
Have you got any confirmation for ADC 2 submission? How to check the current status of my submission?
View 2 Replies
View Related
Aug 24, 2010
I seem to be having issues with the widget, it does not load and says loading. I have uninstalled the weather bug app wondering if because it was stuck loading or said failed to load if that was beating my battery.
Any better weather apps besides weather bug
View 3 Replies
View Related
May 1, 2010
I have a (hopefully) a relatively simple question. How do I tell Android which layout to use for portrait and which layout to use for landscape orientation on my App Widget?
View 1 Replies
View Related
Sep 1, 2009
We submitted the app. After submitting, I see a Upload button, what's that for? Is it to upload to Android market?
View 2 Replies
View Related
Aug 17, 2009
If I submit my app to ADC 2, can I then submit an updated version later, e.g. after the 1. round ended?
View 7 Replies
View Related
Mar 27, 2009
I would like to use the IM plugin class thats included in the Android source, but it is not SDK friendly. I am happy to submit the revisions required, but I don't really know what to change. It requires access to the non-api android.im tree and UID sharing with android.uid.im. but I'd really like to implement this. Is it better to just to submit an official revision?
View 5 Replies
View Related
Aug 3, 2009
I'm wondering what is the procedure to submit an application entry for the competition. I can't find into the related docs the procedure to submit a candidate application.Do we need to submit on the Android Market but any android application can't participate according the terms and agreements of the cup.
View 21 Replies
View Related