android

Android how to get selected item from data driven spinner

Newbie question. I'm using a SimleCursorAdapter to populate a spinner from an SQLite table, as shown in the Android dev docs: Spinner list=(Spinner)findViewById(R.id.cboModel); SimpleCursorAdapter ModelAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, model, new String[] {"Drug"}, new ...

Launch an activity at end of a phone call on Android

I would like to launch an activity at the end of a phone call. Could not find any reference to that. How can I do it? ...

Is it possible to launch an Android Activity from an AlertDialog?

I am trying to create a small pop-up in my Android application to let the user choose from one of many items, ala a ListView. I am hoping to make it show up as a translucent box that overlays on the screen, as opposed to completely occupying it like Activities usually do. One technique for doing this that I've heard is possible is to l...

Use Application within Application on Android

I'm writing a program for the Android Platform and I would like to implement the code of a preexisting application found here (http://blogoscoped.com/archive/2008-12-15-n14.html) There is a button in my application menu that says "Show Friends on Map" so I want this program to start from the button press. For greater detail I will give ...

android listview display all available items without scroll with static header.

I'm having a little difficulties while trying to get a certain layout to work: I want to have list. List does not have to be scrollable, but should be shown completely. But the page itself should be able to scroll (with the lists in it), if the total content ist higher than the screen. <LinearLayout xmlns:android="http:/...

Android browser download manager

Can I use android build-in browser download manager to download files in my application? In case of audio files, opening remote file url using Intent.ACTION_VIEW with data type "audio/*" causes browser to start playback, but I'd like to force download of specified file. ...

Android ListView different divider images.

In Listview i can change the divider image using "android:divider=image" but i want to display different divider images for different items how can i do that ? ...

Re-usable android layouts

I was wondering how everyone re-uses android layouts and components? Do you do the old copy/paste the existing code into the project, or is there a way to include the layouts and components into a jar file for re-use? EDIT: For example if I have a list view, maybe I have another view that I am using for each list item in the listview, ...

android detect locatoin using WIFI

We can detect code using gps, i want to detect location via wifi ??? how can i do that ? i want two threads simulataniously running one detecting locaiton using GPS another detecting using WIFI. ...

Android glCopyTexImage2D - Any Success?

Hey everyone, I'm porting an OpenGL app from the iPhone to Android, and I need to render OpenGL content to a texture. Since framebuffers are not available in OpenGL 1.0 and the DROID is the only Android phone with the framebuffer OpenGL extension, I'm trying to draw using OpenGL and then copy the result into a texture using glCopyTexIma...

can anyone tell me how to create the object of c++class in android through ndk

my activity is:: package com.soft; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class TestNdk extends Activity { TextView txtHello; private int m_cAddValue; private TestNdk m_cTestNDK; private int m_cObj; public TestNdk(int i, int j) { getSum(); } ...

How can i create cookies or sessions in android platform?

Hi, How can i create cookies or sessions in android platform? i am using one application like preferences settings. when ever i change the theme of android application need to store somwhere(?) the last updated theme name. is there any way to store values cookies in android platform? Thanks, Jeyavel N ...

twitter integration on android app

hello.. i want to integrate twitter in my android app.so that i can post messages on twitter..plz help.. ...

Network listener Android

Hi all, I want to check when the network of phone in android goes off can i capture that event .I am not getting the proper API or any example which would explain the same . If any one had done or any example links would be really helpfull Thanks in advance ...

Implement Search Field android

Hi all, on android i have big listview which has to support filtering. For now my implementation is the following. EditText and TextWatcher to listen for text changes. All data is stored in db and when there is event for TextChange fetch a cursor and set new CursorAdapter to the listview. I use AsyncTask to query the db and to update t...

Exponential function

hi, how i can convert decimal value to exponential value ...

MathML and Java

Hi all. I've been doing some research for a mathematical Android related project I'd like to embark upon and I stumbled across for the first time MathML. Does anyone know of any Java libraries which can do any (preferably all) of the following things? Parse MathML Output MathML by parsing standard mathematical notation Render MathML...

Android: using 9-patch and text for ItemizedOverlay on MapView

In my application I would like to mark different spots on a map. What I'm now wondering is if there's a way to use a simple 9-patch image and add the spot's name as text to it or would I need to draw everything myself (including the text) in the draw() method of ItemizedOverlay? ...

Android how do I support different phone version and screen sizes?

Some of my application's users are on android 1.5, some on 1.6, and some 2.0. So how do I release my app for all customers? If I release a 1.5 version, then the 1.5 phone can use it - but not the newer phones with smaller screens (aka Tatoo), they require 1.6 or higher? correct? Thanks ...

Why would an android user report "Force quits every time I load"?

I'm trying to guess why a user would report "Force quits every time I load" The problem does not occur for all users, especially not me. The system constructs a database when it first loads. I suspect that user's phone does not have enough memory. Questions: How can I verify that the system has enough memory to store a small database...