[android-developers] Android logo :D
http://www.engadget.com/2010/09/02/shocker-googles-android-logo-boosted-from-atari-lynx-title-ga/ -- Mārtiņš Streņģis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] help
http://www.lifeguardsiow.co.uk/images/ring.jpg :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: On screen orientation changes activity restarted.
i dont know why but i doesn't work on emulator on phones it works just fine try it :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: On screen orientation changes activity restarted.
as i said earlier for some reaosn it doesnt work on emulators. that fix works only on real phones -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: On screen orientation changes activity restarted.
sounds like daily wtf :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] On screen orientation changes activity restarted.
add android:configChanges=orientation to your manifest in each activity activity android:name=Settings android:configChanges=orientation / -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Detect Wifi Enabled/Disabled
WifiManager lWifiManager = (WifiManager) IntroVideoActivity.this.getSystemService(Context.WIFI_SERVICE); TelephonyManager lTelephonyManager = (TelephonyManager) IntroVideoActivity.this.getSystemService(Context.TELEPHONY_SERVICE); // if we have a fast connection (wifi or 3g), if( (lWifiManager.isWifiEnabled() lWifiManager.getConnectionInfo() != null lWifiManager.getConnectionInfo().getIpAddress() != 0) || (lTelephonyManager.getNetworkType() == TelephonyManager.NETWORK_TYPE_UMTS lTelephonyManager.getDataState() == TelephonyManager.DATA_CONNECTED) ){ } just add all nesecary permissions to manifest file -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Controlling an app's cache size
for file cache i use file.lastModified() if smaller then my cahce time for example if file wasnt modified for 8 hours it will be deleted and when you access that file use file.setLastModified(System.currentTimeMillis()); int timeout = 60 * 60 * main.imagecache; //main.imagecachen int hours for keeping image in cache long ts = System.currentTimeMillis() / 1000 - timeout; if((file.lastModified() / 1000) ts){ file.delete(); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Organizing the res/drawable folder
you can add prefixes to your images like ico_ bicon_ profile_activity_ and so on -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Custom View
why you just dont create a xml file which has those properties ? :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Persist a variable value
db is simple :) but if you dont want db you could try files -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Socket Timout in a simple HttpGet
i know about socket timeout and it's no need to set something huge it needs about 65 seconds but for user 65 sec is way to long after about 60 seconds phone renews wifi device id is: String device_id = Secure.getString(this.getContentResolver(), Secure.ANDROID_ID); it's needed to send push notifications as i said i send pushes with mqtt protocol and rsmb in serverside you can find more im http://mqtt.org and implementing in http://tokudu.com/2010/how-to-implement-push-notifications-for-android/ c2dm notifications imho is not so good becouse phone needs to be at least 2.2 firmware mqtt notifications can send already from 1.5 :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Socket Timout in a simple HttpGet
08-04 11:25:03.562: WARN/System.err(10330): java.net.SocketException: The operation timed out 08-04 11:25:03.572: WARN/System.err(10330): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl(Native Method) 08-04 11:25:03.572: WARN/System.err(10330): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:114) 08-04 11:25:03.577: WARN/System.err(10330): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:245) 08-04 11:25:03.577: WARN/System.err(10330): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:535) 08-04 11:25:03.582: WARN/System.err(10330): at java.net.Socket.connect(Socket.java:1071) 08-04 11:25:03.582: WARN/System.err(10330): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:117) 08-04 11:25:03.587: WARN/System.err(10330): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:140) 08-04 11:25:03.592: WARN/System.err(10330): at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164) 08-04 11:25:03.592: WARN/System.err(10330): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119) 08-04 11:25:03.597: WARN/System.err(10330): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348) 08-04 11:25:03.602: WARN/System.err(10330): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) 08-04 11:25:03.627: WARN/System.err(10330): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) 08-04 11:25:03.632: WARN/System.err(10330): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465) 08-04 11:25:03.637: WARN/System.err(10330): at com.dr.main.getRespFromUrl(main.java:752) 08-04 11:25:03.642: WARN/System.err(10330): at com.dr.main$InitTask.doInBackground(main.java:649) 08-04 11:25:03.647: WARN/System.err(10330): at com.dr.main$InitTask.doInBackground(main.java:1) 08-04 11:25:03.652: WARN/System.err(10330): at android.os.AsyncTask$2.call(AsyncTask.java:185) 08-04 11:25:03.652: WARN/System.err(10330): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 08-04 11:25:03.657: WARN/System.err(10330): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 08-04 11:25:03.657: WARN/System.err(10330): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068) 08-04 11:25:03.662: WARN/System.err(10330): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561) 08-04 11:25:03.662: WARN/System.err(10330): at java.lang.Thread.run(Thread.java:1096) HttpClient client = new DefaultHttpClient(); HttpGet request = new HttpGet(url); HttpResponse response = client.execute(request); HttpEntity entity = response.getEntity(); InputStream in = entity.getContent(); BufferedReader b = new BufferedReader(new InputStreamReader(in), 20); return b.readLine(); i get this error on 2.1 and 2.2 1.6 is ok on more thing this error mostly occurs after a notification is recieved from my server i user mqtt (Push Notifications) RSMB (really small message broker on server side ) while loading it ddms says wifiservice handleMessage: MESSAGE_ENABLE_WIFI while loading other applications can use internet and no errors are shown what i am doing wrong ? Regards -- Mārtiņš Streņģis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Socket Timout in a simple HttpGet
btw on gprs it's working fine -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Socket Timout in a simple HttpGet
thx for advice :) but the problem persists on real phones not emulators I have samsung with android 2.1 buggy when recievs push notification htc desire 2.2 buggy on push and the old good htc tattoo 1.6 works like hell nothing can stop it :D i cant recieve noticications on emulators becouse they dont have any deviceid -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] tattoo apps on market
Hi there! in my manifest file i added supports-screens android:largeScreens=true android:normalScreens=true android:smallScreens=true android:anyDensity=true /supports-screens uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4 /uses-sdk Problem is that i dont see my app in market with htc tatto (ldpi res) but i see with my samsung (hdpi or mdpi res) all drawable are in folders named drawable-mdpi drawable ldpi and drawable hdpi in correct sizes 36px 48px and 72px question is why my tattoo doesnt show my app ? regards -- Mārtiņš Streņģis -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: tattoo apps on market
it seems that uses-feature autofocus was preventing it thanks for advice :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Asynchronous Http Request
c'mon infinite loop :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Asynchronous Http Request
Mark you forgot while(1){ HttpGet get = new HttpGet(http://www.microsoft.com;); } :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Refreshing an activity on a tabwidget
i use listview.setAdapter(); for refreshing dont know if it's correct but it works for me -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en