android

small image on large image

Hi, I have an Image of size 600x600(dont want to resize it). So the image is scrolling vertical and horizontal. Now I have to put other small clickable images on this mainImage at different point(points are dynamic eg. at(100,20), (500,500) ). Number of small images to be drawn its also dynamic, so I cant use xml layout for UI. How can...

increase the memory capacity of the android emulator

How to increase the memory capacity of the Android emulator. i have 16MB binary file which i have to parse. but when i execute second time it says Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE. can anybody help please. ...

how to place one activity on another activity.

friend's, i have an task to set horizontal swipe tabs below the header,how can i set an activity on another activity. ...

Android Dynamic Array

Hello all, I am parsing an xml file through Android Pull Parser technique. first, have a look at the below xml file: <childs> <students> <name> hello </name> <address> xyz </address> </stdents> <students> <name> abc </name> <address> def </address> </stdents> </childs> Co...

Is there a standard ImageViewer on Android?

There are some applications out there, that use a kind of standard way for showing images to the user. There is one i specially like, is the Facebook one. Facebook presents images to the user in full screen mode, with a black background. If user clicks on the image, there appears a left and/or right arrow to move to next/previous image i...

Andrdoid SimpleCursorAdapter / Listview problem

Hi all, I have a problem displaying the results of an sql query into a list view via SimpleCursorAdapter. This is my query: String sql = "" + "SELECT (Clients.firstname || \" \" || Clients.surname) AS client_name, " + "Visits._id, " + "Status.status, " + "strftime('%H:%M',time(sql_start_date,'unixepoch')) as start_time, " + ...

How can you add an app in the car mode UI ?

How is it possible to programmatically add an app to the car mode UI in android 2.1+ ? I have not found any API calls or manifest parts that can do this - is it at all possible ? thanks, Peter ...

How to convert motion sensor data from Iphone to Android?

I have some motion sensor samples that were recorded with an Iphone. Now I'm into calculating a distance between a user gesture and the gesture that was recorded on the Iphone. My problem is that the sensor data on the Iphone is represented in a different way then the android sensor data. If i don't move the Iphone I get data between -...

how to intent a dialog when the Thread.run() finish running?

Hi, I'm develop a download manager function which the dialog will popup when the the item was finished download. the download function was running at background. my question is how can I know when the downloading was finished and the project is intent other activity? for example: if(download_state == TASK_FINISH){ //download Finis...

LinearLayout usage

What I just want to do it to put some texts in the screen, together with a border that I'm doing(this border will be in the entire screen.) The problem is that the LinearLayout is adding some texts to outside of the screen, and this I cannot understand why. Why the LinearLayout cannot just keep the elements in the screen size, even if w...

Error: No resource found that matches the given name (at 'icon' with value '@drawable/search').

Hi, I have added a .png file that i'm trying to access in one of my menu.xml file. However i get this error "Error: No resource found that matches the given name (at 'icon' with value '@drawable/search'" Could you please help me resolve the error? Regards, Dv ...

display icon from my sd card

I would like my app to grab an image from the phones sd card to use as the notification icon in the status bar, but android needs a resource id to build the notification with an icon. if I load an image from my sd card, does it have an resource id and how can I get it? or is there another way to get this to work? ...

Zoom in image outside the bounds of the its view

Hi all, I have a layout like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView android:layout_width="fill_parent" ...

How to pass value through Intent

HI all, this is my class A, where on button click , i m sending a int variable to class B Intent bgIntent = new Intent(Background.this, MainScreen.class); bgIntent.putExtra("background", bgColor); startActivity(bgIntent); and on class B Intent bgIntent = getIntent(); bgGlobal = bgIntent.getIntExtra("background",-1 ); if(bgGlobal ==...

how to order the elements in relative layout

friend's I have a task to place the horizontal scroll or swipe menu tabs in my application i did it where the appears top of the header,but my problem is to place the scroll menu has below the header i have RelativeLayout where it contains two elements one after another, TextView - for header Gallery - for Scroll...

Timer act only if i touch the display (OnTouchListener)

The Timer works fine. The problem is that the method _dw.newgame() just get executed(if two seconds are over) if i touch the display. Maybe it have sth to do with the "OnTouchListener" ? public class DrawView extends View implements OnTouchListener{ Timer timer = new Timer(); public DrawView(Context context) { timer.schedule(new Task(t...

Changing displayed state of Views based on a parent ViewGroup's state

I have a compound UI component built up from a ViewGroup containing a number of TextView, ImageView etc. components. Many of these have StateListDrawables as their images/backgrounds. Is there any way of making them select from this drawable based on the state of the parent ViewGroup rather than the component itself? Ideally I want to be...

how to handle wifi statement "connection unsuccessfull,not in range try again" android programmatically?

Hi, I need help in handling the "unsuccessfull......" statement programmatically.Is there any shared preferences for handling the text.If i get this text through programme then i can handle this problem.Actually one simple idea is there for handling this one,"disable and enable the wifi by manually".Whenever i got unsuccessfull statemen...

Inserting an image into a pre-developed SQLite DB for use with Android

Hello all, Ive developed a DB for use with my app but I've realised that I actually want extend my db to incorporate images! I will be hosting the db online but for now I am using it locally for development purposes. To create my db I have been using SQLiteBrowser, which I think is a standalone version of the Firefox SQLiteManager plugi...

Delete Contact Group in Android 2.1

Hi, How can I programatically delete a contact group in Android 2.1? Thanks ...