android

Map activity crashes on invoking it!!

My Map activity crashes on launch. I have included all the permission and also tested on a new standalone map project where it worked perfectly well with the underlying code. Rather when I incorporate the same code in my application, it crashes as soon as this activity is invoked. I have a project submission tomorrow morning, so please ...

How to know what Activity has started the current Activity

How can I know what Activity has started the current Activity? Is there any specific method like, i.e. getIntent().getCallerActivity() or the only way is saving some information within the Intent using putExtra()? Thanks. ...

android: InputConnection from different thread

does commitText() method of android.view.inputmethod.InputConnection allowed to be called from different thread than UI thread? ...

android, drawable resource loaded to memory?

does all resource (all in res folder if on eclipse IDE), specially drawable image, is loaded to memory during runtime? or it is just like a file which is available when the application need it? ...

Android: soft keyboard efficient key press effect?

on softkeyboard, which one is better to give user a visual feedback during keypress: 1.redraw portion of button that was pressed to background canvas of main View to give pressed effect 2.each button has its own "pressed" View, and that View is set to visible (flashing) during keypress event (so no redraw needed but need more memory) I...

How to add XML drawable in Eclipse

Ok guys I'm little stacked here. According to official documentation Google says that "Once you've defined your Drawable in XML, save the file in the res/drawable/ directory of your project." is the way to add a XML drawable to the project. But when I created the project ADT created 3 different drawable folders for mdpi, hdpi, and ldpi....

Eclipse won't start a new Android project anymore

A few weeks ago, I followed a tutorial to get Eclipse and the Android Development Kit up and running. I successfully built the test application and ran it on a virtual device. Tonight I finally went back to do the next step in the tutorial, but when I went to start a new project there wasn't an option to start a new Android project. Eve...

Suggestions to improve Activity Performance?

friends, i am using following global variables in my activity private String Session_ID; private String uid; // menu item starts private final int Trash = 0x003; private final int More = 0x005; private final int SignOut = 0x006; private final int SignIn = 0x007; //menu item ends private EfficientAdapter adap; p...

Detecting a 4G capable device

Hi, I need to detect the 4G capability of the device. How can I do that? Thanks for any hints. ...

Controlling Display Refresh Rate on Android Device

Hi. Not yet a developer, just trying to find out if an android app can do what I need.. What I need: Simple app that displays a full frame of a single color onscreen at a certain intensity at a fixed frequency! I need it for a synchronization purpose with as high a resolution as possible (achieved by changing an intensity in a known p...

How to differentiate between Mulitple alarms in android

Hi All , In the Android app which is getting developed, i have multiple alarms. I want to initiate, different actions on different alarms. How can i differentiate or determine , exactly which alarm has been fired?? Rgds Yaaga ...

Play video in device's default player

Intent browserIntent = new Intent("android.intent.action.VIEW", Uri.parse("http://64.250.238.26:1111/clips/bigbeach2.mp4")); startActivity(browserIntent); i use above code for play video clip through browser... can it works??? ...

Showing detail from a ListView

What is the correct way of showing a new View with more detailed information from a ListView in Android? It's a topic that I can't find a solid answer for in either of these Android books. For example a list of contact names, one is selected and a view shows their full details. Do I launch a new activity for this or use a ViewFlipper? ...

android gallery without background

Hi all , i followed the ApiDemo to create a gallery. but i don't need the background of each item , so i marked these code: public ImageAdapter(Context c) { mContext = c; // See res/values/attrs.xml for the <declare-styleable> that defines // Gallery1. **// TypedArray a = obtainStyledAt...

convert file to Xml in android

Hello I am using Android 1.5. I am using database to save the user details.My requirement is like if two users want something to share between then the data in the database should be converted to XML file and sent to the server. Is there any way that i can achieve this in android. Is there anything like plist in iphone for android as wel...

android application public release issue

Hi guys, after finishing my android application development i used the command showing below to get private key, but it shows some errors such as "The Keystore was tampered with or password was in correct" $ keytool -genkey -v -keystore DEBUG.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 Is my problem with DEBUG...

Android Binding from SQLite to Gallery

Hi! I am just starting out with Android and I am attempting my first test app, but I am a bit stuck. I have an SQLite database and a user is selecting a picture and a reference to this a long with a short description is getting stored in the database. This is all working fine, now I want to bind the images from to database to a gallery...

Two searchable.xml activities in one AndroidManifest.xml

I have an Android app which has a few different activities for browsing articles and images downloaded from RSS. I'd like to be able to offer to hook up the search button to the Search dialog, using the a searchable.xml file. I've managed to do this with one search, using: <activity android:name=".search.SearchResultsActivity" ...

TextView on Canvas

Is it possible to add TextView and ImageView on canvas? ...

Testing package's classes with JUnit.

Hello. I'm developing an Android application. I have a package to access SQLite3. It isn't a ContentProvider. How can I test the package's classes using JUnit? Thanks. ...