android

Key handling in Android

Im trying to make a gane and i need to be able to move an object with the help of the key pad. I tried using the basic event handlers, like onKeyDown bit how do i redraw the screen?? ...

is it possible to create the connectivity of android with ftp server

is it possible to create the connectivity of android with ftp server. i am going to create an application where login information about user is placed on ftp server. ...

storing double values in SQLite: how to ensure precision?

hi there! i have a problem with double values i need to store in an android homed sqlite database. since these double values represent gps values (lat & lng), i really NEED an absolute precision down to the 9th number after the comma. now i have a table like this: CREATE TABLE x REAL lng; and insert sth (hardcoded) like: INSERT INT...

Doubts in SMS Port Range in Android

Hi Guys, i have a doubts in using SMS Port range of Android.I want to know whether can i set the SMS Port range of android in greater than 32,000 Any Ideas on this? ...

android:layout_weight beginner's question

When I have the following, it shows top layout with four colors has much smaller area than the bottom layout area. According to http://developer.android.com/guide/topics/ui/layout-objects.html#linearlayout, when you add more to layout_weight, it should increase the area, but it decreases in the code. Any help will be appreciated. Than...

Android Integrated map doesn't work on my Ubuntu

I've been coded for a kind of integrated map Android app on my Windows. , Then, I've been switched to Ubuntu and tried with Eclipse.. Later, when I start my app, I couldn't see my integrated map on both Emulator and my N1. Any helpful idea is appreciated ? ...

Reusing an activity by changing elements properties

Lets say we have a main class with 5 buttons, where when each clicked go to an activity that displays information with 2 textviews. The layout for all 5 activities will be the same, so naturally I would want to use one activity and reuse it by changing the text displayed in those 2 textviews for each button pressed. How can I do this? ...

Creating a grid of scaled ImageViews [Android]?

I need to make a grid whose width and height is the same as the screen. I guess I would somehow use DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); to do this but I need to scale the images inside so that each ImageView is 1/10th of the width of the screen (with 10 images for ...

android chage style dinamically

Hi everybody! I've describe properties of my objects (nevermind what is the objects) in styles.xml. I would like to change these properties dinamically in styles.xml. Anybody know how can I do that? ...

Image from json url into a list view

Hi, I have got a tutorial to add custom objects into a list view from here... Now i wanted to know how to display an image along with text in the same process... ...

calling servlet based web service from android

Hi!!! please guide me the way of calling servlet based web service in android. ...

Android: Possible to create a small app-plugin-framework?

With iPhone, creating your own AppFramework is made impossible by the fact that Apple won't let your apps download binaries. One can understand this as it would potentially mean that people could set up their own App Stores (however unlikely it may sound). Is there anyone who knows of any such restrictions for Android? Just FYI: What w...

getting runtime error

i am getting error that the app has stopped unexpectedly as soon as i lauch the following programme on the emulator : package com.example.TextSpeaker2; import java.util.Locale; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import ...

[android] how to test Menu

Hello, I need to cover Menu functionality by unit tests, however I'm struggling to obtain Menu object. Following test case fails (mMenu is null): public void testMenu() { sendKeys(KeyEvent.KEYCODE_MENU); mMenu = (Menu) mActivity.findViewById(com.###.###.R.id.main_menu); assertNotNull(mMenu); } Please advice. Thank you....

Android, using Edittext.

Hi Guys, I've got a few questions about edittext.. I'm trying to create a login screen on Android. I'm taking in a username and a password and then sending the results to another method. I've just got a few questions about it... 1) If I have two edittext's and the user enters values in both and then hits a "login" button, I want the ...

Problem passing simple string parameter to .net webservice

Hi everyone, I have the following code which invokes a .net webservice. The code connects to the service fine, but the paramter(deviceid) does not appear to get passed. The method simply returns the passed deviceid which is always null. This is telling me the deviceid parameter is not being passed. I thought I saw someone recommend a p...

AccountManager without a SyncAdapter?

I'm trying to use AccountManager to store account information and have implemented an authenticator, but I keep getting exceptions like the below that crash the phone. Comparing with sample code this seems to be because I don't have (or particularly want) a SyncAdapter and associated service. Is there a trick to using AccountManager wi...

Android: Image cache stategy and memory cache size

Hi Guys! I'm implementing an image cache system for caching downloaded image. My strategy is based upon two-level cache: Memory-level and disk-level. My class is very similar to the class used in the droidfu project My downloaded images are put into an hashmap and the Bitmap objet is wrapped inside a SoftRererence object. Also every ...

how to save login details of android app ?

i have a android application which needs username and password to login, i need to save the username and password locally in phone or some where to use them when the user opens the app next time and logins to the app automatically without showing the login screen EditText input1 = (EditText) findViewById(R.id.usertext); Edi...

Activating multiple APNs on Android

Hi, Is it possible to create and activate an apn programatically on android? Is it also possible to activate more than 1 apn at the same time? thanks! ...