android

Simulate Wireless Network in Emulator

How do I simulate a WiFi network using the Emulator? ...

Selecting an item on Android web browser

Hi, When I tap (click) a link (or any selectable item) in a web page on Android web browser, the link/item is being highlighted (a thin orange line is draw around the selected item). Does anyone know whether this behavior can be eliminate and how. Thanks in advanced, Oded ...

Android - scripting telnet session for sending GPS tracks

All, I am familiar with the ability to fake GPS information to the emulator through the use of the geo fix long lat altitude command when connected through the emulator. What I'd like to do is have a simulation running on potentially a different computer produce lat, long, altitudes that should be sent over to the Android device to fak...

How to set permissions for Android Bluetooth

I'm new to Android development. I'm trying to get a simple HelloWorld app going on my (rooted) phone - and the app is trying to enable Bluetooth. I've set the Bluetooth permissions in my manifest is as follows, but I'm getting a Permission Denial exception when I try to run the application on my phone via Eclipse: <?xml version="1....

Android ==> ant and proguard ??

I am getting the following error while obfuscating my application. How can i define the output jar in my build.xml? [java] Shrinking... [java] java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? [java] at proguard.shrink.Shrinker.execute(Shrinker.java:148) [java] at proguard.ProGuard.shr...

Get the alpha of an ImageView

How can I do this? There's a setAlpha but no getAlpha. ...

Android installLocation does not work through market

OK, I have updated my android application with android:installLocation="auto" in the manifest. If I install it on my N1 via the USB cable, it works and allows me to move the application to my SD Card. However, I have a friend that has downloaded the application through the market, and the option is grayed out for him even though it is ...

Create a smooth fade animation in android?

I'm attempting to fade between two background images on my Droid, but the animation seems to get 5fps if not less. Is there any method I can use other than fading in\out a couple image views that would be smoother? ...

Having an online leaderboard in my Android game

Hi there I want my android game users to be able to submit their highscores to an online leaderboard and then be able to view this leaderboard in game, say when they get Game Over for instance. This isn't a new idea of course but I just wondered if anyone knew of the way I should implement this, and whether android provides any API's th...

Beep sound notification on Socket connection establishment

Hello, How can I make the Device sound a beep when socket connection has been established. In other words, how to set a notification tone when an event occurs in Android sdk? ...

Advice needed for manipulating the mediastore.

Hello, I'm rather new to android programming and right now I'm playing with the media store for a personal test project. I've run into a couple double-edge problems.. I need to query the mediastore for a list of all music files, simple enough - but i need to restrict the results to certain folders only. I accomplished this (rather ea...

Android API Demos 8 Translucent the class is TranslucentActivity.java doesn't do anything.

TranslucentActivity.java doesn't do anything. There is no translucence, nothing special about it. It just shows an activity screen. ...

How to display current playing song info from URL

Hi, Im getting radio stations list from URL and displaying them in a listview using list adapter. For each item, Im showing radio station name, song info here im facing a problem. I need to show current playing song info. bt im not getting current playing song info. So, can any one help me hw i can solve this issue. Thanks ...

Get a repetition count of an animation

Is there another way than doing our own counter to know how many times an animation has been repeated? (to produce different effects depending on the times it has been repeated.) ...

Logging into same jabber account from 2 different android devices using Smack

Hi, I have developed an application on Android which makes use of the Smack API to connect to XMPP server.In this application I hardcode the User Sign-In information i.e. Username and Password. xmpp.login("admin", "tigase"); and I get packets from a different user PacketFilter filter = new AndFilter(new PacketTypeFilter(Me...

Tapping an image on Android web browser

Hi, When I tap (click) an image in a web page on Android web browser, sometimes when the tap is lasting (for more then a second) I am getting the browser drop down menu (same as you get when you right click an image on your PC web browser) asking the end user to choose whether to save the image. Does anyone know whether this behavior ca...

Android: stop services and alarms when the application ends

I have an application that consist of several Activities. When the application starts, some alarms are scheduled using AlarmManager and some services are started: AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); a.setInexactRepeating(...) .... I would like to know any way to guarantee every service is...

Launch of My Activity at startup with out using Action_boot_complete

Instead of displaying home screen for the first time I want to display my activity for device setup when device_provisioned == 0. How can I override the code that launches the home screen activity. Thanks, Yousuf ...

Installing SunJCE on Android?

The company I work for is wary of Android app development because the default cryptography library, Bouncy Castle, is not FIPS-140 certified. Nothing I can do to change their minds or policies. I'm wondering what options I have for installing (or at least bundling) SunJCE with my app. For one, I can't find where I would download the...

Having Android WebView detect and popup email dialog or phone call dialog

On the android, when the built in browser comes across an email or a phone number and it is pressed, a dialog box comes up for each. However, if i navigate to that url inside my Application's webview, this no longer is the case. Is there anyway for my webview to exhibit the same properties as the browser application in detecting email...