How can I clear catch memory in Android?
Hi Friends, I want to clear catch memory when I close my application in Android. A code example would be helpful. Thanks ...
Hi Friends, I want to clear catch memory when I close my application in Android. A code example would be helpful. Thanks ...
I'm rotating a view containing an arrow in my app using the Matrix class. However, the arrow doesn't rotate around its center but moves a bit horizontally and vertically when rotating. I've experimented with margins and padding but without success. Any hints much appreciated. ...
I am writing an Android Library Project basing on Android Bitmap class (call it AndroindLib) which contains only utility class (no activity). I tried to test it using Android JUnit, but it keeps complaining that can't find the AnroidLib.apk What's the right way to Unit test Android Library Project? Thanks. Lily ...
Hi I'm a bit of a novice developer looking for help from someone who has more of a clue then me lol. So I'm working on a project which you can download here, Eclipse Project Link Sorry for the suspicious link but it's on my site and you can check it for viruses. Ok well I need help adding settings to choose which texture to show you sho...
I am currently working on an app that uses a broadcastreceiver to check for incoming text messages, but all of the sudden it seems to have stopped working, I even wrote a small test application that, to me at least, seems syntactically correct, but also is not functioning. Here is the code from the test project: The manifest: <?xml ve...
My company is attempting to publish its first Android app on the market, and we have gotten to the code signing step. We have keys that we use for our other products and use the windows codesign tools to sign our products. We would like to use the same key to sign the Android app, but (obviously) cannot use the windows signing tool (beca...
I have 2 questions that I was hoping someone could help me with. Is there a way to create a class on the fly with android/java and also add variables to the class? For example I would like to do something like this: Class c = new Class(); c.name = 'testing'; c.count = 0; c.getName = new function(){ return c.name; } Just wondering i...
Hi, I have a strange issue - from time to time the animation that should fade out my control (ImageButton) does not kick in immediately. I am using the fadeout animation to hide it and then in myListener on its end (onAnimationEnd) I put new resource as the image on the button. Somewhere in my app code: Animation a = AnimationUtils....
Hello, I try to establisch a HttpsURLConnection with: HttpsURLConnection conn = (HttpsURLConnection) new URL(url).openConnection() but I get an Exception: E/JavaBinder( 901): java.lang.ClassCastException: org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection But I can't find out, why. The same example is everywh...
I want to use Admob in my app. I've downloaded the SDK and followed the steps. Sometimes, I get an ad in return, but most of the time, I get an entry in LogCat that says "Server did not find any ads" or something to that effect. Test mode is enabled, says the Admob site. I think I might be doing something wrong. Where can I get a step-by...
I have a user who has the following error immediately whenever he tries to compile any project in Eclipse 3.5, with Android ADT plugin, Android SDK (android platform v2.2), running on Vista. I've Googled various pieces of the error message and can find nothing. Obviously something is misconfigured, but I don't know what. org.apache.poi...
I'm trying to create the simplest 2D drawing program possible to isolate what exactly I can't figure out about drawing. This program should literally just draw a 20x20 rectangle. Here's what I have: layout: <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orient...
Hy I want that my prog wait 1000 ms and change the title of the button... but the prog appears with the changed name package com.catchthebutton; import android.app.Activity; import android.os.Bundle; import android.os.SystemClock; import android.widget.Button; public class test extends Activity { /** Called when the activity is f...
Hello, I'm developing a game for Android, and I made it using OpenGL ES 2.0. Now I want to add support for devices that do not have OpenGL ES 2.0 support, and use OpenGL ES 1.0 instead. My problem is that I can't seem to detect the right OpenGL ES version. I used the example in the SDK, but it simply returns 0 on my Legend. This is w...
I am trying to determine how to structure the code of a simple android game I am writing. I am focused on the UI portion. The behind the scenes portion (like a pause/restart/switching/etc) does not concern me. The Android demo games source code already do a great job with this. Essentially my game will need a UI with a series of obje...
I have an application that uses sockets to connect to my server. A lot of times the application lies "dormant" when it doesn't need to send info back and forth to the server. When that happens, occasionally it will disconnect. How can I determine when the socket has disconnected and then try to re-establish a connection? I've used so...
I am trying to record a pcm sound file and play it back. When I play it back, it sounds slow and takes longer than it did to record. I'm not sure if the error is in the record or play code. Any ideas what the problem is? I largely copied code from this example: http://emeadev.blogspot.com/2009/09/raw-audio-manipulation-in-android.htm...
Hi! I want to move avd file to another location: android move avd -n titanium_6_HVGA1 -p c:\avd but I get as a result help for java: Usage: java [-options] class [args...] (to execute a class) etc... Oh, I just checked, I could run android list without any problem, but now I am getting the same as for "android move.." c...
hey Guys, I'm still an Android & Java noob, but everything I've seen is telling me this should totally work, but it doesn't! not in the emulator, not on the phone.. I'm trying to use the vibrator using vibrate(500); ..I get an " application stopped unexpectedly " error what am I missing? code below: package com.phys; import androi...
Is there a limit on number of apps you are allowed to upload to android market after you pay the 25 dollar registration fee? Or is it 25 dollars for each different app? ...