Android :: Potential - Bug In The Implementation Of AppWidgets
Nov 10, 2009
We have discovered a potential bug in the implementation of AppWidgets. Here is a simple reproducer.
Attached is the code for an application containing a TestActivity and a TestWidget. TestActivity extends MapActivity and TestWidget is a simple widget provider which updates a TextView every 2 seconds. Now if the TestActivity is launched with no instance of TestWidget running, it works just fine. But if the TestActivity is launched after placing the TestWidget on the home, it results in ClassNotFoundException. Here is what we get:
CODE:.............
So it seems we have an inconsistency in the way the class loader works for the same apk.
WORKS - Launch the application by itself, without invoking the Widget. DOES NOT WORK - Create a Widget on the Home screen and then launch the application from the launcher.
The source code for this application (http://www.yousendit.com/ download/TzY3ZGVhZy96NE4zZUE9PQ) has been attached. Hope someone from the Android team can shed light on this behavior.
This error is seen on the 1.5r3 SDK. Not sure if this has been addressed in 1.6 and 2.0 SDKs..
View 2 Replies
May 8, 2009
I'm trying to make an AppWidget, and for some reason the Eclipse debugger doesn't suspend on any of the breakpoints I set (but I know the code is executed because I see it working on the emulator). I don't have this problem with other 'regular' apps (non AppWidgets). Is this a known limitation, or is it just a problem on my installation?
View 4 Replies
View Related
Apr 18, 2010
We have created an AppWidget that takes user inputted text into an EditText and displays a calculated amount of text inside a TextView on the Home Screen. We calculate the amount of text based on the AppWidgetInfo.minWidth, minHeight attributes. We do this to simulate scrolling; we cut up the user-inputted text into chunks that will fit into the widget and swap them based on button clicks.
When we save the widget with the device in Landscape mode, it calculates the appropriate amount of text for Landscape mode and displays it in the widget. The problem is when the user changes orientation of the device to Portrait mode (without opening the widget and resaving the text), the calculated amount of text for Landscape mode is still displayed. This also happens in the vice versa case (the user is in Portrait and saves, etc.)
How can we tell our AppWidget to recalculate the amount of text displayed on screen orientation change? Is this possible? How would you solve this problem?
View 5 Replies
View Related
Sep 17, 2010
I'm making an Android AppWidget to sit on the home screen.
The user's home screen space is precious, so I want the widget to be small. The ideal size would be 2x1 cells.
Some documentation suggests you can have any size you like?
But the AppWidget graphical design guidelines imply that only standard sizes are supported: 4x1, 3x3, 2x2.
Does that refer to the available PhotoShop templates or is it a limitation of Android itself?
I'm finding that a 2x1 widget works on my actual device (HTC Wildfire) but expands to 2x2 on the emulator.
HTC have their own special implementation of the home screen, so maybe my widget will only work at 2x1 on HTC devices?
Is there any way to create a 2x1 widget, or should I use a standard size?
My widget was adapted from the Simple Wiktionary sample.
The manifest has android:minWidth="146dip" and android:minHeight="72dip".
There's a RelativeLayout with android:layout_width="fill_parent" and android:layout_height="wrap_content"
I'm just starting with Android, so apologies in advance if this is a silly question. :)
View 1 Replies
View Related
Jan 22, 2010
There is a given set of predefinied Views that can be used in layouts for AppWidgets. How can a customized View added to this list?
The minimum requirement is that the class is annotated with RemoteView. What else is necessary to be acceptable as view in the layout.xml?
View 2 Replies
View Related
Mar 5, 2010
Is it possible to programmatically create and/or destroy AppWidgets?
View 7 Replies
View Related
May 21, 2009
I'm writing a widget. Currently, I'm have a simple ImageView, and calling RemoteViews.setImageViewBitmap(). I'm using a service to do the updates.
I thought it might be a good idea to reuse an existing RemoteViews instance, so I'm only querying it the first time around, and subsequently simply call setImageViewBitmap() with the new image.
This works well initially, but after some time I first start getting "!!! FAILED BINDER TRANSACTION !!!" errors, and later, an OutOfMemory exception.
Simply creating a new RemoveViews instance every time works flawlessy on the other hand. I'm just curios why that would be, any ideas?
View 2 Replies
View Related
Oct 6, 2010
Can anyone tell me how to make a flexible AppWidgets in android according to the screen size.
I want to make a full screen widget, but when it change screen size, i want to make it flexible.
View 1 Replies
View Related
Oct 27, 2010
A local college has decided it wants to start a program in mobile development. They explored Windows 7 mobile and iPhone and it just isn't what they are looking for. Android won the golden ticket, thanks to myself.
They just threw a catch in there for me =). They want me to find the blount of the information!
Would anyone happen to know who I can contact concerning some sort of contract on leasing of development phones for this class? The phones do not necessarily need a service, just a way to test development. The instructors and department leaders have said they would need around 20 devices for a small class. They don't imagine it would be larger than that for a new class.
So can someone point me in the right direction? I know everyone wants to breed more Android developers =P...something to feed our addictions.
View 3 Replies
View Related
Jun 1, 2010
I was wondering about this earlier in the weekend because I know the Nexus One features a broadcom communications chipset that features 802.11n support. Searching did not turn up any specifications on the Evo with regard to its wireless package though... until today. i Fix it just released its teardown of the Evo 4G, ( HTC Evo 4G Teardown - Page 2 - iFixit ) and it turns out that it features the Broadcom BCM4329 chipset -- known to have 802.11n support! I've read that some people believe that wireless-n support for the Nexus One comes with Froyo... maybe this is something else to look forward to when Froyo comes to the Evo.
View 12 Replies
View Related
Feb 22, 2009
I have run mediaplayer in SDK which can play media in res/raw folder successfully on emulator , but now I wanted to run it on my hardware which have already successfully implemented the android kernal and file system and audio, video drivers etc. I have no experience to implement JAVA app . I once implemented mplayer app written in C to my linux OS which only need to copy the final executable file , but now I don't know which files or folder should I copy to my platform because I have no basic knowledge of Java although I have run successfully on my emulator.
View 5 Replies
View Related
Jul 28, 2010
I've been playing around with the new LVL announced yesterday and wanted to write a policy which only stops the user when it is certain that he does not have a license. In other words, the policy will only "dontAllow" the user if the last meaningful response from the licensing service was NOT_LICENSED. Therefore, if the user is offline when they first use the app, then they will be allowed in. The idea behind this is that I don't want genuine paying users to ever (within reason) be inconvenienced by this licensing system. The downside is that all the user needs to do is clear the app data and go offline before restarting the app. The app will continue working until they go online (and restart the app). My thoughts are: 1. Most users won't know about that workaround 2. Those users that are happy to use that workaround, probably wouldn't pay for the app anyway.
View 6 Replies
View Related
Jun 2, 2010
Create an anonymous implementation of OnClickListener
private OnClickListener mCorkyListener = new OnClickListener() {
public void onClick(View v) {
// do something when the button is clicked}};
View 2 Replies
View Related
Apr 23, 2010
With the soon arriving Adobe Flash Player 10.1 coming out for 2.1 devices, Do you think the Android system will make a turn for the better supporting flash games and even AIR which will lead us to amazing places. Or do you think that with the low processor speed that Eris has that it will be a "meh" beneficial update that will help with certain webpage views but not full compatibility gaming.
View 3 Replies
View Related
Apr 20, 2010
As much as I'm looking forward to the Evo and fully immersed in being brainwashed that it will be the greatest phone ever, at some point you need to be realistic with your expectations.
Here are my concerns:
4G/3G won't be able to seamlessly transition. What I mean by this is that if your 4G signal is weak/non-existant, you'll have to manually make the switch to 3G coverage 4G in general - this will be the first ever 4G phone in the USA, the first 4G phone for Sprint, etc...I think you realistically have to expect there to be some issues with signal quality, coverage, etc.
Battery Life - Maybe not a big issue for me because I usually keep my phones on charges all the time, but it's going to be interesting to see how this plays out. Such a glorious device is going to suck down the battery I'd assume.
Will the processor be underclocked? The Incredible looks like its being handcuffed to 667MHz, which isn't uncommon, but I feel a 1GHz processor should work at 1GHz, or at least not 66% of its capacity. I'm sure it will still be fast, but I digress.
The screen being a TFT LCD could be a potential issue, and that it's only listed as producing 65K colors...which seems like a lot but vastly inferior to an AMOLED. Of course I think I still prefer it over an AMOLED, but that's a personal choice.
View 22 Replies
View Related
Oct 27, 2010
I'm want to implement Dynamic SlideShow of Images similar to Gallery. On Drag, i Should be able to change to next images. I'm looking into Gallary1.java class from APIDemo Example, i think there is no sufficient information in that, so is there any better code example.
View 2 Replies
View Related
Jul 2, 2009
I am trying to implement picture gallery in my application but it's not scrolling smoothly can someone suggest me what could be the reason or how to do it.how it is implmented i the phone.
View 2 Replies
View Related
Dec 5, 2009
I am trying to create certificates for users for my program. I am have created a keystore and included the publickeystore.store with my application in the assets folder. I created all the certificates using the keytool program from JAVA. When I try to authenticate the certificate I get the following error: 12-05 17:32:49.962: ERROR/AndroidRuntime(891): Caused by: java.security.KeyStoreException: KeyStore JKS implementation not found
View 3 Replies
View Related
Oct 30, 2010
I'm working on an LVL implementation and I want to use as many different device identifiers as I can. I have considered using IMEI numbers but I've discarded that because a) it's intrusive and b) not all devices will have them.
What might I use to fingerprint a phone for license verification?
As an aside, how have your experiences with LVL been so far? Any pitfalls? I'm not asking for anyone to share their implementation details as that would give the hackers ideas.
View 5 Replies
View Related
Dec 1, 2009
I was just wondering if anyone knows what the actual hardware capability of this device's Camcorder actually is, or, in other words, what is the possibility of a software app/firmware upgrade in being able to improve the quality of the Sprint Hero's recorded video? The video examples which I have seen so far on YouTube seem good, but the only thing tugging between my getting an Instinct HD for Christmas, vs. the Sprint Hero, is the video quality difference. So long as a very real potential exists to narrow the gap between the two in regards to this issue, then I will most likely feel confident in springing for the Hero.
View 19 Replies
View Related
Apr 9, 2010
1 can I root from 2.1 directly, if so what updat.zip do I use, and will I lose pinch zoom and media sorting. Will i lose any functions if rooted
View 2 Replies
View Related
Oct 1, 2009
I'm wondering if it is possible for a firmware update to increase the current 15fps video recording. (I believe it's 15fps) Don't get me wrong the quality is watchable, but I'm just wondering if it is potentially possible for the firmwares (or custom) to actually up the framerate a tad?
View 4 Replies
View Related
May 5, 2010
Can any one tell me how to include tab implementation in AnDroidDraw code?
View 1 Replies
View Related
Jan 28, 2010
I would like to implement the similar widget as QuickContactBadge from which I can launch some internal activities. I checked out the source code for QuickContactBadge, QuickContactActivity etc and simplified them to accommodate our requests. It can launch and display at correct position. However, I can not see the original view below the quick contact tack no matter how I try. And I found the window created by QuickContactWindow is quite small and I tried to set the background etc. Nothing works. Who can help or give some guidance about how window works? Say, from Activity A, I click on image, I launch a new activity (or window), how can I make the Window of Activity A is still visible? Or more general, what is the best way to achieve similar behavior like QuickContactBadge?
View 2 Replies
View Related
Feb 11, 2009
I am using the Telephony class to get messages ( Telephony.Sms.Intents.getMessageFromIntent(Intent intent)). But I can't find the class Telephony from its package(android.provider), there is an error named "The import android.provider.Telephony cannot be resolved" when import android.provider.Telephony.Sms.Intents, the sdk version I'm using is android-sdk-windows-1.0_r2, how can I use this with the new implementation of Telephony?
View 2 Replies
View Related
Sep 20, 2010
In iPhone there is Cocoa Asynchronous socket library. Is there a similar library in Java for Android? Can it be done using Java Asynchronous sockets(NIO library) or is there a way I can make use of NDK for Android and use native libraries for asynchronous sockets?
View 1 Replies
View Related
Nov 21, 2010
I am writing an Android Application which outputs some array of buttons dynamically.
My question is how to implement onClickListener() functionality for Array Of Buttons. I mean how to recognize the button that is clicked in public void onClick() method ? I need to display a toast based on the button that is clicked.
View 2 Replies
View Related
Jun 24, 2010
I'm hoping this would be the first smartphone capabe of replacing my iPod touch permanently.
I've used the Storm and Incredible. Both phones just aren't as good as the iPod.
Some questions about this though...
Is it possible to sync an Android phone with iTunes on a Mac?
Is there an equalizer setting on the phone?
View 1 Replies
View Related
Jun 17, 2010
What apps do you think really show off the ability of the Dinc?
View 6 Replies
View Related
Jul 17, 2010
First I have my app running currently and its working fine, I just question how I implemented it. I come from a linear C++ background and this Activity/Intent thing is a little new to me. Here is how my app works currently (order of activities started)
("->" = Starts Activity, "<-" = Returns from activity)
MainActivity -> Login Activity <- onActivityResult function displayListOfItems ...
I am wondering if I should switch the starting intent as follows:
LoginActivity MainActivity function displayListOfItems
The issue I had with the second scenario was that pressing the back hard key would take me from the MainActivity back to the LoginActivity and I didn't like this. I guess to sum up my question, is it normal for the MainActivity to handle all subsequent starting of activities or is it common to do a more linear implementation?
View 5 Replies
View Related