I have a WidgetProvider and an Configure Activity
When the Widget is started it starts with the configure activity and I set it up by making a custom call to the widgetprovider
(which you will notice is from the sdk tutorial examples)
// Push widget update to surface with newly set prefix
AppWidgetManager appWidgetManag...
I would like the main layout file (main.xml) respond to the main activity. I would like a TextView inside the layout file only to show if a variable, located in the main activity, equals a certain number, like 0. If the variable is 1 or 2, I want it to show something else.
What's the easiest way to perform this? I'm not really sure if t...
I remember a while ago reading about an alternative (aka faster) way to perform a "getPixel()-ish" method. Problem is, I don't remember where I read that, and I've searched thoroughly.. I think.
The answer had something to do with locking the Bitmap in memory, or something like that. I need to run getPixel() multiple times "per-tick," w...
Hey fellas, how are you?
I'm trying to write some apps using wikitude, and I'm having some problems running even the example.
I've put the sample ( BasicOpenARDemo ) that comes with the SDK inside eclipse and tried to run it, where I encountered the next error: "wikitude was not found on the system. Please press the ok-button to access t...
Hey, Im trying something in android, that has to get the words sent in sms and print on the emulator screen. But the app doesnt update in time.
I send a message. Ok. But when I open the app it doesnt print the words that I've sent. So i have to close the emulator and then open it again, and run the app, and the word is there.
Id like t...
I created a widget that works great until I restart the phone, then the widget doesn't display it is invisible but if i hold and click i can throw it in the garbage
I have a function that is called from my configure activity in my widgetprovider that does the following:
static void updateAppWidget(Context context, AppWidgetManager appW...
Hey everybody, I was wondering where, or what is the methods used in the batch uninstaller programs? I know how to pull up lists of the applications, and the icons in a listview.. getting them into the right lists and whatever, but how do I actually uninstall the application? Thanksa
...
Hi all:
I'm writing a class that inherit from TextView, and override its onDraw() method, but in the method, my invoke of canvas.drawText() doesn't seems to work, the code just like below:
protected void onDraw(Canvas canvas) {
// super.onDraw(canvas);
Paint paint = new Paint();
paint.setColor(android.graphics.Color.WHITE...
I need to accept values (username and password) from the user, when he clicks menu button and one of the button that says login. When the login button is clicked, a pop up should show up that accepts the values and should have an ok button.
Expecting a pop something like when we try to download an app from apple store (iphone)
Could some...
Hello friends,
I want to implement a Home button in my Android App which will terminate the all the Activities but the first one. Instead of user pressing the Back button again and again, I want to give user a single button which will take him/her on the first (Home) Activity.
Please help how to implement it.
...
what library use for develop program MSN for android it work?
i use library JML (java messenger library)but it not work.
what i can use library?
thank you for help me.
...
Hi,
I want to have a transparent view, above my application.
I want to do this just knowing the current activity.
I found a way of doing this by adding a new framelayout via the windowManager
I m doing this :
public static void AddViewAbove(Activity activity) {
FrameLayout newLayout = new FrameLayout(activity);
WindowManager.La...
the document
http://developer.android.com/guide/topics/data/data-storage.html
shows that there are multiple ways to save data, I need to do this in a widget and everytime I try to save i get errors...
for instance
SharedPreferences settings = getSharedPreferences("NAME", 0);
SharedPreferences.Editor editor = settings.edit...
Hi,
Does anybody knows how to set android search dialog hint dynamically?
T have try to do something like:
<?xml version="1.0" encoding="utf-8"?>
<searchable xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/search_label"
android:hint="@string/search_hint"
android:id="@+id/search_dialog_text">
</searc...
Hello, I am wondering if my codes here can view a specific pdf file using existing PDF viewer in Android Phone (HTC Desire).. If i would like to open pdf files from local folder.. What should i do?
public class ghcm_Submenu1 extends Activity {
private ListView lv1;
private String lv_arr[]= {"item1", "item2"};
@Override
public ...
This is my first time using SAXParser, (I'm using it in Android, but I don't think that makes a difference for this particular issue) and I'm trying to read in data from an RSS feed. So far, it's working great for me for the most part, but I'm having trouble when it gets to a tag that contains HTML encoded text (e.g. <a href="http://....
Hey everyone,
For those of you who have used the Facebook app, it has an interesting way of showing more information on the home activity by having a draggable view at the bottom of the screen that, when dragged up, shows Facebook notifications. Dragging the same view back down hides the notifications. Note that this will work either ...
I've downloaded the source code from code.google from android.
Because they dont come with the eclipse project. I've import them into eclipse.
Assuming i've downloaded ABC source code with package named com.example.abc
1. I can't import via "Existing Projects into Workspace".
2. I tried create a android project named ABC with package co...
Hello
In my android application,on exit of application by using movetasktoback(true) on back of Homescreen,if the user reloads the application again ,the user is redirected directly to Homepage other that to loading screen.
Is there any solution that i could exit the application on Home and wherein should clear all the stack created in t...
Sorry that I'm asking such a question, but I'm tryin to make this one run for hours, and I'm not finding the mistake...
public class Main extends ListActivity {
/** Called when the activity is first created. */
ProgressDialog dialog;
@Override
public synchronized void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInsta...