Android :: Widget Resources Messed Up After Update

May 16, 2010

When our app gets updated sometimes the buttons on existing widgets get the wrong icon drawables, and sometimes the layout itself is broken. I believe this is because the update has different values for some of the drawable and other resources, since they're generated alphabetically, but the widget host still retains the old ids. A delete and re-create of the widget fixes the problem, but a number of users get confused by it and of course it just looks bad.

Is there something I should be doing to prevent this? If not are there any workarounds, other than making all the resources used by widgets start with "0" or something equally ugly?

Android :: widget resources messed up after update


Motorola Droid X :: Normal Size Home Widget Messed Up

Jul 24, 2010

I just downloaded beautiful widgets and love it.the only problem is that the normal size home widget is messed up when I use launcher pros five row setting. Anyone know a fix got this.

View 8 Replies View Related

HTC EVO 4G :: Ring / Vibrate Alerts Messed Up After Update

Jul 3, 2010

Ring and vibe have been messed up. Phone gets laggy at times. PlusI have minor glass lift. So
I am taking a shot and getting a new one sent.

View 8 Replies View Related

Nexus :: New Gmail Address Update Messed Up Syncing And Authentication

May 9, 2010

People may have noticed the recent TLD change for UK gmail addresses previously googlemail.co.uk and now gmail.com. With this, it seems to have messed up my syncing and authentication for some reason. I changed over the other day and ever since I kept getting a message saying the authentication failed. I then added my gmail address as another account and set it to sync gmail (can't sync the calendar for some reason it's not an option). I have not received any push notifications of new mail and I have to manually refresh from within the mail app to get new e-mails. I don't want to remove the previous googlemail.co.uk as it says I have to restore my phone to factory settings (possibly losing messages etc.)

View 3 Replies View Related

Android :: String Resources Do Not Update When Orientation Changes / What To Fix It?

Apr 29, 2010

I have used the method specified on the Resource and I18N page (http:// developer.android.com/guide/topics/resources/resources-i18n.html) to specify separate strings.xml resource files for when the orientation is landscape vs. portrait. When the activity starts, it will display the strings correctly based on the orientation at that time. But if the orientation changes, the strings do not change to start using the new resource file. Instead, they continue to use the resource file that was valid when the activity started.

Is there some function I can call to reload the string resources based on the current configuration, or am I going about this entirely the wrong way?

View 10 Replies View Related

Android :: After Update Force Close For System Resources Not Found

Sep 2, 2010

I don't know why. Install the package directly won't have any problem. But will fail because of Force Close if update the old package. the log is:
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): Caused by: android.view.InflateException: Binary XML file line #5: Error inflating class java.lang.reflect.Constructor
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.createView(LayoutInflater.java:512)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:562)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.rInflate(LayoutInflater.java:617)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:318)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.app.Activity.setContentView(Activity.java:1631)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.yidongsoft.ultraNoteEnhancedRegister.StartUI.setupWidgets(StartUI.java:237)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.yidongsoft.ultraNoteEnhancedRegister.StartUI.initialize(StartUI.java:129)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.yidongsoft.ultraNoteEnhancedRegister.StartUI.checkPassword(StartUI.java:591)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at com.yidongsoft.ultraNoteEnhancedRegister.StartUI.onCreate(StartUI.java:112)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1132)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): ... 11 more
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): Caused by: java.lang.reflect.InvocationTargetException
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.widget.ExpandableListView.<init>(ExpandableListView.java:198)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at java.lang.reflect.Constructor.constructNative(Native Method)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.view.LayoutInflater.createView(LayoutInflater.java:499)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): ... 25 more
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-480x320/list_selector_background.xml from drawable resource ID #0x7f020005
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.Resources.loadDrawable(Resources.java:1625)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.widget.ListView.<init>(ListView.java:160)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.widget.ExpandableListView.<init>(ExpandableListView.java:202)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): ... 29 more
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-480x320/list_selector_background.xml from xml type drawable resource ID #0x7f020005
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1843)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.Resources.loadDrawable(Resources.java:1620)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): ... 32 more
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): Caused by: java.io.FileNotFoundException: res/drawable-480x320/list_selector_background.xml
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.AssetManager.openXmlAssetNative(Native Method)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:471)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1825)
09-02 18:19:20.922: ERROR/AndroidRuntime(1659): ... 33 more
The file not found seems android embedded resources. Can any one explain why? I am using HTC Magic, official rom 1.5

View 1 Replies View Related

Android :: Create Widget Like Analogue Clock Widget That Update Itself?

May 1, 2010

I can create a static widget without thinking, I can even create a widget like the analogue clock widget that will update itself, however, I can not for the life of me figure out how to create a widget that reacts to when a user clicks on it. Here is the best code sample that the developer documentation gives to what a widget activity should contain (the only other hint being the API demos, which only creates a static widget):

public class ExampleAppWidgetProvider extends AppWidgetProvider {
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
final int N = appWidgetIds.length;

// Perform this loop procedure for each App Widget that belongs to this provider
for (int i=0; i<N; i++) {
int appWidgetId = appWidgetIds[i];

// Create an Intent to launch ExampleActivity
Intent intent = new Intent(context, ExampleActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);

// Get the layout for the App Widget and attach an on-click listener to the button
RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider_layout);
views.setOnClickPendingIntent(R.id.button, pendingIntent);................

View 2 Replies View Related

Android :: Android - Retrieving All Drawable Resources From Resources Object

Jul 11, 2010

In my Android project, I want to loop through the entire collection of Drawable resources. Normally, you can only retrieve a specific resource via its ID using something like:

InputStream is = Resources.getSystem().openRawResource(resourceId)

However, I want to get all Drawable resources where I won't know their ID's beforehand. Is there a collection I can loop through or perhaps a way to get the list of resource ID's given the resources in my project?

Or, is there a way for me in Java to extract all property values from the R.drawable static class?

View 4 Replies View Related

2.1 Update :: Data Monitor Widget Missing After Update To 2.1 Xperia X8

Nov 27, 2010

data monitor widget missing after update to 2.1-xperia x8...any ideas?

View 1 Replies View Related

Android :: Cachemate Messed Marketplace / Way To Fix?

May 27, 2010

now i cant see any of the paid apps, is there a way to fix this?

View 2 Replies View Related

General :: How To Protect Android From Getting Messed Up

Mar 13, 2012

My parents are going on a trip in a month and they have there heart set on taking a smartphone with them.What they need is being able to call, text and mail.They also want to be able to use it as a backup (just in case) for finding their way. So just in case they get lost to find out where they are on their map or use the gps to guide them for a little while.

So basically, calling, sms, mail and gps. They don't need to be able to change a lot of settings.So, I was thinking about installing their (yet to buy) smart phone with a simple home screen and the settings they would need. To keep them from accidentally messing anything up, I was wondering if it is possible to password protect settings and stuff.

-how to protect settings etc.
-a good home screen
-other things like very simple gps app for example

View 7 Replies View Related

HTC EVO 4G :: Android Phone Messed Up - Start From Scratch?

Jul 17, 2010

So I got my first Android phone, this Evo 4G last week. It's really great and I love it but I have all kinds of crazy stuff going on, triple contacts, facebook contacts, my gmail account contacts, my business google apps contacts, just things seem kinda out of control since it's my first Android phone. So I'm thinking about just starting with a clean slate, now that I know a lot more about what the phone can do, which calendars to you, which sms program, other apps that are must-haves. Is this a good idea? Will it do anything to my SD card, which has all of my apps backed up?

View 1 Replies View Related

Android :: All Items Images Messed Up When Refresh ListView

Mar 11, 2010

I have listview with items that include both text and images. If I scroll the listview fast enough all items images are messed up: wrong images are displayed for wrong items. The same problem exists with expandable listview. I tried to implement holder class to cache imageview and image itself using setTag, getTag but nothing helps. The faster I scroll the more items are messed up. Text almost always displayed correctly.

View 5 Replies View Related

Android :: Widget On Update / OnReceive

Aug 9, 2010

I initialize some arrays in an onUpdate() method and after that, using an intent and a button, I try to call onReceive() function which runs fine but cannot access arrays set in onUpdate() method. Why is that? Those array's are object variables and are declared public.Am I missing something?package net.aerosoftware.widgettest;
import java.util.HashMap;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.RemoteViews;
public class WidgetTest extends AppWidgetProvider { public static String ACTION_WIDGET_RECEIVER = "ActionReceiverWidget";
public HashMap<Integer, String> channelsImages;
@Overridepublic void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds)
{ Log.e("UPDATE", "Start");
RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.main);
channelsImages = new HashMap<Integer, String>();
channelsImages.put(0, "one");
channelsImages.put(1, "two");
Intent active = new Intent(context, WidgetTest.class);
active.setAction(ACTION_WIDGET_RECEIVER);
PendingIntent actionPendingIntent = PendingIntent.getBroadcast(context, 0, active, 0);
remoteViews.setOnClickPendingIntent(R.id.buttonclick, actionPendingIntent);
super.onUpdate(context, appWidgetManager, appWidgetIds);
appWidgetManager.updateAppWidget(appWidgetIds, remoteViews);
Log.e("UPDATE", "End");
} @Override public void onReceive(Context context, Intent intent)
{ Log.e("RECEIVE", "Start 2");
if (intent.getAction().equals(ACTION_WIDGET_RECEIVER))
try Log.e("SIZE", "Size Of channel array: "+channelsImages.size());
} catch(Exception e)
Log.e("ON_RECIEVE_ERROR", " "+e.getMessage());
super.onReceive(context, intent);
Log.e("RECEIVE", "End");

View 2 Replies View Related

Android :: How To Update Widget Dynamically?

May 28, 2010

I am currently learning about widgets in Android. I want to create a WIFI widget that will display the SSID, the RSSI (Signal) level. But I also want to be able to send it data from a service I am running that calculates the Quality of Sound over wifi. Here is what I have after some reading and a quick tutorial: public class WlanWidget extends AppWidget Provider {RemoteViews remoteViews; AppWidgetManager appWidgetManager; Component Name thisWidget; WifiManager wifiManager; public void onUpdate(Context context, AppWidgetManager appWidget Manager, int[] appWidgetIds) { timer timer = new Timer(); timer.schedule AtFixed Rate(new WlanTimer(context, appWidgetManager), 1, 10000); The above seems to work ok, it updates the SSID on the widget every 10 seconds. However what is the most efficent way to get the information from my service that will be already running to update periodically on my widget? Also is there a better approach to updating the the widget rather than using a timer and timertask?

View 12 Replies View Related

Android :: 2.2 Update - Weather Widget

May 12, 2010

Does anyone know if the 2.2 update is going to bring HTC sense along with the support of flash player? And if so, is that how I acquire this weather widget?>>>>[follow link]> http://www.gadgetsdna.com/motorola-droid-running-android-2-1-and-htc-sense/1572/>>

View 4 Replies View Related

Android :: Update Widget Text

May 18, 2010

I have 2 questions about widgets update

I have 2 buttons and i need to change one button text when i press the other one, how can i do this?
The first time i open the widget it calls the onUpdate method, but it never calls it again. I need to update the widget every 2 seconds and i have this line in the xml.

android:updatePeriodMillis="2000"

Do i need a service or should it works just with the updatePeriodMillis tag?

onUpdate method

CODE:..................

View 2 Replies View Related

Android :: How To Update Widget Every Minute?

Oct 6, 2010

Can anyone tell me the best way to update widget every minute. Now I'm using thread inside the AppWidget, but sometimes i get error FAILED BINDER TRANSACTION !!! After that error, i always got a lot of error like that all the time and i can't change the view in my widget again.

View 1 Replies View Related

Android :: Update A Widget From An Activity?

Sep 22, 2009

I have been looking for a way to update a widget asynchronously, for example, when the phone receives a text message. I have a broadcast receiver set up with code that runs upon receiving a message. I also have an AppWidgetProvider that is set up and running. It seems like the *only* way a widget can be updated is upon its interval, or when the user interacts with it. Is there any way to update a widget upon a system event?

View 6 Replies View Related

Android :: Update Widget From Activity

Nov 1, 2010

I have a widget, its setup so that when I click on it, it opens some settings in an activity.

CODE:................

This configures some settings for the application. What I want to achieve is to have the widget update its view to reflect the changed settings when the Activity I launch closes. Using the update interval or any other type of polling isn't appropriate for this.

I've seen a couple places here and in the android docs this code used:

CODE:...................

But I don't know how to get the mAppWidgetId value. I tried following the example for a widget configuration activity here http://developer.android.com/guide/topics/appwidgets/index.html, but in the following code,

CODE:............

Extras is always null, so I never get the AppWidgetID.

View 1 Replies View Related

Android :: Widget - Update From My Activity?

Nov 8, 2010

I have added a widget and instead of updating it every xxx minutes, i want to update it only if in my activity something is changed. But how can i call the onUpdate Routine of my widget from my activity?

View 3 Replies View Related

Android :: Update Language In Widget

Mar 26, 2010

I have a widgett that supports for many languages, but if the user change the language in Settings, my widget don't update.. Only works, if I close it and open again, or rebook the handset..

View 2 Replies View Related

Android :: Update Widget From Code

Apr 22, 2009

Depending on what I do in my application, I might want to force an update on my widget. I've have had a poke around and can't seem to find any API for doing a manual update. At the moment, I have a function that sends a broadcast and my onReceive does this:

CODE:...............

Is there a proper way to do this, which sents the int array to the correct values? Or do I have to do it like this instead?

View 16 Replies View Related

Android :: How Update Widget Often But Only When It Is Visible

Mar 10, 2010

I'm going to create widget which needs to update its content every minute (it shows time-related data).

However, there is no need to update widget if it is currently invisible, which means:

screen is turned off
another app is running
widget is placed on another (invisible) home screen tab

What is the best way to update only visible widget every minute - without waking up device nor doing unnecessary computations? After widget becomes visible, small lag before update is acceptable.

View 2 Replies View Related

Android :: Force Widget To Update

May 1, 2010

I respond to a button press on my appwidget in the onreceive method. When the button I pressed, I want to force the widget to call the onupdate method.

View 2 Replies View Related

Android :: Update Widget On Condition

Aug 9, 2010

I'm just starting with android development and have written an application to show details about the battery status.

Now I wanted to put the whole thing into an widget - and here's the question:
Do I really need a update service in the background to listen for ACTION_BATTERY_CHANGED intents? My first thought was to put just a <action android:name="android.intent.action.ACTION_BATTERY_CHANGED" /> line into the <intet-filter> tag of the widget in the AndroidManifest.xml - but obviously it's not that simple.

If the UpdateService is the right way I'll do so - but I just wanted to make sure what the proper solution is.

View 3 Replies View Related

Android : Widget Update Error

Jul 21, 2010

I wrote one widget that updates per 5-seconds and I found that if it's run for a period of time, com.android.acore will occupy almost 100% cpu. Could somebody give me suggestions or help?

View 9 Replies View Related

Android : Widget Update On Some Event

Aug 11, 2010

I hope it is the right android group for this question. I have a widget that is essentially an image button that toggles display and speaker modes on a custom Android 2.1 platform. It also displays different images to indicate what mode is currently selected. We are adding a hardware button that can also change the same display modes externally. I will have a driver that translates button presses to some events (maybe emulate a key press through input events or something else). If the user changes the mode by pressing hardware button, the widget will not know about that and will display wrong image. Is there a way to synchronize the widget state with the current mode without constantly polling the driver from the widget code? Widget can start a background service that would poll my driver every second or so and update the picture according to the mode reported by the driver. It does not look like a good solution to me. Can widgets receive any events besides clicks? Can widget detect when it becomes visible ? It looks like "remoteViews" cannot register any event listeners other than OnClickListener

View 2 Replies View Related

Android :: Programmatically Update Widget From Activity?

Aug 11, 2010

I know it's possible, but I can't figure out a way to trigger an update of my widget from the main activity. Isn't there some general intent I can broadcast?

View 1 Replies View Related

Android :: Facebook Widget Does Not Update Anymore?

Nov 23, 2009

I have the Droid and my fb widget stopped updating. It used to work fine but has been sketchy for a few days. Is this happening to anyone else?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved