Hi friends
I am getting the value from webserver .I am creating array of web view .In webview I am displaying article description,date .article id is coming from webserver. my requirment is if user touch the webview. I have to pass the article id to another activity can anybody tell how to do my code is below
for(int i=0;i<articlePar...
Hi,
I have a map view which has overlay items on top of them. The overlay items have an action when they are taped on.
The problem is when I use pinch to zoom if it my fingers happen to be at a location of an item when I lift them the onTap() is called. how could i prevent this?
Thanks,
Jason
...
Hi all,
why when playing video on 2.0.1 the following error is shown?but works well in Lower versions
layer 0x3f8528, texture=2, using format 32, which
is not supported by the GL
will it work on real device?...
...
I'm teaching myself how to make custom AVD skins by editing the layout file and associated .png files in the android-sdk-windows\platforms\android-nnn\skins\ folders. The syntax of the layout file is simple and pretty self-explanatory but I'm curious about it ...
Is it meant to be hand-edited or is it generated from some tool or uti...
I'm writing an android app that I am going to want to create more content for (specifically images). I want the user to be able to download some type of image pack that will be listed in the Market. Obviously this download will not really be a new application, just a set of data that the user can download.
Thanks.
...
Hello,
I would like to create an Options Menu in my Flash AIR application for Android.
I've figured out already, that this ActionScript code could be used for capturing the hardware Menu button press event:
stage.addEventListener(KeyboardEvent.KEY_DOWN, _onKeyDown);
function onKeyDown(event:KeyboardEvent):void {
if(event.keyCode ...
Hello.
I have this sql statement:
SELECT game.game_id FROM game, userGame WHERE userGame.user_id = 1
AND userGame.game_id != game.game_id;
And I'm getting this:
1
1
2
2
3
3
4
4
4
5
5
5
I'm running the statement on a Sqlite3 database on Android 2.1.
The tables are:
USERGAME
--------
userId
gameId
more_columns
GAME
-----
gameId
m...
I'm working on an Android widget which essentially places a button on the homescreen. The button uses a selector in order to show a default state and a pressed state. Each state has its own image, as you'll see in the code below.
I already have code to change the hue of an image and return a new StateListDrawable for use in the ImageBu...
When you'r new at making apps, for example with Camera, it regularly happens that the Camera hangs after some kind of wrong commands given to it. you can't open the camera after this has happened until you switch your phone off and on.
I understand this can only be done by the system, but if there would be the possibility of giving the ...
hello guys,
Can anybody tell me what method of an activity executes when an application closes?. like i have a main activity and if i press back button on my phone. The Application closes so i want to know what method executes at that time.
...
I have created a custom dialog, And I have inserted two buttons, one is called send, and the other cancel.
I would like to know hot to close down the dialog when pressing cancel?
...
I am trying to write a program on an embedded system running GUMSTIX(Linux) to connect and talk to an Android 2.x device over bluetooth. The GUMSTIX is the client and the Android is the server. I am trying to find the channel number that my Android service uses so that the GUMSTIX can connect to it but for some reason my routine isn't ...
"Abstract class instation," you say. "Impossible!"
Here's my code:
public static AbstractFoo getAbstractFoo(Context context) {
try {
Class<?> klass = Class
.forName("com.bat.baz.FooBar");
Constructor<?> constructor = klass.getDeclaredConstructor(
String.class, String.class);
c...
What is your Emulator feature that you could not work without?
Which unknown great shortcut, console command or startup option is there that you discovered and you think has to be also known by all other Android devs?
Share your Emulator wisdom with us.
...
I am working on a few devices that need to send raw data to an android device wirelessly (wifi). The android devices needs to be able to support multiple devices so I figured a server is best. Is there a way to have the android device act as kind of a router/server access node by producing its own LAN network?
Any pointers appreciated,
...
Hi,on Android, i need an EditText with a fixed Suffix (A String i want to add to the text).Now i'm using a TextWatcher to catch the onTextChanged Event, but if i change the Text again adding my suffix, it goes on StackOverflow caused by an infinite recursion.
Sorry if is not sounds clear, but i'm a java novice and i have a bad english....
Is there a java yaml library as good as snakeyaml for Android? (Or is anyone successfully using snakeyaml on Android already?)
...
This gives me error:
EditText messageEdit = (EditText)findViewById(R.id.description_text);
Why can I not do like this on a eittext with lines?
This is how the Edittext looks like
<EditText android:id="@+id/message_text"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:lines="3...
Is there a generic way to determine if there is dialog currently shown ? Sure, i can keep track of all createDialog and dismissDialog invocations, but that's cumbersome.
thanks
...
View's have a minHeight but somehow are lacking a maxHeight: http://goo.gl/qRyp
What I'm trying to achieve is having some items (views) filling up a ScrollView. When there are 1..3 items I want to display them directly. Meaning the ScrollView has the height of either 1, 2 or 3 items.
When there are 4 or more items I want the ScrollView...