android

what is the use of tests present in android source code?

If u have downloaded any android source code u would see a test folder present for almost all applications and base framework. I wanted to know whether we build the test code too while building sdk from source code or is it just for our reference. If it is for the latter, what is the best way to use it. Please post me the exact use of te...

What are gestures in android?

Can anyone explain me about gestures? What are their use? Can u tell me any practical ideas where we can implement them? ...

Contacts created with Android emulator (2.0) not beign seen

I created contacts with the emulator for v 2.0. However, my i am unable to see these contacts. One of the Errors i get even before my code that executes the read contacts is; Cannot determine the default account for contacts compatibility See below for full stack: E/ContactsProvider( 109): Cannot determine the default account for con...

Tcp connection another android device, based on phone # instead of IP?

For the current Android application I'm working on, I'm looking to create a tcp connection between the user device, and another Android device based on the phone number instead of the IP address. IE the user would open your contacts list, and be able to create a tcp connection to a contact using the same application as you. I seem to re...

How to draw line on the LinearLayout ?

Hi guys. Do you know how to draw line on the LinearLayout ? To create a LinearLayout, I am using resource xml. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_layout); LinearLayout linear = (LinearLayout)findViewById(R.id.linearlayout); //I wanna dra...

Configuring Android Web Applications

iPhone web apps have four configuration features available (not including the HTML5 application cache) to configure how web pages behave when you save the web page to the home screen as a bookmark. You can specify the home page icon. You can specify a startup image that displays while the web page is loading. You can hide the browser U...

Android WebView touch event link

Hey, I have a webview with a banner and when I click on the banner there should open a second webview that follows the link. How can I do that? I have created the first WebView and it shows my banner but when I click on it, it opens the link in the same WebView. How can I catch any events in the WebView when I click on a link that it s...

How to make Android applications compatible with different screen resolutions?

How can we resize our application for different screens on different Android devices? ...

Testing android apps..

What exactly are mock tests...I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how.. ...

Can I run run an android application as a standalone desktop application without an emulator?

Is it possible to develop an android application aimed at mobile devices and also use the same code to execute on windows, linux or osx as a standalone java desktop application without using an emulator? I.e. to have the look and feel of a conventional java application running standalone? ...

Android Virtual Keyboard KeyListener for getting Virtual Keyboard key presses

I want that on each key press I require to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user presses Enter or Done key, Please Can I Find a Resolution for this ...

Accessing an sqlite database in Android

So far we have developed apps in android that create database on runtime. We like to know how can we access a pre-built or existing database/sqlite file in our android app? Please provide detail ...

mock tests in android

what is mock testing..How can we do mock testing..how to create mocks..when to use it ...

How do I deploy HelloWorld app to HTC Eris Droid?

This is a newbie Droid question, but how do I deploy an application to the HTC Eris? I have the Eclipse ADT plugin and I am able to run the emulator, but now I want to push it out and try it for real. Can someone point me to documentation that shows how to do this? ...

How do I simulate that the emulator has as an SD Card?

Can I simulate an sdcard presence in the android emulator? ...

How to create IM chat client for Facebook in android?

I would like to create my own chat client for facebook IM in Android. I created xmpp jabber protocol in java but i dont know the host name and port number of Facebook IM server. Can any one let me know the Facebook's IM server host name and port number to communicate. ...

android listview scroll to number of listitems

I am using Listview, i want to scroll down to list's 10 item when view get loaded, how can do that ???? ...

buiding android sdk

how to build sdk from source code ...

Can't get localized strings from xml files correctly

I've been racking my head with this... I've got a localized strings.xml file in a values-en folder with this example string: @string/my_string The string has the following text stored in English: "My String" When accessing the localized string via a layout, it works fine. When I try to change it in code, that's where I get problems. ...

OpenGL in Android

Since the latest android update came out, I haven't been very active with the new sdk. In fact, I don't know much about it. What I'm particularly interested in is of the changes that occurred, if any, regarding opengl. Did the implementation change? How would i go about writing a game in opengl for android with sdk 2.0? Thanks ...