I'm trying to use in my Android Application the notifyDataSetChanged method for an ArrayAdapter but it doesnt't work for me.
I found as answer here, that notifyDataSetChanged should run in the main thread, but there was no example for that.
Could anybody send an example or at least a link?!
...
how do i find my applications market url on the android market ?
...
I am new to android development and am currently working my way through the "Hello..." Tutorials on the developer website.
I got stuck on the Tab Layout walkthrough and the only way I could resolve it was to put each Activity Class in a separate .java file.
I was wondering if all Activities need to be in separate .java files, or am I ...
I switched from a Mac to my PC because Eclipse on a Mac was killing me. Windows definitely is much better, but eclipse hangs for 5-6 seconds everytime I try to make it autocomplete my syntax. Say when I hit imgView. and wait for it to pull up an image view properties, it just hangs for 5 seconds and then pulls them up.
Is there any way ...
I want to create a paint and update loop in android for game animation on a canvas but I am having trouble as I can't seem to get the threading to work appropriately. It seems to crash almost immediately. Here is what I have tried:
// Create the thread supplying it with the runnable object
Thread thread = new Thread(runnable);
...
Hi,
I'm defining a shape drawable, I'd like to include an externally defined gradient:
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<include
android:id="@gradients/my_gradient" />
</shape>
Can we create a gradients.xml file to define gradients? If so, how do we import an ins...
Is there more efficient way of animating changing graphics without completely destroying and recreating ( within onDraw() ) the graphics every refresh?
Suppose I want to just add to my graphics. Not completely redraw it every time.
Does anyone dynamically create new Views or SurfaceViews? Each layered on top of each other? So that w...
Why is the use of static final variables encouraged to declare constants over just final variables? The use of static sounds logical when there will be many instances of a class but is this argument correct when used for a Android activity. In fact, since the Class instance will be around even after the activity finishes and is eventuall...
I know that SMS message can be created from PDU with createFromPdu method of the SmsMessage class, but I need to create PDU...
...
Okay so with my code below for adding custom look to my tabs (works great), yet I am getting a border (padding or some sort of crop I assume) around my drawable image. How and where do I remedy this?
Activity:
TabHost mTabHost = getTabHost();
Drawable mySelector = getResources().getDrawable(R.drawable.tabselector);
mTabHost.addTab(...
i follow all the instruction but my ad doesn't appear on my app. My app is already on the market, i configure admob and adwhirl, and it's say it's active, but i can't do it.
Can somebody help me ?
...
Hi,
I'm looking for ways in which one may improve the performance of their applications (Memory Consumption, CPU Usage, Power Use, etc). Are there any software solutions that exist that may perform static/dynamic analysis on the code to help?
Also, I would also be interested in finding any utilities that enable one to more easily c...
I am trying to port an existing iPhone application to android. I wish to have a button scroll into view at the bottom of a GridView to enable the user to load more data from the server. Presently, my solution simply fixes a button at the bottom of the screen instead of having it scroll into view.
Here is my layout code:
<LinearLayout ...
Hi Friends
i am writing two xml files for landscape and portrait and create res/layout-land folder,execute my code but did not work portrait mode,have any setting set for work my code for landscape and portrait..please give any sample code for that.
Thanks All
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://sch...
I am trying to make a custom button, having two 9patch files, one for normal state and one for status.
First I tried with a simple 9patch background and the result is fine:
<Button android:id="@+id/btnTest"
android:layout_height="80dip"
android:layout_width="135dip"
android:text="Test"
android:drawabl...
I write following application:
there is an AutoCompleteTextView field
as Adapter I'm using ArrayAdapter with ListArray
the ListArray consists of some constant string item and one item, which will be changed dynamically everytime user typed something in the field
I took TextChangedListener to update this last list item. But it seems, ...
Hi
I am currently trying to use the android library android fu to help me with my first proper app.
I am trying to makea test project using the droid fu library but when ever i go to test the app it force closes.
I have used an example of the asynctask and when i test the app it loads and does what its meant to but when i replace it ...
Hi can anyone help explain what's going on:
I've developed a simple app which uses webview, it fully works on HTC's Legend and Desire as well as the emulator in Eclipse.
But from emails received, people with Droid Xs and Galaxy Ss get a 'The requested file was not found. d2.html' error message after clicking a link from the main html pa...
I have asked the same question of their support staff, but I thought I would try here, too. I have tried doing an HTTP Post with their sample data, and the response I get back doesn't match what it's supposed to. Does anyone have sample code which includes the HTTP Post and conversion of the response to a byte array?
Here are the inst...
I've got a viewgroup class that I'm adding a checkbox to progammatically like this:
checkbox = new CheckBox(getContext());
RelativeLayout.LayoutParams relativeParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
addView(checkbox, relativeParams);
When I call invalidate on the ...