I'm trying to learn how to build apps for Android.
The first simple app, which will become a component of a bigger app I hope to build, is to have a button on the screen where, when tapped, it adds something new to the view.
For instance:
Imagine a layout that only has a button:
[Create!]
When that button is pressed, the view gets ...
public void MoveMyButton (int x) //where the button suppose to move to
{
TranslateAnimation anim=new TranslateAnimation(this.getLeft() ,x, this.getTop() ,20));
anim.setFillAfter(true);
anim.setDuration(1000);
this.setAnimation(anim);
anim.start();
}
button's x at start is 1.
I call the method to move it to 100, and it goes from 1 to 1...
I have a thread running in my program When Mouse-down Event generates I want to put that thread in wait() and in Mouse-up I want to Notify that thread
But when I tried to do this It is giving me error like "Object not locked by Thread" so can anyone help me how to solve this..
...
I create a program to add check boxes dynamically.But i cant scroll down.I add the code here ,Pls HELP......
package dyntodo.pack;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.Butt...
How could I set x,y coordination of an ImageView ?
The layout of application is AbsoluteLayout, I tried to call layout() but seems not working (the ImageView stay at 0,0) and setPadding() seems not a feasible solution because I need to do collision detection later.
Sorry, new to Android, thanks in advance.
...
I'm trying to figure out the best way to make an image rotate along
with a user's finger dragging it left or right. I want to try and
match the rate a user's finger is moving with the rate the image is
rotating.
I've got the basic setup for my application going, with the menus and
whatnot I want to have, and that's all running great on...
In Android, if I want to do some background work, what is the difference between
Creating a Service to do the work, and having the Activity start the Service
VS.
Creating a standard java class to do the work, and having the Activity create an object of the class and invoke methods, to do the work in separate thread.
...
I have just started learning to write apps for android using Eclipse. Where can I find free source code that I can use during my learning experience? Thanks.
...
I wanted to change the divider height dynamically. From whatever I have searched it seems that it is possible through setting divider as part of each item in listview. But I am not very clear with this.
So, can someone be more specific as how can one make the divider as part of item in listview?
...
How to capture the android device screen content and make an image file using the snapshot data?which api I should use or where to find related resource? thanks in advance!
BTW:
not camera snapshot,but device screen
...
Hi
I am running eclipse on windows XP.
I am trying to make changes in Default Contact Application and make it a separate apk file.
But due to dependancies on other libraries it's showing me compile errors.
How can this be resolved? So that I can make a new contact application using current code base.
Thanks,
Saurabh
...
Hi I am new to android Programming and NDK.Yet i am not clear with working in NDK.I just downloaded android ndk r4.If i want to develop appln using NDK,and i refered
http://marakana.com/forums/android/android_examples/49.html
for reference,But still not clear how to create the header file and implementation,I did nt have any previuos ...
Hi. I'm in the middle of developing android app using google map. My question is - how to store coordinates with google map and display them later on? I know how to use canvas, how to draw it etc. but I want to store those coordinates with google map - just like with the google maps feature on internet. When I log in I can see points I'v...
I've an android application that needs to navigate to a google service webpage (say calendar). Because I already have a Auth Token (using Android Accounts manager), I want to skip user being redirected to web login. Would auto-login be possible using authtoken ?
If yes, what is the exact Url with params
...
I want to develop an android application, but i dont want to use the default controls(buttons, checkboxes, radio buttons, etc.,). Is there any way to customize those controls to make it appear nicer. If so some tutorial or guide will help me a lot. Thanks....
...
I'm trying to download a website source code and display it in a textbox but I seem to get an error and can't figure it out :s
public void getHtml() throws ClientProtocolException, IOException
{
HttpClient httpClient = new DefaultHttpClient();
HttpContext localContext = new BasicHttpContext();
HttpGet httpGet = new HttpGet(...
Hi guys. Can someone please tell me how to change tab by clicking on element INSIDE the tab? I already tried it with global data. The code looks like this:
public class Tabs extends TabActivity {
int tabNumber = 0;
private TabHost tabHost;
int returnedTabNumber = 0;
/** Called when the activity is first created. */
@Override
public vo...
Hi i have imageview inside layout when i touch the view in emulator its taking more than one events why please tell me what is the problem.
Thanks
...
heyho,
i want to show an image (left cell) and text (right cell) in a tablerow.
my problem ist that the text-view ist floating outside the visible screen, so i can't see the wohle text (text should break at the visible right end of screen). I#ve tried to set a maxWidth with a pixel value but that doesn't work...
maybe anyone can help m...
I'm wondering how Android's implementation of SQLite handles long Strings. Reading from online documentation on sqlite, it said that strings in sqlite are limited to 1 million characters. My strings are definitely smaller.
I'm creating a simple RSS application, and after parsing a html document, and extracting text, I'm having problem s...