tanya gmap

by er1ck » Wed, 21 Apr 2010 00:16:16 GMT


Sponsored Links
 mau tnya supaya gmap bisa view north up gmana ya? spy bs mirip spt ipun 3GS
gitu, secara spica kan ada compasnya, thx

-- 
"



tanya gmap

by Adityo Firmansyah » Wed, 21 Apr 2010 10:38:42 GMT


 bukannya maps ver. 4 sudah ada directionnya ya?
mapsnya pak erick sudah ver. 4 kan?

-adit-




-- 
"


Sponsored Links


Other Threads

1. Screen off suspends the Thread

Hi All,
I have a created a thread in my application, and have a sleep for 5sec
in the run() function. This sleep function returns properly after 5
secs only if the device screen is turned ON. In case the device screen
goes to Hibernate, sleep function returns after around 2-3
minutes(instead of 5 sec).

Have any one faced this issue earlier?

Regards,
Raj

-- 

2. How to fix "java.lang.IllegalThreadStateExeception: Thread already started."

I made an application which has a thread for a notification
progressbar.

First time I started the thread, it works fine.
But Second time I tried to start the thread again, the application
stop with the exception.

How can I solve this problem?
Please give me any clue.


[==========My thread code below==================]
private class ProgressThread extends Thread {
        Handler mHandler;
        final static int STATE_DONE = 0;
        final static int STATE_RUNNING = 1;
        int outIncreamentPercent;
        int mState;

        ProgressThread(Handler h) {
                mHandler = h;
        }

        public void run() {
                int i = 0;
                setState(STATE_RUNNING);
                while (mState == STATE_RUNNING) {

                        if (i > MAX_LOOP_COUNT) {
                                setState(STATE_DONE);
                        } else {
                                if (i % 100 == 0) {
                                        outIncreamentPercent = (int) (((float) 
i / MAX_LOOP_COUNT) *
100);
                                        
rv.setProgressBar(R.id.customProgressBar,
100,outIncreamentPercent, false);
                                        
mNotificationManager.notify(NOTIFICATION_ID,notification);

                                        try {
                                                Thread.sleep(100);
                                        } catch (InterruptedException e) {
                                                // TODO Auto-generated catch 
block
                                                e.printStackTrace();
                                        }
                                }
                        }
                        i = i + LOOP_INCREMENT;
                }
                super.run();
        } /* sets the current state for the thread, * used to stop the thread
*/
        public void setState(int state) {
                mState = state;
        }
}

-- 

3. Getting information from webview

4. Disable hardware codecs

5. SyncAdapter 2.x question

6. SectionIndexer problem

7. HowTo: Supporting devices with different resolutions