android

Demand for iPhone App ported to Android?

Although not really a programming question I believe many developers would have come across this and therefore give the best answer. Currently I am developing an App for iPhone for the organisation I work for. Its close to release and there is heaps of interest when I present it but the occasional question comes up am I going to port it...

Android: How to resume an App from a Notification?

I am trying to program my notification to RESUME my app, instead of simply starting a new instance of my app... I am basically looking for it to do the same thing as when the Home button is long-pressed and the app is resumed from there. Here is what I am currently doing: void notifyme(String string){ String ns = Context...

What fees are involved in publishing an android app?

Hey all. Im tossing up at the moment whether or not to start developing for iPhone or Android. The main thing drawing me towards Android at the moment is that apps are developed using Java, which I like, as opposed to Objective-C, which I hate. Really though, the next thing on my list is to consider the costs. Apple requires you to jo...

Send image(jpg) via HttpPost from Android to Servlet(WebServer)

Hi guys, I have an image sitting on my SDcard (of type jpg) and I am trying to send the image via HttpPost to my servlet running on Apache Tomcat 7.0 So far I have google-ing the way to do this but I can't seem to find the perfect way. Do any of you might have some suggestion or solution to this problem? Thank you in advance, Sammy St...

unable to get current location on SonyEricsson X10i

I am using SonyEricsson X10i phone. I have developend an application that just shows the current location of a user. Now the problem is When i turn on my application it just keep searching. It is not showing anything. Even if i try to use built in navigation system it does not work. I have turned on GPS receiver. My firmware version is 1...

Access variables within main.xml

Hello, I'm new to Android programming. I have a program that looks like this: Here is the main java block: public class MyAndroid extends Activity { private EditText input1; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstance...

How can I implement a fake phone call simulator in an android app?

Suppose I want to make a fake phone call app, similar to this iphone app: http://magictap.net/fakecalls/ I've got an AlarmManager that is set to send a PendingIntent to my BroadcastReceiver. Once the BroadcastReceiver receives the intent, I want the fake phone call screen to display on the device (suppose I already have the UI for this ...

Flash, Flash Builder, AIR. Three simple questions.

I have 3 questions to clarify my workflow of AIR apps: Can I use Spark components when I'm making a game with Flash CS5? Can I import SWC (created in Flash) in my AIR for Android projects when I'm using Flash Builder? Can I load a full SWF game (created in Flash) in an AIR for Android app (example: Main menu of the game written in MXML...

Capture two physical button clicks

Hey guys, How would I capture two clicks of any of the physical buttons (including the optical button)? Something like what QuickDesk does with the two clicks of the Home button. Thanks ...

google maps API and geocoder.getFromLocationName

I want to search for GPS locations for with Google Maps. I have already registered with Google Maps API, and got the key. I can successfully pinpoint my current location on a map. The next part is to search for items around the current GPS location. Approach 1: I tried using Android's geocoder.getFromLocationName("UPS",5) but I am not g...

Android gallery widget wont scroll with a child ListView

Hi! i have a problem with the Gallery widget... i have a gallery with a base adapter that provides some listviews.... The problem in this case is that the gallery wont scroll between galleries, since listview appears to override the scrolling of the gallery. Any solution for this? ...

Andorid custom listview problem!!

Hi I'm trying to create custom listview in andorid. When I try to access my arraylist variale historyArrayList in HistoryAdapter -> getView, historyArrayList always return me last added element arraylist. public class HistoryDetails extends Activity { List<HistoryInfoClass> historyArrayList = new ArrayList<HistoryInfoClass>() ; ...

Android test application on a real device

Hi, I'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2). In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'. The phone has the settings to accept installation of non android applicati...

android.intent.action.NOTIFICATION_REMOVE not available on all devices?

I've got a receiver set up in my android application to catch android.intent.action.NOTIFICATION_REMOVE intents. On my Evo, it works fine - when a notification is cleared from the notification bar, I catch that event and can run some code. I tried running this on a Samsung Moment though, and it is never caught. So now I'm trying to fi...

Images don't display but TextView contents is correct

I am working on an Android application that displays a list of items when a tab is selected, then displays detail information about an item that was selected from the list : Activity1 Tab1 -(intent)-> Activity 2: item1 item2 -(intent)-> Activity 3: ImageView1 item3 TextView1 ... ImageButton1 ... The ...

Android applications from unknown sources

I don't know if this is programming-related (much) but I've recently started playing around with writing my own applications. My phone is running cupcake/1.5. There is no "unknown sources" option, anywhere, at all. Carrier is AT&T. Does anyone know how I can overcome this issue? ...

Design pattern for object-relational mapping.

I have several related database tables and I would like to treat their rows as objects and their tables as something like lists. What are the considerations that I have to keep in mind (for instance, ensuring that the objects stay consistent with one another and with the database, lazy loading)? And what is a good design pattern for im...

android: changing a divider with setDivider in a ListActivity without a custom ListView?

I can't seem to get a customized divider, using a Drawable I've defined, to work when using a ListActivity and not creating a custom ListView. It almost seems like when the VM creates its own ListView for me, with the ListActivity, it uses a theme with the default divider provided; and if I try to provide one, no dividers appear in the ...

Why is "this.var" less efficient than "array.length"?

When I watched the "Dalvik VM Internals" talk, I had a question about one of the slides about wise loops. Here is two of the seven loops on that slide: (4) for (int i = 0; i < array.length; i++) (5) for (int i = 0; i < this.var; i++) and the speaks said (4) is more efficient than (5). "array" is just an Array object. My question is ...

Dynamic array instead of static when creating ListView icons and text Android

Hi, I am using this following code which creates a ListView with text and an icon but the problem that I have which the following I want the array to be dynamic instead of static so my list gets created dynamically not statistically. My ultimate goal is to retrieve specific strings from my Db and to display it then on the Listview where...