Hello,
I am new to Android development and I have a problem that I have been working on for hours with no success. I want to create a cross-hair in the center of my Google map that stays in the center even when the map is panned. I have a .png image of the cross-hair in my drawable directory. Additionally, I have a MapView that displays...
I need to cancel a repeating alarm when my app terminates. The problem is I have several activities and since they can be killed at any time, how can I determine when the last activity is being shutdown so I can call my alarm canceling method?
...
Hi,
I have troubles with OpenGL textures on Motorola Milestone with 2.1 firmware. Each call to glGenTextures fails with error GL_INVALID_OPERATION and sets the id with random numbers. The exact same application works on G1 without any error.
Does anybody have a hands-on experience with a similar issue and knows a way around?
...
The following code executes a function that retrieves a file via ftp and then displays it in an imageview. Since I'm using the main thread the UI locks up, somebody tells me I can use asynctask to make this work but I can't figure it out :<
Is anybody familiar with this that could offer me some guidance?
package hhh.ggg;
import androi...
I've been trying to write a little application that recognizes custom events in Android: you hold your finger over a TextView for a certain length of time, and it changes color. I'm using the MotionEvent coordinates and checking if they are within the bounds of a particular TextView, which is within a table.
private boolean checkBoun...
Hey everyone,
I have an app with an SMS receiver set up, but even if the sms receive function is turned off using the package manager, the app will go to the top of recent applications (when holding the home button) if a sms is received. How can I stop this behavior?
Thanks for any help in advance.
Cheers!
...
I'm trying to load a html page from the assets directory. I tried this, but it fails.
public class ViewWeb extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WebView wv;
wv = (WebView) findViewById(R.id.webView1);
wv.loadU...
I'm managing dialogs by showDialog/dismissDialog/removeDialog.
I want to:
Display several dialogs in kind of a stack:
a) First dialog is shown using showDialog(DIALOG_TYPE)
b) Next dialogs are shown on top of the existing dialog
Now I'm only able to display first dialog using showDialog and then next dialogs are ignored.
Display ...
I remember reading somewhere that you could make two android apps share the same user id, but I have heard conflicting information from other people. Is it possible to make two apps share the same user id and if so how is it done?
...
I have a Service singleton class with static methods that I call from the same process. I call startService when my Application starts. I also call bindService, but now I am wondering if that is really necessary.
...
I'm having a problem with emulator-5554, it keeps telling me it is offline.
When I do a 'adb devices' from the command line it says
emulator-5554 offline
Even after a fresh restart, I try that command and it still says it is offline.
The problem is when I try to install .apk files to the emulator using 'abd install path' from the co...
I have a username as password which I need to send to a website as part of an android application (yes it is https), and once submitted to the seerver via POST, the server should return cookies. I need to be able to capture these cookies, and allow them to be accessed in a webview which I have settup.
How would I do this?
Thanks
...
I am getting this message at step 6 of the instructions from this wiki:
http://wiki.cyanogenmod.com/index.php/Building_from_source#Prepare_Kernel_From_Source
Input:
make ARCH=arm CROSS_COMPILE=CCOMPILER oldconfig
Error Message:
make: * No rule to make target 'oldconfig'. Stop.
can someone help?
...
My activity gets set as the default Home by the user, but I want to be able to launch the default Home from within my activity as well. I've tried hard coding the following:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_HOME);
PackageManager pm = getPackageManager();
String packageName = "...
What do I do if tv.setText(Html.fromHtml(text)); takes too long, and hangs the UI?
If I can do it with a thread, can you provide an example?
...
I'm using a SQL database to store a single float value, and I'm really having trouble getting my brain around everything that needs to be done to make it work. I've been reading the NotePad tutorial Google provides for a few days now and Googling around but it just isn't clicking in my head.
Could anyone explain to me (no code needed) ...
and if this application exist does it has an open API?
...
i am using the camera.setSmoothZoom(i) function of the Camera class but its not helping me out. i have tried out camera.getParameters().setZoom(i) function but still i am not getting any success. Does anyone know how to zoom in/zoom out on android phone camera..
thanks in advance..
...
I am writing an app that is meant to be run during a call. After the user makes a call, and starts my app, I want my app to be able to know if the call is dropped from bad connection. Is this possible? Thanks
...
Hi all
I tried to write some text on a surface view I created. It works fine, if title is false, and there is no linebreak added to the text. But if I add a title and therefore a linebreak, the linebreak isn't printed as expected, but instead there is this symbol [] printed.
Any hints why?
@Override
public void drawObject() {
String t...