android

Get the running page in an application

For example my application contain 3 pages and run that application when the middle of that application means at 2 page i got a phone call after that phone call again i start that application using menu in home screen .At that time i want a page where we stop in previous(that means 2 page).Give me the suggestions Thanks in advance ...

Android how to create runtime thumbnail

I am having image large size image, at run time i want read image from storage and scale it so that its weight and size will be reduce and i can use it as thumbnail when user click on thumbnail i will display full size image. ...

Is it possible to write an Android broadcast receiver that detects when the phone wakes up?

I want to figure out how to detect when the phone wakes up from being in the black screen mode and write a handler for that event. Is that possible? It seems like this would be something a Broadcast Receiver should handle? Or is there a better or more proper way? Thanks ...

Can't find ant in the Android SDK

Hey all, I'm working my way through APress's Beginning Android 2 and I've made it all the way to chapter 3, where we build a skeleton app. The book tells me to compile my application by typing "ant" in the command line, but my pc doesn't know what "ant" is yet. I checked in the SDK files and it looks like it wasn't included with the Andr...

Date and time picker in one view...

Hi guys, I wanted to know whether we can implement both date and time picker in one view... In iphone app you can pick both date and time through one view. But in android we have date picker and time picker seperately. So, is there any method by which i can get values of both date and time from one view??? ...

Draw Custom View on specific position of screen - Android

I have a custom component which consists of 2 text view and 4 toggle buttons. I want to draw this view at some specific position on the screen. How is that possible? ...

Ringing myself using android emulator

Hi all, I am developing a small application on Google's android emulator. I am trying to figure out how I can simulate a phone call from one instance of an emulator to another (both running on my computer). Does anyone know how this can be done? Thank you very much. ...

Transition between many Views in ViewFlipper ?

Hi guys, I am using "ViewFlipper" for my application. This ViewFlipper includes 5 layouts. I am trying make it that can be changed from current layout to any layout. In other words, it can be changed Layout#1 -> Layout#5 or Layout#4 -> Layout#1 ..etc. How to make it ? I used showNext() and showPrevious(). It is not better idea for ...

Facebook fbrocket api for android

Hi, i want to develop an application that take email and password of facebook as input, and gets the friends list from facebook. For this i am using fbrocket.jar api. But i can't login into the account of facebook through android mobile. Is this fbrocket.jar api enough or not?. Is there any facebook api .jar for android? any one can re...

sending an email using user input from android

Hey, I am designing an app in which the data is stored in the database. There's a button in the form which is on clicked to send an email to pre defined mail address with the data that is stored in the database. Since i am a newbie to android i need help regarding sending the mail... So please help me... ...

how to add Go button in android SoftKeyBoard and its functionality?

dear friends, i want to put "Go" button in android appliation softkeyboard for search and other related scenarios can any one guide me how to achieve this? with example. any help would be appriciated. ...

Can I play more than one file as a ringtone in android app?

I want to play couple of files as one ringtone in android app, How can I do it? edit: without merge ...

back button is working on emulator but it is not working in device in android

Hi all, am new to this android development. I have index page and am displaying every links in the same page using div concept. Now i want to use the back button for my application i have developed code to handle the div and it is working in the AVD(Andriod Virtual Device 5556) but if i upload the apk into my device it is not working. ...

How do I move my image downloader into a seperate thread on Android?

I have the following code running on my Android device. It works great and displays my list items wonderfully. It's also clever in the fact it only downloads the data when it's needed by the ArrayAdapter. However, whilst the download of the thumbnail is occurring, the entire list stalls and you cannot scroll until it's finished downloadi...

Insert and delete SIM contacs working but it needs to be phone restart to update the changes

Hi All, I am able to insert the contacts into SIM card and delete from it. But it needs to be phone restart to update the changes. The below is the code woks for delete the conatcs, Uri simUri = Uri.parse("content://icc/adn"); Cursor cur = context.getContentResolver().query(simUri, null, null, null, null); prn("Number of SIM Con...

2d int array Drawing Canvas

How do you print out the contents of a 2d int array Ive code written in java for a sudoku game and im trying to create a game on the android using the same code My code in java reads in a text file(sudoku grid) i see canvas.drawText will read in a string, but how do you do it for a 2d int array, so it prints out in a grid? ...

Always run project as Android Application

This might sound stupid but whenever I run my app in Eclipse I get this annoying pop up asking me how to run it: Android app, JUnit, Eclipse app, etc' I'm always running this project as an Android app, is there any way to tell Eclipse to stop asking me this. I'm using Eclipse 3.5 on Snow Leopard. Thanks ** EDIT Screen shot of the po...

Drawing text at an angle (e.g. upside down) in Android

I'm trying to build a custom clock view in Android. See image http://twitpic.com/1devk7 So far to draw the time and hour markers I have been using the Canvas.rotate method to get the desired effect. However, notice that it is difficult to interpret the numbers in the lower half of the clock (e.g. 6 or 9?) because of the angle in which t...

Launching unknown activities from an android application.

Hi, I want to make an android application that shows a listing of applications (downloaded from the android market) and launches the one that the user selects. From what I've read, I'd have to use intents like this: Intent intent = new Intent(); intent.setClassName(packageName, className); startActivity(intent); I just want to ...

How can i make a gallery with web images from my website?

I currently have two codes that i am trying to figure out how to mix or write a new code to have a gallery with image doing fill_parent but i can slide sideways to see the other url linked images from my site. here are both parts of code i have: package com.mandarich.gallerygrid; import java.io.InputStream; import java.net.URL; import ...