android

What's the quickest mobile platform to create a Bluetooth application on?

Most of the time I write code for embedded modules or small programs on my computer to analyze data that said code generates. Now I've been asked to prototype a mobile application to analyze/display that data instead. I have no (6-year old CS101) experience with either of the popular languages (Obj-C/Java?), let alone with any of the A...

android tutorials

What are the best android tutorials for a beginner? -JB ...

Provide directions on an Android Google-Maps activity

Hey guys, is it possible to provide directions on a map on Android from 1 place (e.g a specific lat/lng) to another specific lat/lng? I realise this is doable with the Google-maps API but can you do it within Androids native implementation? ...

No current openGL context when returning from activity?

I am writing code that will allow the user to browse through the files on their SD card to locate images and them load them using openGL ES 2.0. This works fine when I had used just an EditText to type in the file path, but now that I have implemented a file browser that makes the exact same call with a String of the file path I get "Cal...

Android - Something Odd... Question

Something odd is going on, I think... I have menu with sub-menu items. One sub-menu gets GPS location, does some calc's and updates two display fields. No problems. The other sub-menu takes user input and does calc's BUT, it uses the same display stuff as the fist sub-menu but, won't update the two fields with the new input for displa...

Android Soundloop get playlength

Hi, I am playing a audiofile with Soundpools .play backstreamid=mSoundPool.play(playid, streamVolume, streamVolume, 1, 0, 1.3f); but I need to know when the sound stops playing, how could I realize this? I need the PITCH Option.. any solution (even if its not with soundpool) is welcome thx chris ...

How to prevent Android's drawBitmap from only drawing black images?

As per the original question, The end result is a rounded-rect png in an ImageView with a natural looking drop shadow. I have the shadow working, but when it draws, it makes the entire image black. How can I prevent the original image (definitely not black) from being black when adding the shadow? BlurMaskFilter blurFilter = new...

String is being truncated when its too long

I am trying to get a JSON response from our server and the response string seems is always being truncated when the string length reaches to around 5525 characters. HttpClient httpClient = new DefaultHttpClient(); HttpPost post = new HttpPost(URL); ResponseHandler<String> responseHandler= new BasicResponseHandler(); String testResponse ...

android- animate text on canvas

Hi I am working with android, trying to animate some text (make it bigger and smaller over time) and I have the following issue. I cant animate the text using the following: int textSize = calculateTextSize(); paint.setTextSize(textSize); canvas.drawText("Some Text", 10, 25, paint); calculateTextSize , shrinks or enlarg...

NewB Problem with tabs

I'm new at this. I'm using the T-Mobile G1. What I have is a 3 tab app(that is based on the example of the TAB APP). Whenever you switch between portrait and landscape by opening/closing the keyboard, (1)the screen(s) do not scroll and, (2)if you are on screen 1 or 2 and open/close the keyboard, the app will reset to screen 0. I hav...

What is the best way to save the contents of an ArrayList?

I want to save an ArrayList so that it is persistent. The contents can change. What is the best way of approaching this in android? ...

android Remote services can be seted ip?

android Remote services can be seted ip? I have two machine, want to set ip and access each other's remote service,the way can be done? ...

Using JMock on the Android

How can I use JMock on the Android? I've several posts saying its not possible, but surely there's some way to do it? The issue seems to be getting the Android to even recognize the JMock jar file. So maybe there's a solution with putting the jar into assets and making a custom class loader? That seems like a lot of trouble, but do...

Cursor not highlighting buttons etc.

I'm trying to customize my buttons in my view a bit and give them my own look. Whenever I set a picture as a background so that the button looks different though, I seem to lose my cursor. I can use my trackball to go through the items still but when I come to one of my custom buttons the cursor does not show. I have the same problem wit...

Android: Should my graphics by 480x800 or 480x854?

I'm wanting to target WVGA (480x800) and FWVGA (480x854) devices with my program. My question is: for my full screen background bitmaps which resolution should I make them? ...

Setting string content

I'm trying to make a timer in which you can insert how much time you want by clicking on the textview or some other button. My problem is I can not figure out how to get the code right so that it will set the string. The string is one that is set up before the class in the string xml. Here is the code that I am working with. This is the ...

Simple ListPreference is not working. Any ideas?

Could someone maybe tell me what i'm doing wrong? I'm betting im missing one small thing. I've looked on the developer site and i've read some tutorials and i'm just not seeing what i did wrong. I'm trying to use a ListPreference to decide which sound to play on a button click. I have this at the top: public String greensound; Here'...

When to delete a temporary file used in Intent.SEND for attached email?

We generate a temporary file on an Android device and attach it to an email. We use a custom Content Provider to feed that file to the email application. The problem is that the email application access the file many times, instead of once, until it finally sends the email (for example, every time it writes a draft we get a request). Th...

show the MediaController

Is there a way I can have the MediaController show always? videoView = (VideoView) findViewById(R.id.videoView); String path = "/sdcard/feiyang/video/sfqx.3GP"; MediaController m = new MediaController(this); videoView.setMediaController(m); videoView.setVideoPath(path); videoView.start(); i use m.show(0); but it does not ...

Read a segment of a file in Java / Android

I'm sure this might be a simple question, but unfortunately this is my first time using Java and working the Android SDK. I am uploading files on Android using the Apache HTTP libraries, in particular using the MultipartEntity. I'm uploading to a service that allows me to send them chunks of the file, and once complete, they'll reassem...