android

Andrioid shake detection on emulator

Hi, I am pretty new to android. I have a use case where I need to detect a shake and show some images in my application. Can I test shake functionality on android emulator ? What are the other alternatives apart from testing it on a real phone ? ...

Mobile development recommendation

I want to start develop mobile applications and sell it. There are many mobile platforms for which I can begin develop: Windows Mobile , Android, Iphone, Linux based Devices. I want to find out from people who has such experience which platform more comfortable and more profitible for me to use. ...

Unlock Key Component

Hi, I have almost completed my Android application so am considering ways of distributing the application. I have seen some applications on Market have free limited/locked version and separate Unlock Key/License Key which unlocks extra functionality. How is this done? Has anyone here done this? If so, how well does it work? I am thin...

How does an Android/iPhone device implement text-zooming?

Simple question - how is text-zooming implemented on an Android/iPhone device? Do they pre-compute frequently used bitmaps of a font and replace the text as the scale changes? Or do they extract the contours from the font files and render the text as vector graphics? ...

android calendar delete event

I am using the Android calendar. How can I remove a calendar event using code? Is it possible? For clarification, I would like to mention that I don't want a sync process or want to remove events using gdata api. I only want to remove a local calendar event. ...

softkeyboard in landscape mode does not pop up in android emulator

In android emulator, I am in landscape mode and double click the text edit panel. the softkeyboard does not show up. However, it works in portrait mode. I have check some of posts on line. They said because of hardkeyboard is available in landscape mode. If that so, how can i disable the hardkeyboard. Or is there any setting reason for...

How to find the geolocation of an android user from webpage.

I am developing a webpage which requires the userlocation for loading some data. The web page is mainly intended for android users. I need to find the geo location of the user when the user opens that page? How can I do that? ...

Retrieving Json Array

Hi, I am trying to retrieve the values from the following url: http://rentopoly.com/ajax.php?query=Bo. I want to get the values of all the suggestions to be displayed in a list view one by one. This is how i want to do... public class AlertsAdd { public ArrayList<JSONObject> retrieveJSONArray(String urlString) { String result = que...

Service binding relation

Can one service be bound to n activities? ...

extract android 1.6 calendar fields to vcal

Hi, I want to extract android 1.6 calendar fields and put them into a vcalendar file my problem is that i can't find some fields in the database like: DTSTAMP UID LAST-MODIFIED SEQUENCE does anyone have a clue on how to find them? thanks! ...

Android System Design suggestion

Hi, in my system i have component dispatcher, which in one side listen to a server and get messages, and from the other side dispatch the meassage to the right component. now about the components in the system" let's say component: A which doing some operation(and finish) and component B(which doing another operation - and finish). now...

Set initial focus in an android application

In my android application it automatically focuses the first Button I have in my layout, giving it an orange outline. How can I set the initial focus preferably in XML, and can this be set to nothing? ...

Invoking activity that is located in a jar

hi i tried to invoke another activity from my main acitivty which is located in a jar file. Class clazz = Class.forName(getPackageName() + "." + getActivityName()); startActivity(new Intent(this, clazz)); Im doing it this way because i only know the name of the class. This works fine but unfortunately, all resource files ca...

How can I lock files in android using java code?

I want to lock files that is on the sdcard of android. I need to lock them so no one except my software can delete copy move or send them over bluetooth or any other way. How can I do it? ...

Something wrong with the droidDraw !

When i press the butt on of the "send the GUI to device" showing the info "upload failed.is androiddraw running?" what's wrong with it? what should i do ? ...

to find the last 7 days Records in sqlite?

i would need to know the past 7 days record. i want to wrote a query for that in where condition. i have very basic knowledge in sqlite. Please help me for this query. ...

android: Check if a View is bringed to front

Hi Guys! I made a custom component which simple extends a WebView This component is used into activities that are loaded from a tabhost. This component creates a timertask too. I'd like to execute the task only if the activity that contains the component is visible. Ex: public class MyWebView extends WebView { public MyWebView(Conte...

Is it possible to retrieve an image from the data folder in an android app?

I want to retrieve an image from my data/data/com.apps.myapp/images folder and display it in an ImageView. Any clue? ...

How can I add files to java app in android so I can get it path?

I want to add files to java app in android so I'll know their path and can access them. How can I do it? (It doesn't matter where they will be the most important is that I can access them and I'll know the relative path of the them) ...

Monkey command on android phone?

Hi guys, I'm ok using monkey command on the emulator but is it possible to launch it on a phone i'm using for debug? ...