android

How to install a free market application on an android simulator

I want to install the Photoshop mobile on my emulator. I need to do test the Photoshop.com Mobile integration for image editing. But I dont know how to do that. I cannot access the market from the emulator. Can anyone tell me how I can install it on my simulator. ...

Android scrolling background of bitmap tiles

Hello, I'm tried to determine the "best" way to scroll a background comprised of tiled Bitmaps on an Android SurfaceView. I've actually been successful in doing so, but wanted to determine if there is a more efficient technique, or if my technique might not work on all Android phones. Basically, I create a new, mutable Bitmap to be sli...

How to position StaticLayout in android?

I want to created a wrapping text ontop of google maps api. I have been able to do this with a lot of code, but have been working on a better way. My latest attempt is to use the StaticLayout class and the text is wrapping, but I do not know how to position it...no matter what I try it is always starting in the top left corner of the s...

How can i assign result URI from image Capture to ImageView or ImageButton?

I have Imagebutton or image view in Main.xml How can i assign result URI to ImageView or ImageButton? public void onActivityResult(int requestCode, int resultCode, Intent data) { if (resultCode == Activity.RESULT_OK && requestCode == 0) { String result = data.toURI(); } } public void onClick(DialogInterface arg0, int arg1...

How to track and analysis android app?

I want to know what kind of users are using my app. I think I need the device id, the network type, the network provider name and its ip address. is there any framework to do this thing? And of course I will ask user to enable it before I can do it and leave an option to disable it when user want to toggle it off. ...

Some questions about using NDK for faster programming results.

I have the following questions, please if you know the answers share it with me. How can I transform my working Java code to NDK? (it's an algoritm not activity) I am able to access the database from NDK? Will a backtracking algorithm with 10 millions of iterations run faster if was written with NDK? ...

How to add video into a webpage for mobile web browsers.

Our company is making a mobile version of our website. We have several product videos we want to show on the mobile version. When I try to use <a href="video.wmv">video</a> I get sound playing but a black screen on my htc incredible android os phone. I'm thinking that the video is playing but in a different browser window. I need ...

HTTPClient causing app to force close

I get this error on my Android emulator: Sorry The application has stopped unexpectedly. Please try again. [Force Close] I think the code that is creating the error is this: HttpClient client = new HttpClient(); I have imported the following from JARS: import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpcl...

webview loaddata in android does not load a picture from img src

I use loadData method to load some html content into a webview, but when it encounters something like this : <a href="http://www.anywebsite.fr/"&gt;some text</a><img src="http://www.anotherwebsite.fr/thewantedpicture" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> I only get this in t...

upload application like picup or cliqcliq for Android

Hello, Based on the fact that there is no file upload supported by the current Android browser (I know that 2.2 should support it but I am looking for a workaround right now). Is there an application for Android like picup or cliqcliq (iPhone) allowing me to open the app to take a picture and then returning to the web page automatically...

Is it safe to draw part of an Android bitmap onto itself with some overlap?

I tested this on my Motorola Droid, and it worked as intended. However, I'm concerned that this might be a) terribly inefficient or b) not guaranteed to work on all Android phones. /* Create a simple 100 by 100 bitmap */ Bitmap myBitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); /* Create a canvas with which to draw on ...

Desktop Icon Locations available to Live Wallpapers? (android)

Is it possible to programmatically retrieve the desktop icons within a WallpaperService ? ...

Audio not working in the android emulator (win7)

When starting my emulator from Eclipse or from the command line (Win7x32), I see no emulator window popup and the process hangs. From the command-line, with -verbose, I see logs until the two lines: emulator: using 'winaudio' audio input backend emulator: using 'winaudio' audio output backend ... and then nothing. When I start from...

How to reschedule Alarm Manager on Preference Change

Hi, I have an Android Service. When a phone boots up, a broadcast receiver receives a notification and it schedules the service to run repeatedly at a gap of X minutes. Henceforth After every X minutes another broadcast receiver gets those notifications and kicks the service off, which does it's job and quits. So far so good. Now I wan...

Android get storage used by one application

Hi, i have an application which have a directory created in SDCard where i save photos. I would like to know how much space is using that dir on SDCard in order to show that info to the user. How can i do that? Thanks ...

How to display List<> using ListView?

When I use ListView to display a array of my object, I can use the following code: MyObject[] myObject; ... ArrayAdapter<MyObject> itemList = new ArrayAdapter<MyObject>(this, R.layout.list, myObject); setListAdapter(itemList); In case that the input is a list: List<MyObject> myobject; How can I assign it to ListAdapter? Please...

Android: how do i pass an object from one activity to another

I need to be able to use one object in multiple activities within my app, and it needs to be the SAME object. What is the best way to do this? I have tried making the object "public static" so it can be accessed by other activities but for some reason this just isn't cutting it. Are there any other ways of doing this? ...

AdMob ads on Android app are not rotating / refreshing

Has anyone else had this problem? I have a game, and the Ads show at the top of the phone above my game view. When I'm tapping away on the game, the ads just stay the same. BUT, if I don't touch anything and wait the 15 seconds, as is set in my Interval, THEN the ad changes (usually). I don't get any error reports. There's nothing t...

Unable to programmatically change width of horizontal progressbar

I would like change the width of a Horizontal Progressbar programmatically (initial size is set in XML using RelativeLayout...but I would like to dynamically change it based on certain values). I have tried setMinimumWidth(50) in my code, but that did not make a difference. I have also tried setting 'android:layout_width="wrap_content"...

Android: disabling highlight on listView click

I want to disable the orange highlight that occurs when touching a listView row. So far in my xml I have tried the following: android:focusable="false" android:focusableInTouchMode="false" android:clickable="false" More information: I want there to be zero difference when a user touches the screen on this listView object. ...