I have a long task that requires 10 / 15 seconds. I want to display a dialog, or a view or other stuff to let the user know "hei! I'm working for you. I'm at 90%".
Actually I have 3 layouts: the currentLayout, the progressLayout and the resultLayout. From the main activity I have a function like that:
...
setContentView(R.layout.progre...
I have a binary file which contains keys and after every key there is an image associated with it. I want to jump off different keys but could not find any method which changes the index positioning in input stream. I have seen the mark() method but it does not jump on different places.
Does anybody have any idea how to do that?
...
I'd like to dynamically apply styles to my views at runtime.
Is there any method like View.setStyle(int style)?
Thanks
...
I've been using the iPhone SDK and think it's great. How does the Android SDK compare?
I've never used the Android SDK so I'm wondering what the similarities are. Does it have something like Interface Builder? Does it follow the MVC paradigm? What language does it use? The iPhone SDK has about 20 years of history behind it so it is quit...
I'm trying to figure out if a system event broadcast is broadcasted
using ordered broadcast or normal..
The event is EVENT_REMINDER and in the source for the calendarprovider
i noticed it sets up a alarmmanager to sent the broadcast.
I can't find how the alarmmanager sends it.
My guess would be as a normal broadcast ,
But while i ...
I am absolutely fed with with Windows Mobile 6.0 on my XDA Orbit2. Has anyone tried putting android on it?
...
I have clickable icons on a map showing a PopupWindow just above the icon when clicked. However, if the icon is on the topmost part of the map the PopupWindow will be hidden under the Android Status Bar.
The PopupWindow will automatically adjust to the right and left edges of the screen, and also to the top edge but doesn't take the sta...
Hi!
Did anyone implemented multi theme support for android app? Are there any common practices for this?
Thanks for any advice.
UPD: The main problem for now is that android's theme engine doesn't support selectors like in CSS. For example if I have two views with "background" attribute there's no way to make theme engine distinguish ...
Hi,
I am using AsyncTask in my application.
The problem is that when server is down the AsyncTask throws an Interrupted exception. How to track that whether server is down or not.
`
HttpGet httpget = new HttpGet(urls[i]);
ResponseHandler<String> responseHandler = new BasicResponseHandler();
content = httpClient.execute(httpget, re...
I have 2 ImageViews which have AnimationDrawable backgrounds to animate a box opening and closing when you click on it. The 2 images are slightly overlapping (the transparent area) so they can be closer together.
The problem this is causing is that I am unable to click on regions of the 1st image where the 2nd image (transparent area) i...
Hi Friends,
i am using grid view for display images,first time i am display 16 images in gridview and next time i display 32 images in grid view ,when will i click next button in grid view,so i want to display button in grid view bottom.how can i set button is bottom of gridview for android
thanks all
...
i want to create some small application based on blutooth. so can you tell me api for blutooth which is working android 1.5 or 1.6. can u send me small code for that?
...
Hi,
I am ne wto android.I get want to know whether we can maximize and minimize a whole application.it should work like ALT+TAB in windows.Please help me out.Thanks in advance..
...
Hello,
I used this tutorial to write my app. I use the DDMS Location Manager to change my location virtually.
Unfortunally I always get a location of 0.0 for long and lat. Even if I switch them later in the prog with locationchanged-method I get 0.0.
Code is this:
@Override
public void onCreate(Bundle savedInstanceState)
{
supe...
Hi,
How do you test for, for example, and android browser in Jquery?
Cheers.
...
Hi every one,
I'm new to android and want to develop application to manage inventory on mobile.
I can run the application "Hello world" and can communicate with database as well.
But i'am having problem with navigation and forms and controls.
for my application i want to store the inventory data in database and retrieve in a grid for...
I used this code snippet:
ContentValues image = new ContentValues();
image.put(Images.Media.TITLE, "ImageTitle");
image.put(Images.Media.DISPLAY_NAME, "Heart");
image.put(Images.Media.DESCRIPTION, "Heart");
image.put(Images.Media.DATE_ADDED, dateTaken);
image.put(Images.Media.DATE_TAKEN, dateTaken);
image.put(Images.Media.DATE_MODIFIE...
Hi,
Firstoff, I'm a complete newbie to Android platform development. What basically, I want to know right now is, whether there is any similar APIs available in Android SDK, which will allow events to take place, even if the main thread is blocked for some extensive operation? Something which is similar to ProcessEvents() or DoEvents(...
I have tested my game on HTC Desire with Android 2.2. Game is 2D with custom defined sprites with multiple bitmap images (frames). Frames are generated from one larger image using method Bitmap.createBitmap():
bitmapFrames[currentFrame][0] = Bitmap.createBitmap(image, startX, startY, width, height, matrix, true);
It works ok on Andr...
hello guys,
I have a 16mb binary file and I want to read bytes without using any loop. like if i want to read 16 byte i can pass 16 to some method(if there is any) and it give me my desired result... right now i am using loop for reading bytes but my application is so huge i am afraid that it do not get slow.kindly give me some hint.
t...