Draw outside the onDraw() function

by Rahul Garg » Thu, 13 May 2010 19:36:30 GMT


Sponsored Links
 Hi ,
        I want to change the particular portion of my canvas by
clicking the menu button. but as onKeyDown() function is called after
the onDraw() function, I am unable to modify my canvas. what should i
do?

--



Draw outside the onDraw() function

by TreKing » Thu, 13 May 2010 23:40:12 GMT


 



Can't you call invalidate or postInvalidate or something to trigger another
draw call?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--


Sponsored Links


Draw outside the onDraw() function

by Rahul Garg » Fri, 14 May 2010 10:54:11 GMT


 No that is also not working .....






>



Other Threads

1. Folders on the Main Menu

I would like to organize my main menu by categories (by putting them
in folders) e.g. Games in the Games folder.
Is there an application that allows me to do that yet?

--~--~---------~--~----~------------~-------~--~----~

2. Help reqd: Dalvikvm crashing while starting WiFi Service

Hi all,

Could some one help me with the below error logs.. I am running
Android on a PXA platform with a custom wifi driver. when I try to
invoke Wifi Manager from settings, the GUI crashes. I am attaching the
logs below..

Thanks in Advance..
--------------------------------------------------------------------------------------

 I/ActivityManager(  713): Starting activity: Intent {

action=android.intent.action.MAIN comp=

{com.android.settings/com.android.settings.wifi.WifiSettings} }
V/WifiMonitor(  713): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=2]
V/WifiStateTracker(  713): Changing supplicant state: INACTIVE ==>
SCANNING
D/SettingsWifiEnabler(  882): Received wifi state changed from
Enabling to

Enabled
I/ActivityManager(  713): Displayed activity

com.android.settings/.wifi.WifiSettings: 369 ms
V/WifiMonitor(  713): Event [CTRL-EVENT-SCAN-RESULTS  Ready]
D/LocationManagerService(  713): NetworkStateBroadcastReceiver: WiFi
debug

point 1
W/dalvikvm(  713): threadid=15: thread exiting with uncaught
exception

(group=0x40013e28)
E/AndroidRuntime(  713): Uncaught handler: thread
android.server.ServerThread

exiting due to uncaught exception
E/AndroidRuntime(  713): *** EXCEPTION IN SYSTEM PROCESS.  System will
crash.
E/AndroidRuntime(  713): java.lang.RuntimeException: Error receiving
broadcast

Intent { action=android.net.wifi.SCAN_RESULTS } in

com.android.server.LocationManagerService
$networkstatebroadcastrecei...@435c8a

90
E/AndroidRuntime(  713):        at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:667)
E/AndroidRuntime(  713):        at android.os.Handler.handleCallback

(Handler.java:542)
E/AndroidRuntime(  713):        at android.os.Handler.dispatchMessage

(Handler.java:86)
E/AndroidRuntime(  713):        at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  713):        at com.android.server.ServerThread.run

(SystemServer.java:313)
E/AndroidRuntime(  713): Caused by:
java.lang.IllegalArgumentException:

key.length > 31
E/AndroidRuntime(  713):        at android.os.SystemProperties.get

(SystemProperties.java:42)
E/AndroidRuntime(  713):        at

com.android.internal.location.LocationCollector.isCollectionEnabled

(LocationCollector.java:360)
E/AndroidRuntime(  713):        at

com.android.internal.location.LocationCollector.updateWifiScanResults

(LocationCollector.java:259)
E/AndroidRuntime(  713):        at

com.android.server.LocationManagerService
$NetworkStateBroadcastReceiver.onRece

ive(LocationManagerService.java:1540)
E/AndroidRuntime(  713):        at

android.app.ActivityThread$PackageInfo$ReceiverDispatcher$Args.run

(ActivityThread.java:656)
E/AndroidRuntime(  713):        ... 4 more
I/Process (  713): Sending signal. PID: 713 SIG: 9
I/ServiceManager(  652): service 'SurfaceFlinger' died
I/ActivityThread(  863): Removing dead content provider: settings
I/ActivityThread(  781): Removing dead content provider: settings
I/ActivityThread(  773): Removing dead content provider: settings
I/ServiceManager(  652): service 'power' died
I/ServiceManager(  652): service 'telephony.registry' died
I/ServiceManager(  652): service 'package' died
I/ServiceManager(  652): service 'activity' died
I/ServiceManager(  652): service 'batteryinfo' died
I/ServiceManager(  652): service 'meminfo' died
I/ServiceManager(  652): service 'content' died
I/ServiceManager(  652): service 'cpuinfo' died
I/ServiceManager(  652): service 'activity.broadcasts' died
I/ServiceManager(  652): service 'activity.services' died
I/ServiceManager(  652): service 'activity.senders' died
I/ServiceManager(  652): service 'activity.providers' died
I/ServiceManager(  652): service 'permission' died
I/ServiceManager(  652): service 'battery' died
I/ServiceManager(  652): service 'alarm' died
I/ServiceManager(  652): service 'sensor' died
I/ServiceManager(  652): service 'window' died
I/ServiceManager(  652): service 'bluetooth' died
I/ServiceManager(  652): service 'audio' died
I/ServiceManager(  652): service 'wifi' died
I/ServiceManager(  652): service 'connectivity' died
I/ServiceManager(  652): service 'notification' died
I/ServiceManager(  652): service 'mount' died
I/ServiceManager(  652): service 'devicememorymonitor' died
I/ServiceManager(  652): service 'statusbar' died
I/ServiceManager(  652): service 'hardware' died
I/ServiceManager(  652): service 'netstat' died
I/ServiceManager(  652): service 'location' died
I/ServiceManager(  652): service 'search' died
I/ServiceManager(  652): service 'clipboard' died
I/ServiceManager(  652): service 'checkin' died
I/ServiceManager(  652): service 'wallpaper' died
I/ActivityThread(  882): Removing dead content provider: settings
E/installd(  662): eof
E/installd(  662): failed to read size
I/installd(  662): closing connection
I/Zygote  (  657): Exit zygote because system server (713) has
terminated
I/ServiceManager(  652): service 'simphonebook' died
I/ServiceManager(  652): service 'isms' died
I/ServiceManager(  652): service 'iphonesubinfo' died
I/ServiceManager(  652): service 'phone' died
D/AndroidRuntime(  893):

--~--~---------~--~----~------------~-------~--~----~

3. Can Java dynamically reference an object?

4. Starting to get my grips with Java....question

5. How to show alert message.

6. Early boot process of the Android G1 dev phone

7. Adding Custom Hardware?