android

WebView and HTML5 <video>

I'm piecing together a cheapo app that amongst other things "frames" some of our websites... Pretty simple with the WebViewClient... until I hit the video. The video is done as HTML5 elements, and these work fine and dandy on Chrome, iPhones, and now that we fixed the encoding issues it works great on Android... in the native browser....

How to control an office 2010 PowerPoint presentation remotely using an android application?

Hello,I want to write an Android remote control application that allows people to navigate back and forth on a PowerPoint slideshow presentation in Microsoft Office (preferably 2007/2010) on my PC. In this case, I have to make a small PowerPoint navigation client on the Android, and also I have create a PC server to access Microsoft Offi...

Android 2.2.1 changelog

Is there a changelog available for Android 2.2.1? ...

Calling TextView.setText() periodically causes the UI to jerk

I'm coding an audio player where a thread updates the TextView representing the track's elapsed time, every 250 milliseconds. The display looks like this: 1:30/2:30<-----Progress Bar-----> TextView 1 is 1:30/ and TextView 2 is 2:30. Both are set to wrap_content for width. What happens is that on every 250 millisecond cycle, the thre...

How to reduce App (.apk) Size

Help! When I install my app on the phone to test, it is showing up to be a HUGE size, 11.35 MB. It is a very simple app that lets user browse through fun-facts. The only reason I can think of is that there are 14 JPEG files in the drawables which serve as background images of the fun-facts. The average size of these is about 500 KB. I'...

List Item Selected Behavior

When I change the background color of a list item it no longer flashes green when selected. Is there a way to retain this default behavior when the background is changed? ...

How do I send JSon as BODY In a POST request to server from an Android application?

Hi, I am working on my first Android Application. Now wat I want to do is to make a POST request to a restfull service running on server and I want the BODY of this request to be a JSon String. I am using GSon to generate the JSon to send to server. The code I am using to make the POST request follows: HttpPost requisicao = new Http...

Parse simple string JSon in Android

I have the following code: String response = webService.webGet(""); the response of the web service String LargeImage = new Gson().fromJson(response,String.class); byte[] imageByteArray = Base64.decode(LargeImage); response is like: "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCA... " a Base64 encoded image having around 400.000 characters. T...

Weird MapView problem; PixelConverter Error

I have an application based on the MapActivity. The application drops ItemizedOverlay items on the map as you start to move about. It has been running with no problems until I dropped it into a Nexus 2.2 phone. I'm running into a weird problem where sometimes when I zoom in/out too fast, or pan too fast, the MapView will go "white" an...

saxparser how it is used in android

i am having 4 xml files with the same tagnames in all the four xml files ..here i have to use saxparser to parse these 4 xml files ......i don't know from where to start this..this is a standalone application .....can anyone please explain this...i am new to this project.........thank you. ...

Smooth animation on top of regular Android View

I currently have an app with a regular layout of buttons and widgets. On top of this I'd like to draw some animated sparks and particles and whatnot going on in response to events, so I've got it in a FrameLayout with another View on top to draw the animations. The problem is I can't work out a way of getting smooth movement out of it. I...

Building drawable images to use on a surface canvas on android

I have some images (.png format) that I use as drawables on the surface of canvas in my android app. The problem I have is mspaint only allows a rectangular image file, so whatever I draw on the screen always shows up in a box. Is there a (free) program or way I can edit the png files so that when they are drawn on the surface of my ca...

How do I host an appwidget on my custom home screen?

Hi, I currently modifying the sample home screen app from the SDK. My question is how do I add an appwidget to the sample home app on a long press? ...

Why are my ServiceConnection methods never executed?

Hi, this is the class that calls my Service: public class TicketList extends ListActivity { private ArrayList<Tickets> alTickets = new ArrayList<Tickets>(); private boolean listCreated = false; private static Drawable background = null; private Resources res; private Tickets ticket = null; private TicketConnector localService; /** *...

Android: Preference Style

I have made a custom preference (i.e. a preference with a custom layout) which displayed in the preferences list of a PreferenceActivity. The layout is created in code. The problem is that the font of the TextView created in code looks somewhat different than Android's standard preference font. So the solution would be to apply the s...

How to create GridView with groups

I need to create GridView with groups like this: GroupText1 Image Image Image Image Image Image GroupText2 Image Image Image Image Image Image There will be lots of images( 300-400 ), and about 10 groups. How can I do it? Thanks a lot. ...

Programmatically resizing a custom view?

I am trying to programmatically resize a custom view in android. The custom view contains a Button and an EditText in a LinearLayout. I want to make several instances of this custom view and alter the width of each one slightly narrower than the last so that they overlap each other. At what point can I do this and how? If I override ...

Dynamically loading ListView

Hello! I want to dynamically load a ListView, for example, load them during the scrolling so its not loading all 100 posts I have. How can I achieve this? I have looked at similiar solutions here at SO, but since I not got it to work, I asked this question. My code: //orders is my is my ArrayList<WithMyOwnOrderClass> that handling ord...

Android: add overlay to MapView?

I have subclassed Overlay as LandMarkOverlay (and implemented an onTap(GeoPoint) method). In the main activity I do this: setContentView(R.layout.main); MapView mapView = (MapView) findViewById(R.id.mapview); mapView.setBuiltInZoomControls(true); landmarkOverlay = new LandmarkOverlay(); //add the landmarkOverlay ...

android intent to navigate to multiple destinations?

is there any way to navigate to multiple destinations? like you can do on google maps? ...