I'm using an xml defined animation to slide a view off the screen. The problem is, as soon as the animation completes it resets to its original position. I need to know how to fix this. Here's the xml:
<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator">
<transl...
I would like to run a custom shell script upon clicking Build Project in Eclipse. I tried modifying the "compile" section in build.xml, but my script is not getting run. Invoking ant debug on the commandline works, however.
...
I need a fix for this strange problem appearing in android. Sometimes I notice that even I have full cellular network, data network is lost.(Not able to connect to internet although have all set properly). This possibly occurs after I leave wifi. A quick fix to make it working is toggle 2G/3G option in settings --> Mobile Networks, which...
Hello I would like to get the cid from my cell phone , I am currently using this code to do that :
GsmCellLocation gsmLocation = (GsmCellLocation)telephonyManager.getCellLocation();
int Cid = gsmLocation.getCid();
Log.e("#############","current cid is: "+Cid);
int lac = gsmLocation.getL...
Hi,
I'm totally new to Android.
I would like to put in a textbox where user can enter an IP address ... but how do I limit the user to only enter numbers? ... and how do I validate?
Is there a ready-made-ip-address-textbox "out there" I can use?
Thanks!
Mojo
...
Currently I am attempting to change the drawable image of the Thumb of a seekbar in android. In the onCreate() method I am able to effectively change the thumb using the following
mSeekBar.setThumb(myDrawable);
However, after the onCreate method is called, I attempt to change it again using a different drawable with the same method ...
Hi guys is their a way to put a POJO inside the intent.putExtra?
i have looked into the API's and it only seems to support of type string, int, double, boolean etc but not a actual POJO/regular java object.
Thanks in advance
...
I have some large files (images and video) which I need to store in a content provider.
The android documentation indicates...
If you are exposing byte data that's
too big to put in the table itself —
such as a large bitmap file — the
field that exposes the data to clients
should actually contain a content: URI
string. This...
hi there!
i'm currently working on an app for the android os that requires to fetch data from a remote server from time to time.
as this "update" should be carried out even when the actual frontend app is not running, i implemented a remote service that is started on system boot. now i need to schedule a timer to start the update.
is ...
Processing has Android support and it seems to be pretty awesome from my 10 minutes of playing with it. But I would like to make a regular (nongraphics) application like a twitter feed reader or something. So is there something like Processing that can do regular apps? Besides Titanium...
Basically I am looking for anything that will...
I have a ListView that I'm binding to an adapter. The adapter is a protected member of my main class. I have a listener thread that receives data and updates the source list for my adapter. When I call the adapter's notifyDataSetChanged() method, an exception is thrown:
Runtime Exception: PhoneLayoutInflater(LayoutInflater).inflate(i...
Hello, I would like to create a zip file from files located on the sd card, I have managed to do that using java but I think that the result is too slow, so I thought of going native using the android NDK.
My questions are:
Does anyone know any C/C++ library to zip unzip files that will work on android?
How to know if the library wil...
I have follow an example of an opengl application and I don't know why is this thing happening...
I have a GLSurfaceView with it's corresponding renderer drawing a triangle. But, instead of getting the whole view on screen, I have just the upper half, and it's also duplicated as you can see on the picure. I'm using a Nexus One
the xml...
Is it possible to initiate an outgoing call without having the phone invoke it's default dialing screen? The point is to be able to make a call without someone knowing I'm making a call.
...
Hi!
the app i am currently building needs to perform a login with username and password. I am using the DefaultHttpClient to execute the request and setting the username and password as credentials.
the server expects a htacces-login.
The Result i get is not the Logintoken i hoped for. Instead it returns an Errormessage.
Can anybody tell...
I tried to retrieve Cid and Lac for currently connected cell, but using
public void GetCid(){
int CID;
int LAC;
GsmCellLocation xXx = new GsmCellLocation();
CID = xXx.getCid();
LAC = xXx.getLac();
Toast output = Toast.makeText(getApplicationContext(), "Base station LAC is "+LAC+"\n"
+"Base station CID is " +CID, Toast.LEN...
I am working on Android. I try inside a terminal execute
java -jar hierarchyviewer.java
And i have this error
11:46:48 E/adb: Failed to get the adb version: Cannot run program "adb": CreateP
rocess error=2, the system cannot find the file specified
I can run the hierarchyviewer.jar from /tools/lib (double click) i can see the grafic ...
I have PopupWindow, which I'd like to place in the center of the screen. However, I only have access to the KeyboardView (since I'm implementing an IME) at the bottom of the screen and whenever I center my PopupWindow by using the KeyboardView and Gravity.CENTER it is of course only centered above the keyboard, but not in the whole scree...
I'm trying to use multi-touch in an Android 2.0 app. How can I simulate this with an emulator using Eclipse? I can only seem to get the mouse to do one touch at a time.
Thanks,
Gerry
...
Hi, i am doing a debug key and i can't. Im stuck here:
"Once you have located the keystore, use this Keytool command to get the MD5 fingerprint of the debug certificate:
$ keytool -list -alias androiddebugkey \
-keystore .keystore \
-storepass android -keypass android"
i located my keystore, but i dont know how to put that order.... i...