Re: [android-developers] what to do with Only the original thread that created a view hierarchy can touch its views?
Hi Mark, I am back. I forgot this thread here. using your suggestion, i choose using AsyncTask and implement onPostExecute(). Iam very happy It works well. but I write an inner class that extends AsyncTash to use findViewById. can i wirte a non-inner class to get the TextView to setText()? On Sat, Dec 18, 2010 at 9:37 PM, Mark Murphy mmur...@commonsware.comwrote: On Sat, Dec 18, 2010 at 8:26 AM, goodwin weigoodw...@gmail.com wrote: 12-18 21:09:15.104: ERROR/AndroidRuntime(4368): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. i am using google translate api to practice.when i write a new thread,and use setText() in this thread, error turn out.where i can set text to TextView. You cannot modify the UI from a background thread. Consider converting your Thread to an AsyncTask and modifying the UI from onPostExecute(). Or, use a Handler. Or, call post() on your TextView. Or, call runOnUiThread() on your activity. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] Weird FC from unregisterReceiver
here the sum up of my code http://pastebin.com/YcPWNYit my problem only occurs when my application gets installed over my application again(aka when I run it from eclipse) and this only occurs when the value of ENABLED_KEY is left true so this fc happens when my the value is changed from true to false after I install my app again... this does not occur the other way around(false to true) and it also does not occur if I manually uninstall my app from the emulator and then install the newer version because then the preferences actually get deleted where when I install a different version on top of the old the preferences do not change... I have a feeling that mReceiver is problem but I can't detect if the app is being removed/new version getting installed so how would I possibly destroy it? and I might be taking the wrong approach at this... any help is appreciated. thanks -- 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] Set Android WIFI Ip address from my own application
By the way yout email get me hint, i m trying to resolve this thing. i've got a function which is : *wifiManaget.addNetwork(wifimanager object)* do you have any idea what this function do? 2010/12/30 Kostya Vasilyev kmans...@gmail.com You can change these settings from an application - just need right the permission (write_system_settings or some such). -- Kostya 30.12.2010 10:59, Faheem Khatri пишет: *public static final String WIFI_STATIC_DNS1* as you see these are the properties in which we can only get the value, we cant set the value. On Wed, Dec 29, 2010 at 7:47 PM, Kostya Vasilyev kmans...@gmail.comwrote: Faheem, See Settings.System: http://developer.android.com/reference/android/provider/Settings.System.html#WIFI_STATIC_DNS1 Starting with: public static final String WIFI_STATIC_DNS1 Since: API Level 1 If using static IP, the primary DNS's IP address. Example: 192.168.1.1 Constant Value: wifi_static_dns1 and up through public static final String WIFI_USE_STATIC_IP Since: API Level 1 Whether to use static IP and other static network attributes. Set to 1 for true and 0 for false. Constant Value: wifi_use_static_ip However, if past is of any indication, any of these can be moved to Settings.Secure in a future Android release (or not). -- Kostya 29.12.2010 17:34, Faheem Khatri пишет: Hi All, I wanna set android wifi ip address from my own application is there any way? i've post this question few months back didnt get any proper solution, so i m reposting this question. Regards, Faheem -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Creating complex queries for SQLite
Ok, that was just to confirm that it is impossible to use it that way. And what about making complex queries? The ContentProvider class provides the query method which, however, seems to be quite a limitation. What can I do, for instance, if I need to create queries with subqueries (or some other types of queries doesn't fit the simple pattern provided by the query method)? Thanks for your answers! On 3 Gen, 04:27, Sarwar Erfan erfanonl...@gmail.com wrote: Your subject of the post should have been something like Accessing databases from other packages In normal phones, you are not allowed to do so. It prevents you to mess up with someone else's database. If you want it for personal usage, you can root your phone. Regards Sarwar Erfan -- 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] Android : Why NUMBER_KEY return the number in reverse order
0 down vote favorite Hi, I am trying to read the contact list using the following code: ContentResolver cr = getContentResolver(); Cursor cur = cr.query(People.CONTENT_URI,null, null, null, null); if (cur.getCount() 0) { while (cur.moveToNext()) { String id = cur.getString(cur.getColumnIndex(People._ID)); Cursor personCur = cr.query(Contacts.Phones.CONTENT_URI, null, Contacts.Phones.PERSON_ID += ?+ Contacts.Phones.NUMBER_KEY , new String[]{id}, null); String phoneKey = ; while (personCur.moveToNext()) { phoneKey = personCur.getString(personCur.getColumnIndex(Contacts.Phones.NUMBER_KEY)); } The problem is that phoneKey return in reverse order meaning if the phone number is 054-123-4567 the value is 7654321450 I could not find any documentation on this issue. Any idea how to fix it? or is it the expected result? thanks -Z -- 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: Creating complex queries for SQLite
On Monday, January 3, 2011 2:32:29 PM UTC+6, Luca Carlon wrote: Ok, that was just to confirm that it is impossible to use it that way. And what about making complex queries? The ContentProvider class provides the query method which, however, seems to be quite a limitation. What can I do, for instance, if I need to create queries with subqueries (or some other types of queries doesn't fit the simple pattern provided by the query method)? Thanks for your answers! You can *root* your phone to access the DB (in case you are not developing any app for general people) Or, you can send feature request to the content provider developer to add options to your desired kind of queries. You *cannot* access others database. You *cannot* use content provider other than the available options and filters set by the developer. Please bear with these. Regards Sarwar Erfan -- 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: Google analytics crash
Well, after another user apparently had 6 crashes in 2 minutes from GoogleAnalyticsTracker.trackEvent() right when launching my app, I've updated my app to wrap all Google Analytics calls in try-catch blocks to quench the symptoms. Even though the crash reports were rare, this seems to be the only/simplest way for me to avoid an occasional bad user experience due to use of Google Analytics. Regards java.lang.RuntimeException: Unable to start activity ComponentInfo{vOICe.vOICe/vOICe.vOICe.The_vOICe}: java.lang.IllegalStateException: no transaction pending at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2663) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) at android.app.ActivityThread.access$2300(ActivityThread.java: 125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:878) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: no transaction pending at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java: 555) at com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at vOICe.vOICe.The_vOICe.onCreate(Unknown Source) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) ... 11 more FINGERPRINT {verizon/thunderc/thunderc/thunderc:2.2/FRF91/eng.lge. 20101101.102025:user/release-keys} On Dec 31 2010, 3:55 pm, blindfold seeingwithso...@gmail.com wrote: Hmm, I have only one global tracker object that I create in the onCreate() of my main activity, and with a regular dispatch interval through the format tracker.start(UA-12345-0, nseconds, this), so I'd say that it all works from one alive thread. However, in one pair of crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs after my app had been running for some time, while the second GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app startup only 3 minutes later, for the same device FINGERPRINT, suggesting that indeed some sort of lock had lived on even across runs to cause a second crash because the second run would not be owning the lingering lock. This was for a Samsung GT-I5800 running Android 2.1- update1. On Dec 31, 3:21 pm, H m...@howardb.com wrote: Looking in the analytics source after you've called trackEvent(), I suspect that error is coming out when it is using a database transaction to insert the event into the database. Once inserted, it calls endTransaction as well as setTransactionSuccessful. Both of these do this check: if (!mLock.isHeldByCurrentThread()) { throw new IllegalStateException(no transaction pending); } So it could be worth checking to see if you are tracking the event from a thread that has ended, or calling dispatch from a different thread...? HTH. -- 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] mms video streaming
how to make a video streaming with mms in android? i have problem to do that . . . -- Mobile Developer (Android,iphone,Blackberry,J2ME,brew,symbian) mobile : 085722945257 email : kevin.r.octav...@gmail.com arsenal_a...@yahoo.co.id blog : kevinroctavian.wordpress.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
[android-developers] Re: Android : Why NUMBER_KEY return the number in reverse order
Firstly, Contacts.Phones.NUMBER_KEY is deprecated. Secondly, why do you need this value? This is not the phone number, but the normalized phone number. If you want the phone number in the way you have your code, use Contacts.Phones.NUMBER Anyways, I would suggest you not to use deprecated elements unless you are targeting older phones. Regards Sarwar Erfan -- 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: Problem with AnimationDrawable
Take a look here where I explained that while asking another question: https://groups.google.com/group/android-developers/browse_thread/thread/9c10ceff77cd7ed3/9d381a5f3d36f0c4?hl=pllnk=gstq=Strange+Problem+with+releasing+bitmaps+and+%27back%27+button+#9d381a5f3d36f0c4 -- 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: Android : Why NUMBER_KEY return the number in reverse order
First, thanks for your quick answer. Second, I am using SDK 1.5 therefore I am using Contacts.Phones.NUMBER_KEY. Third, Contacts.Phones.NUMBER is not normalize and include chars like ( and - and I want to compare between number I hold and number in the contact list -Z On Jan 3, 10:45 am, Sarwar Erfan erfanonl...@gmail.com wrote: Firstly, Contacts.Phones.NUMBER_KEY is deprecated. Secondly, why do you need this value? This is not the phone number, but the normalized phone number. If you want the phone number in the way you have your code, use Contacts.Phones.NUMBER Anyways, I would suggest you not to use deprecated elements unless you are targeting older phones. Regards Sarwar Erfan -- 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] How to handle the GPS properly through multiple activities ?
Hi everyone, I run into an issue regarding how to use the gps. My application uses several activities to navigation to some information. (RootActivity - MenuActivity - MenuDetailActivity - ItemDetailActivity...) I use a class extending Application in order to access from all Activities several data. This class is also the place where I start the GPS and manage locations update. I use this code : [code] public void registerActivity(){ this.followingActivityCounter++; Log.i(App, FollowingActivityCounter: +this.followingActivityCounter); gpsDesactivator.removeCallbacks(desactivateGPSTask); if(!this.requestUpdates){ Log.i(App, Request location updates); mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000 * 60 * 5, 100, mLocationListener); } } public void unRegisterActivity(){ this.followingActivityCounter--; Log.i(App, FollowingActivityCounter: +this.followingActivityCounter); if(this.followingActivityCounter == 0){ Log.i(Counter, GPS may require do be desactivated, followingCounter is at +followingActivityCounter); gpsDesactivator.removeCallbacks(desactivateGPSTask); gpsDesactivator.postDelayed(desactivateGPSTask, 5000); } } private Handler gpsDesactivator = new Handler(); private Runnable desactivateGPSTask = new Runnable() { public void run() { if(followingActivityCounter == 0){ Log.i(Counter, GPS OFF, followingCounter is at +followingActivityCounter); mLocationManager.removeUpdates(mLocationListener); requestUpdates = false; } } }; [/code] The idea is that every activity has to register itself in order to maintain the GPS online only if an activity is in the foreground. BUT, it seems that the GPS shuts down by itself and start again later. It leads into several issues when I require the GPS at a specific time and it is either shut down or not available. Those lines appears in the logs : [code] D/GpsLocationProvider( 1281): exceeded MIN_FIX_COUNT D/GpsLocationProvider( 1281): stopNavigating [/code] Is anyone able to tell me what I do wrong ? Thanks a lot. Jb -- 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] Gingerbread vs Froyo
Hi all, I read one article about the difference between these two versions of Android. But as a developer I dont have exact idea that what things should I take care while I am working with Gingerbread. For example, in gingerbread Power management and application control has been made more efficient, so how it is working and if I want to make my application more power optimize, what should I do ? Regards Rahul Garg -- 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: Android : Why NUMBER_KEY return the number in reverse order
Ok... here is the story then... Phone numbers are stored in stripped reversed order for easier matching. It helps to use the LIKE operator in SQL. For a normal SQL user, it might look same to use *where NUMBER_KEY LIKE '%1234'* and *where NUMBER_KEY LIKE '4321%'.* But for the db engine, having the wildcard at the end is much easier (efficient) Efficiency is a major factor for incoming call caller id lookup. BTW, you might have not noticed, most phones (not talking about android only) does not match the whole number for caller id lookup. In all my Nokia phones I have a number saved, say its 016 12345678 (its not the real number) as Mr X When I get phone call from another number 016 99345678, it shows Mr X is calling. It compares only last few digits!!! Regards Sarwar Erfan -- 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: Creating complex queries for SQLite
I already rooted and executed the queries I need using sqlite3, but I need to do this programmatically. Assuming I am the ContentProvider developer, can I somehow execute these kinds of queries (using functions like replace, using subqueries etc...) using the SQLiteDatabase class? Its query method seems to suffer the same limitations, I cannot write a free SQL query command. Thanks for your help! On Jan 3, 9:37 am, Sarwar Erfan erfanonl...@gmail.com wrote: On Monday, January 3, 2011 2:32:29 PM UTC+6, Luca Carlon wrote: Ok, that was just to confirm that it is impossible to use it that way. And what about making complex queries? The ContentProvider class provides the query method which, however, seems to be quite a limitation. What can I do, for instance, if I need to create queries with subqueries (or some other types of queries doesn't fit the simple pattern provided by the query method)? Thanks for your answers! You can *root* your phone to access the DB (in case you are not developing any app for general people) Or, you can send feature request to the content provider developer to add options to your desired kind of queries. You *cannot* access others database. You *cannot* use content provider other than the available options and filters set by the developer. Please bear with these. Regards Sarwar Erfan -- 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: Android : Why NUMBER_KEY return the number in reverse order
thanks On Jan 3, 11:27 am, Sarwar Erfan erfanonl...@gmail.com wrote: Ok... here is the story then... Phone numbers are stored in stripped reversed order for easier matching. It helps to use the LIKE operator in SQL. For a normal SQL user, it might look same to use *where NUMBER_KEY LIKE '%1234'* and *where NUMBER_KEY LIKE '4321%'.* But for the db engine, having the wildcard at the end is much easier (efficient) Efficiency is a major factor for incoming call caller id lookup. BTW, you might have not noticed, most phones (not talking about android only) does not match the whole number for caller id lookup. In all my Nokia phones I have a number saved, say its 016 12345678 (its not the real number) as Mr X When I get phone call from another number 016 99345678, it shows Mr X is calling. It compares only last few digits!!! Regards Sarwar Erfan -- 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: Creating complex queries for SQLite
On Monday, January 3, 2011 3:32:50 PM UTC+6, Luca Carlon wrote: Assuming I am the ContentProvider developer, can I somehow execute these kinds of queries (using functions like replace, using subqueries etc...) using the SQLiteDatabase class? Its query method seems to suffer the same limitations, I cannot write a free SQL query command. use the rawQuery method available in SQLiteDatabase Regards Sarwar Erfan -- 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: Eclipse never sees AVDs anymore
On Mon, Jan 3, 2011 at 4:27 PM, Keith Wiley kbwi...@gmail.com wrote: On Jan 2, 8:00 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: Unplug your phone. If the phone is plugged in, it only shows AVDs with the same or higher Android version as your phone. Not sure why someone thought this is a good idea... You're both right and wrong. Unplugging the phone did indeed make the AVDs appear. However, while the phone was plugged in, no AVDs appeared, regardless of version. My phone is only 1.6. My assumption was indeed wrong. It only shows AVDs for 2.2/2.3 that have the Google APIs. Maybe the idea is to show only compatible AVDs (since the phone is with Google), but not quite sure exactly how it works. ADT is open source, so if you have the time, you could check the source. -- 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] Creating complex queries for SQLite
It's not possible to access other application's data files (including databases). It's also not possible to bypass ContentResolver / ContentProvider to get to the database, especially since a ContentProvider implementation doe snot have to use a SQLite database for its data storage. -- Kostya 03.01.2011 2:28, Luca Carlon пишет: Hi! I'm using the Android's media library intensively, and I was asking myself whether it is possible or not to query the database more freely than using the ContentProvider class. Would it be possible to query directly the database that is stored in the filesystem (/data/ data/com.android.providers.media/databases/internal.db)? For instance, I may need to create queries with subqueries and using various sqlite commands. Is this possible? Thanks! -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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] Re: Creating complex queries for SQLite
Luca, The way a ContentProvider maps a query into SQL statements is entirely up to your provider. The framework only imposes a few things: - The data bucket is selected by the URI. - The query is specified as an array of values. - The result is returned as a Cursor (not necessarily a SQLite cursor). You can do all kinds of subqueries, joins, etc - in your provider. The meaning of the Uri doesn't have to be that it's used to unambiguously select a Sqlite table. So with your own provider, you have a lot of flexibility. There are times, though, when the ContentResolver interface is somewhat limiting, but you can bypass it for your own provider. See below: 03.01.2011 12:32, Luca Carlon пишет: I already rooted and executed the queries I need using sqlite3, but I need to do this programmatically. Assuming I am the ContentProvider developer, can I somehow execute these kinds of queries (using functions like replace, using subqueries etc...) using the SQLiteDatabase class? Its query method seems to suffer the same limitations, I cannot write a free SQL query command. For your own content provider, assuming it's local to the process using it, you can get a reference to your provider object like this: ContentResolver cr = ... ContentProviderClient client = null; try { client = cr.acquireContentProviderClient(AUTHORITY); ContentProvider localProvider = client.getLocalContentProvider(); YourContentProvider yourContentProvider = (YourContentProvider) localProvider; // call methods of YourContentProvider } finally { if (client != null) { client.release(); } } This is not pretty or clean, but it's a way to call methods defined in your content provider class, which can have more rich functionality (like inserting a bunch of rows in a transaction, etc, etc). -- Kostya Thanks for your help! On Jan 3, 9:37 am, Sarwar Erfanerfanonl...@gmail.com wrote: On Monday, January 3, 2011 2:32:29 PM UTC+6, Luca Carlon wrote: Ok, that was just to confirm that it is impossible to use it that way. And what about making complex queries? The ContentProvider class provides the query method which, however, seems to be quite a limitation. What can I do, for instance, if I need to create queries with subqueries (or some other types of queries doesn't fit the simple pattern provided by the query method)? Thanks for your answers! You can *root* your phone to access the DB (in case you are not developing any app for general people) Or, you can send feature request to the content provider developer to add options to your desired kind of queries. You *cannot* access others database. You *cannot* use content provider other than the available options and filters set by the developer. Please bear with these. Regards Sarwar Erfan -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.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
[android-developers] Re: Creating complex queries for SQLite
This is very important for me! I didn't even see it! Thank you very very much! On Jan 3, 10:45 am, Sarwar Erfan erfanonl...@gmail.com wrote: On Monday, January 3, 2011 3:32:50 PM UTC+6, Luca Carlon wrote: Assuming I am the ContentProvider developer, can I somehow execute these kinds of queries (using functions like replace, using subqueries etc...) using the SQLiteDatabase class? Its query method seems to suffer the same limitations, I cannot write a free SQL query command. use the rawQuery method available in SQLiteDatabase Regards Sarwar Erfan -- 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] [Android sources] Add application
Hi all, I have an Android application (sources and/or .apk) and I want to add this application by default in the Android sources I modified. If I use adb install...It is just temporary, I want my app to be accessible from the android source code. How can I do that? Just adding src/ to the build path? What about the manifest of my app then? Best Regards -- Benats Guillaume . -- 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: c2DM error when third-party server sends data to push
Hi Nagaraj, could you make it work? I also tried downloading sources from google examples (JumpNote and Google2Chrome) and I couldn't make them work due to Authentication error (I think it could be related to something that Nasif Nooruden pointed you out about trimming the Auth string). However in my code, I've tried trimming the string and then I get 401 - UnAuthorized (I suppose it is because I have wrongly changed the auth string). Could it be an Apache HTTP related issue? But for me the most strange thing is that I can see the header in my POST request and the value of Content-Length is the same as the length of the POST parameters (and I have no querystring parameters). On Dec 27 2010, 6:18 pm, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: I am having the same problem as you and I think it's not my mistake I have checked the tcpdump (to do it I changed from https to http to have plain text). POST /c2dm/send HTTP/1.1 Authorization: GoogleLogin auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG- pTSPl07dQWCwM2tNSnbFCS6FO- Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO- eHFXp1UsCE6FM6mQ LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS- iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq- TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T- NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI- D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl-- eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs Content-Type: application/x-www-form-urlencoded Content-Length: 209 User-Agent: Jakarta Commons-HttpClient/3.1 Host: android.apis.google.com registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz- i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfEcollapse_key=12345data.receiver=1234data.source=12345data.message=holaHTTP/ 1.0 411 Length Required Content-Type: text/html; charset=UTF-8 Content-Length: 1363 Date: Mon, 27 Dec 2010 16:30:22 GMT Server: GFE/2.0 htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title411 Length Required/title style!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #cc} div.nav A {font-size: 10pt; color: black} A.l:link {color: #6f6f6f} A.u:link {color: green} //--/style script!-- var rc=411; //-- /script /head body text=#00 bgcolor=#ff table border=0 cellpadding=2 cellspacing=0 width=100%trtd rowspan=3 width=1% nowrap bfont face=times color=#0039b6 size=10G/fontfont face=times color=#c41200 size=10o/fontfont face=times color=#f3c518 size=10o/fontfont face=times color=#0039b6 size=10g/fontfont face=times color=#30a72f size=10l/fontfont face=times color=#c41200 size=10e/fontnbsp;nbsp;/b tdnbsp;/td/tr trtd bgcolor=#3366ccfont face=arial,sans-serif color=#ffbError/b/td/tr trtdnbsp;/td/tr/table blockquote H1Length Required/H1 POST requests require a codeContent-length/code header. p /blockquote table width=100% cellpadding=0 cellspacing=0trtd bgcolor=#3366ccimg alt= width=1 height=4/td/tr/table /body/html This is my code: Protocol myhttps = new Protocol(https, new EasySSLProtocolSocketFactory(), 443); HttpClient httpclient = new HttpClient(); httpclient.getHostConfiguration().setHost(android.apis.google.com, 443, myhttps); PostMethod httppost = new PostMethod(C2DM_URL); try { httppost.addRequestHeader(Authorization, GoogleLogin auth= + authToken); httppost.addRequestHeader(Content-Type, application/x-www-form- urlencoded); httppost.addParameter(registration_id, registrationID); httppost.addParameter(collapse_key, collapseKey); httppost.addParameter(data.receiver, destination); httppost.addParameter(data.source, source); httppost.addParameter(data.message, message); httppost.addRequestHeader(Content-Length, +httppost.getRequestEntity().getContentLength()); httpclient.executeMethod(httppost); return new String(httppost.getResponseBody()); } finally { httppost.releaseConnection(); } } I have tested all those headers and it does not work. Did you find anything? Is it possible to
[android-developers] How to change the color..?
Hi, How can we change the rating bar color to different color i.e, by default it's showing green color now how can we change the color of that rating bar.. can anyone send me the code snippet please. Regards, Abhilash.B -- 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: Eclipse ADT update ruins XML layout files development
link is not open-able On Mon, Jan 3, 2011 at 8:35 AM, sisko adeod...@gmail.com wrote: This image (http://www.mathcs.org/java/android/images/ xml_converter_outline.jpg) shows what I am refering to. The update has removed all the images and associated functionality for the plus, minus, up and down buttons on the outline tab. On Jan 2, 8:19 pm, sisko adeod...@gmail.com wrote: I recently updated my eclipse installation with which I develop my Android apps. Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts. I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please. Thanks -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- A N K ! T.. -- 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] Debug certificate expired error in eclipse android plugins
Remove the debug.keystore from you docuements Settings of your user. restart eclipse. clean your project, i will work. Regards Vinod Kumar D. On Thu, Feb 4, 2010 at 3:19 AM, Xavier Ducrohet x...@android.com wrote: It should be the only thing you need to do. Did you force a recompile in Eclipse? It will recreate the file if it's not present. Xav On Wed, Feb 3, 2010 at 12:19 PM, hap 497 hap...@gmail.com wrote: I am on MacOSX. And i have revmoed /Users/hap497/.android/debug.keystore. But that dose not solve my problem. What else do I need to remove? Thanks. On Wed, Feb 3, 2010 at 11:55 AM, Frank Weiss fewe...@gmail.com wrote: Try removing it. The build will probably create a new one. On Feb 3, 2010 11:24 AM, hap 497 hap...@gmail.com wrote: I am using eclipse android plugins to build a project, But i am getting this error in the console window: [2010-02-03 10:31:14 - androidVNC]Error generating final archive: Debug certificate expired on 1/30/10 2:35 PM! Does anyone know how to fix it? Thank you. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. Thanks! -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards --- D Vinod Kumar R D Engineer - Android Platform Mobile : 09916009493 http://in.linkedin.com/in/desuvinodkumar -- 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: Maximum size of APK that can Upload to Android Market
We are also increasing the maximum size for .apk files on Market to 50MB, to better support richer games. check this line from the above link. One more thing i observed is they are preloading some data one other way i guess after that we can dowload data from server if you have too many resources, that what for getting more resources, what i feel Normall android market allow 50 MB apks from the above link. Regards Vinod Kumar D. On Wed, Dec 22, 2010 at 11:06 AM, Revanth kumar revanth.andr...@gmail.comwrote: Thank you for your replies. On Wed, Dec 15, 2010 at 11:09 PM, Jake Basile jakerbas...@gmail.comwrote: If you need that much space, you should consider downloading it yourself to the SD card. This is the accepted way to download big sets of data. the TTS engine does this, if I recall correctly. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Regards --- D Vinod Kumar R D Engineer - Android Platform Mobile : 09916009493 http://in.linkedin.com/in/desuvinodkumar -- 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: How to change the color..?
Any help regarding this issue. On Mon, Jan 3, 2011 at 3:58 PM, Abhilash baddam abhilash.androiddevelo...@gmail.com wrote: Hi, How can we change the rating bar color to different color i.e, by default it's showing green color now how can we change the color of that rating bar.. can anyone send me the code snippet please. Regards, Abhilash.B -- 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: How to change the color..?
This class is derived from View. So, did you try the things you would do to change background color of a View? may be android:backgroundhttp://developer.android.com/reference/android/view/View.html#attr_android:background ? Regards Sarwar Erfan -- 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] Connecting to Licensing server through Local/Remote Server
Hi All, 1.we want download the licensed apk from the android market. Our apk should connect to our own server. Our server should connect to the android Licensing server and verfied the user is licensed or not. 2.Response back to our server and our server response to mobile client. Request:- 1. mobileclient.apk -- Our Server- Google licensing Server Response:- 2. Google licensing Server --- Our Server --- mobileclient.apk Whether it is possible or not, Please suggest. Thanks Regards, Revanth -- 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] twlauncher activity - phone hangs continuously
Hello people I have Samsung Galaxy 3. The phone hangs often saying 'force close - twlauncher activity' What causes this problem? and How to resolve this issue? Regards Manas -- 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: Voice search/Record Error
Hi, My issue is resolved. I thought it may be helpful for others. So posting the solution for the issue I was facing. For the samplerate problem, we commented the code in frameworks/base/ libs/audioflinger/AudioHardwareInterface.cpp in size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) function /* if (sampleRate != 8000) { LOGW(getInputBufferSize bad sampling rate: %d, sampleRate); return 0; }*/ Incase you don't have voicesearch.apk in your hardware you can get it from net. I got it from this link http://www.chadhaney.com/droidXDefault/ You should also have GoogleServicesFramework.apk. you can download from the above link Also you need to download libspeech.so. You can get it in net. Initially we were getting 'Connection problem' when we ran the application. Even though we are connected to the network (using ethernet). Since Androidframework didnt have support for ethernet in the connectivity framework, application is not able to connect to internet. So to add ethernet support we took the patches from following links: https://review.source.android.com/#dashboard,1001873 https://review.source.android.com/#dashboard,1001874 If you have wifi or data connection you need not use the above patches. Thanks and Regards, ksp On Dec 2 2010, 9:02 pm, Satya ksprasa...@gmail.com wrote: Hi, I am new to Audio module and new to Android. I am getting the following error when I start Voice Search application. # W/InputManagerService( 965): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$S8 D/dalvikvm( 1196): GC_EXPLICIT freed 1145 objects / 53992 bytes in 80ms I/ActivityManager( 965): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] } I/ActivityManager( 965): Displayed activity com.google.android.voicesearch/.RecognitionActivity: 539 ms (total 539 ms) I/AudioService( 965): AudioFocus requestAudioFocus() from android.media.audiomana...@43f1eb48 I/MicrophoneInputStream( 1196): Starting voice recognition with audio source VOICE_RECOGNITION W/AudioHardwareInterface( 919): getInputBufferSize bad sampling rate: 16000 D/ALSAModule( 919): open called for devices 0004 in mode 0... E/ALSALib ( 919): external/alsa-lib/src/pcm/pcm.c:2210: (snd_pcm_open_noupdate) Unknown PCM AndroidCapture I/ALSAModule( 919): Initialized ALSA CAPTURE device default D/AcousticsModule( 919): Acoustics set_params stub called with 0. W/AudioHardwareInterface( 919): getInputBufferSize bad sampling rate: 16000 E/AudioRecord( 1196): Recording parameters are not supported: sampleRate 16000, channelCount 1, format 1 E/AudioRecord-JNI( 1196): Error creating AudioRecord instance: initialization check failed. E/AudioRecord-Java( 1196): [ android.media.AudioRecord ] Error code -20 when initializing native AudioRecord object. W/GoogleRecognitionService( 1196): Audio problem W/GoogleRecognitionService( 1196): java.lang.IllegalStateException: not open W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.endpointer.MicrophoneInputStream.init(Microphone) W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.GoogleRecognitionService.setupMicrophoneInputStrea) W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.GoogleRecognitionService.setupMicrophone(GoogleRec) W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.GoogleRecognitionService.startRecognitionInternal() W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.GoogleRecognitionService.access $000(GoogleRecognit) W/GoogleRecognitionService( 1196): at com.google.android.voicesearch.GoogleRecognitionService $1.handleMessage(GoogleRec) W/GoogleRecognitionService( 1196): at android.os.Handler.dispatchMessage(Handler.java:99) W/GoogleRecognitionService( 1196): at android.os.Looper.loop(Looper.java:123) W/GoogleRecognitionService( 1196): at android.os.HandlerThread.run(HandlerThread.java:60) W/AudioPolicyManagerBase( 919): getOutput() could not find output for stream 3, samplingRate 0, format 0, channels c, flags0 E/MediaPlayer( 1196): error (-19, 0) E/MediaPlayer( 1196): Error (-19,0) D/dalvikvm( 1040): GC_EXPLICIT freed 1822 objects / 107272 bytes in 89ms # As per my understanding, the sample rate that the Voicesearch Application is trying to set is not being supported by the AudioHardwareInterface module: AudioHardwareInterface( 919): getInputBufferSize bad sampling rate: 16000 Even in the code the function(in AudioHardwareInterface.cpp) is returning error if the sample rate any other value other than 8000: ## size_t AudioHardwareBase::getInputBufferSize(uint32_t sampleRate, int format, int channelCount) { if
[android-developers] Re: Default Buttons appearing as black rectangles on DROIDX?
DroidX uses its own custom OS themes, buttons will be black with white text -niko On Dec 30 2010, 9:28 pm, JRock develo...@earthblood.com wrote: Hopefully someone can point me in the right direction as to what is going on here: In my app, I use standard buttons and spinners, which have always appeared as basic beveled silver buttons. I have seen these look fine on my Nexus One running 2.2.1 as well as a couple of other phones. I just saw a friend's brand new DROIDX running 2.2.1, and when viewing my app on that device all the buttons and spinners are ugly black rectangles that look horrible and ruin the layout. Any ideas on what is going on here? This is an example of the standard buttons and spinners I am talking about: Button android:text=Previous android:id=@+id/previousresults android:layout_width=fill_parent android:layout_height=wrap_content /Button Spinner android:id=@+id/mySpinner android:layout_width=fill_parent android:layout_height=wrap_content android:drawSelectorOnTop=true android:prompt=@string/myPrompt android:layout_alignParentTop=true android:layout_centerHorizontal=true android:paddingTop=2dip android:paddingBottom=2dip /Spinner -- 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] Cannot load library: link_image[1995]: failed to link libmedia_jni.so
Hi All, I am working on android froyo. I am getting Cannot load library: link_image[1995]: failed to link libmedia_jni.so error while booting. below is the logcat: D/AndroidRuntime( 1674): AndroidRuntime START D/AndroidRuntime( 1674): CheckJNI is ON D/AndroidRuntime( 1674): --- registering native functions --- I/SamplingProfilerIntegration( 1674): Profiler is disabled. I/Zygote ( 1674): Preloading classes... D/dalvikvm( 1674): GC_EXPLICIT freed 816 objects / 47208 bytes in 8ms D/dalvikvm( 1674): GC_EXPLICIT freed 219 objects / 13560 bytes in 19ms D/dalvikvm( 1674): GC_EXPLICIT freed 253 objects / 14336 bytes in 20ms D/dalvikvm( 1674): GC_EXPLICIT freed 466 objects / 28872 bytes in 22ms D/dalvikvm( 1674): GC_EXPLICIT freed 2090 objects / 108312 bytes in 26ms I/dalvikvm( 1674): Unable to dlopen(/system/lib/libmedia_jni.so): Cannot load library: link_image[1995]: failed to link libmedia_jni.so I/dalvikvm( 1674): W/dalvikvm( 1674): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Landroid/media/DecoderCapabilities;.clinit W/dalvikvm( 1674): Exception Ljava/lang/ExceptionInInitializerError; thrown during Landroid/media/MediaFile;.clinit E/Zygote ( 1674): Error preloading android.media.MediaFile. E/Zygote ( 1674): java.lang.ExceptionInInitializerError E/Zygote ( 1674): at java.lang.Class.classForName(Native Method) E/Zygote ( 1674): at java.lang.Class.forName(Class.java:235) E/Zygote ( 1674): at java.lang.Class.forName(Class.java:182) E/Zygote ( 1674): at com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:302) E/Zygote ( 1674): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:589) E/Zygote ( 1674): at dalvik.system.NativeStart.main(Native Method) E/Zygote ( 1674): Caused by: java.lang.ExceptionInInitializerError E/Zygote ( 1674): at android.media.MediaFile.isWMAEnabled(MediaFile.java:106) E/Zygote ( 1674): at android.media.MediaFile.clinit(MediaFile.java:131) E/Zygote ( 1674): ... 6 more E/Zygote ( 1674): Caused by: java.lang.UnsatisfiedLinkError: Library media_jni not found E/Zygote ( 1674): at java.lang.Runtime.loadLibrary(Runtime.java: 461) E/Zygote ( 1674): at java.lang.System.loadLibrary(System.java: 557) E/Zygote ( 1674): at android.media.DecoderCapabilities.clinit(DecoderCapabilities.java: 46) E/Zygote ( 1674): ... 8 more D/AndroidRuntime( 1674): Shutting down VM W/dalvikvm( 1674): threadid=1: thread exiting with uncaught exception (group=0x4001d7f0) init: untracked pid 1675 exited D/skia( 1674): purging 6K from font cache [1 entries] D/AndroidRuntime( 1679): D/AndroidRuntime( 1679): AndroidRuntime START Please help me to solve this error. Regards Ashwani -- 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] Samsung Galaxy Player
Apparently: http://android-developers.blogspot.com/2010/10/five-steps-to-future-hardware-happiness.html There are also (or will be) the Wifi-only Galaxy Tab, and Google TV. On Sun, Jan 2, 2011 at 8:47 PM, Zsolt Vasvari zvasv...@gmail.com wrote: Before, the official position was that all apps on the Market could assume that there will be phone capabilities on the user's device. Is this assumption officially out the window with the availability of the Android Market on the Samsung Galaxy Player? -- 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 -- 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] How to Scale Down HDMI Output in Android
Hi. I am an Android developer and I am working for a set top box project. I want to be able to change the width and height of the display. Because, on the some of the televisions which I use with our box and HDMI cable, the display is bigger than the panel of TV. It doesn't look good. I want to develop an application to allow users changing the size of display. How can I do this? I am waiting for your help. -- 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: Eclipse ADT update ruins XML layout files development
Don't know what happened. Here is the image link again - http://www.mathcs.org/java/android/images/xml_converter_outline.jpg On Jan 3, 3:05 am, sisko adeod...@gmail.com wrote: This image (http://www.mathcs.org/java/android/images/ xml_converter_outline.jpg) shows what I am refering to. The update has removed all the images and associated functionality for the plus, minus, up and down buttons on the outline tab. On Jan 2, 8:19 pm, sisko adeod...@gmail.com wrote: I recently updated my eclipse installation with which I develop my Android apps. Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts. I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please. Thanks -- 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: Reusing BitmapDrawable objects
Thanks. On Jan 2, 10:59 pm, Doug beafd...@gmail.com wrote: Look into bitmap mutations? http://developer.android.com/resources/articles/drawable-mutations.html On Dec 31 2010, 11:22 pm, John Gaby jg...@gabysoft.com wrote: I have custom skinned buttons. I set the bitmaps for the button backgrounds using the addState method of the StateListDrawable class and pass in a BitmapDrawable which is loaded from a file on the SD card. Now I am having out of memory issues, so I thought that I would try and cache the BitmapDrawable and reuse them for all the buttons on a page, rather than creating a new one for each button. However, when I do this, the buttons don't display correctly. For example if I have two buttons of different sizes, the background is drawn at the same size for both, rather than have each scale. Also, if one button on the page is hidden, then the backgrounds for some of the other (still visible) buttons disappear. This does not happen if I create separate BitmapDrawable objects for each of the buttons. My question is, am I supposed to be able to reuse these objects in this manner? If not, how can I keep from duplicating the memory required to skin each button on a page? Thanks. -- 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: How to tell if phone is Android configured?
Hi, What model is it ? What is it called ? Most current Xperias (x10/X10 mini/pro) are Android - but their are also two windows mobile ones, (X1 and X2) Kind regards /Johan On Dec 16 2010, 8:09 pm, MrUmunhum mrumun...@cruzio.com wrote: Hi group, I just was given a phone that is said to support Android? How can I tell?? It is aSonyEricssonXperia. If it dows support Android, how do I update 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
[android-developers] Re: Running adb logcat and dmesg commands from within my app.
Seems that you are looking for a terminal emulator like this one .. https://github.com/jackpal/Android-Terminal-Emulator/wiki Good luck ! Frank On 31 Dez. 2010, 22:48, Jay j.gato...@gmail.com wrote: I started reading that, but it still doesn't complete sense. Are there any other more descriptive documents on this out there? On Dec 30, 7:33 pm, jotobjects jotobje...@gmail.com wrote: You get an InputStream from the Process returned by the exec call. Read and study the javadoc for java.lang.Runtime an java.lang.Process. On Dec 30, 3:14 pm, Jay j.gato...@gmail.com wrote: I also want to be able to run commands like 'ls' and 'cat' On Dec 30, 5:09 pm, Jay j.gato...@gmail.com wrote: Hello, Here's what I'm trying to accomplish: I want to be able to show dmesg logs and logcat output in an app I'm writing. I know that I'm supposed to use Runtime.getRuntime().exec(), however other than that, I'm pretty lost. I tried to find some examples, but couldn't. Can someone here give me some information on how to do this? Maybe point me to some example code. Aside from doing the following in my code: Runtime.getRuntime().exec(dmesg); or Runtime.getRuntime().exec(logcat); I'm not sure what else to do to be able to read dmesg and logcat outputs. Thanks,- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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: Google analytics crash
I did the same, wrap all analytics calls in a try/catch block, Mark On Mon, Jan 3, 2011 at 3:39 AM, blindfold seeingwithso...@gmail.com wrote: Well, after another user apparently had 6 crashes in 2 minutes from GoogleAnalyticsTracker.trackEvent() right when launching my app, I've updated my app to wrap all Google Analytics calls in try-catch blocks to quench the symptoms. Even though the crash reports were rare, this seems to be the only/simplest way for me to avoid an occasional bad user experience due to use of Google Analytics. Regards java.lang.RuntimeException: Unable to start activity ComponentInfo{vOICe.vOICe/vOICe.vOICe.The_vOICe}: java.lang.IllegalStateException: no transaction pending at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2663) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2679) at android.app.ActivityThread.access$2300(ActivityThread.java: 125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java: 2033) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:4627) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:521) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:878) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.IllegalStateException: no transaction pending at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java: 555) at com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown Source) at com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at vOICe.vOICe.The_vOICe.onCreate(Unknown Source) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2627) ... 11 more FINGERPRINT {verizon/thunderc/thunderc/thunderc:2.2/FRF91/eng.lge. 20101101.102025:user/release-keys} On Dec 31 2010, 3:55 pm, blindfold seeingwithso...@gmail.com wrote: Hmm, I have only one global tracker object that I create in the onCreate() of my main activity, and with a regular dispatch interval through the format tracker.start(UA-12345-0, nseconds, this), so I'd say that it all works from one alive thread. However, in one pair of crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs after my app had been running for some time, while the second GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app startup only 3 minutes later, for the same device FINGERPRINT, suggesting that indeed some sort of lock had lived on even across runs to cause a second crash because the second run would not be owning the lingering lock. This was for a Samsung GT-I5800 running Android 2.1- update1. On Dec 31, 3:21 pm, H m...@howardb.com wrote: Looking in the analytics source after you've called trackEvent(), I suspect that error is coming out when it is using a database transaction to insert the event into the database. Once inserted, it calls endTransaction as well as setTransactionSuccessful. Both of these do this check: if (!mLock.isHeldByCurrentThread()) { throw new IllegalStateException(no transaction pending); } So it could be worth checking to see if you are tracking the event from a thread that has ended, or calling dispatch from a different thread...? HTH. -- 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 -- 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: Screen Rotation
if what you posted in the original msg is a cut/paste, then the problem is likely a typo - the right before your android:configChanges line should be moved to AFTER activity android:name=.ReunionPlanner android:label=@string/app_name android:configChanges=orientation|keyboardHidden On Dec 31 2010, 2:21 pm, Robert rcope...@gmail.com wrote: Yes, I agree and even said in my original post that I was working to understand how to make that work correctly. Still would be interested to know why the manifest entry doesn't seem to be working as documented. -- 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: How to add labels above this table layout
On Sun, Jan 2, 2011 at 11:32 PM, pramod.deore deore.pramo...@gmail.comwrote: But I didn't find anything wrong in code . here ia my code which populate the list First thing I noticed was no call to setContentView(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] initialization of usb from android Application
Hi, Is it possible to initialize USB from Android Application? if possible please post a sample code. Thanks, Bharath -- 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] How USB tethering / Mass storage works in Android?
Hi, Can anybody please explain or send a link points how USB tethering / Mass storage works internally in Android. Thanks, Bharath -- 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: c2DM error when third-party server sends data to push
Hi Nagaraj, I made it work... The point is: what are you sending as Auth token? the whole response that you got from /ClientLogin? or just the Auth= section? (Without the Auth=). You have to send the second one. If you're already doing it that way, try removing all \n in that String. You will also have to disable expect:continue in http requests (it's something that sends only the headers and if it's ok, continues sending the body). To do so: HttpParams params = new BasicHttpParams(); HttpProtocolParams.setUseExpectContinue(params, false); HttpClient httpclient = new DefaultHttpClient(params); That way it worked for me... On Jan 3, 11:25 am, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: Hi Nagaraj, could you make it work? I also tried downloading sources from google examples (JumpNote and Google2Chrome) and I couldn't make them work due to Authentication error (I think it could be related to something that Nasif Nooruden pointed you out about trimming the Auth string). However in my code, I've tried trimming the string and then I get 401 - UnAuthorized (I suppose it is because I have wrongly changed the auth string). Could it be an Apache HTTP related issue? But for me the most strange thing is that I can see the header in my POST request and the value of Content-Length is the same as the length of the POST parameters (and I have no querystring parameters). On Dec 27 2010, 6:18 pm, Jose Ignacio Gil Jaldo naranj...@gmail.com wrote: I am having the same problem as you and I think it's not my mistake I have checked the tcpdump (to do it I changed from https to http to have plain text). POST /c2dm/send HTTP/1.1 Authorization: GoogleLogin auth=SID=DQAAALw7O-9sDrg_FXztPEQ7fcfqBmPtCtIcN3gX4wTsXf7AmfQh5eetqv5jQm6FGt7QvjMJNaoZFlLNG- pTSPl07dQWCwM2tNSnbFCS6FO- Xe0Q0SJ6Ok4gipqqArAB2uh7mvgtHRguiWaP38IRVHcQjG4fhpo0K6LIZN0fBoE__FXl5ukqsIVc8Qo_ezXOspC_MZew76G6AvfkqwyMTM7XWzrgHDT9D9MlbgnuAWpR_XOA1KKOVO- eHFXp1UsCE6FM6mQ LSID=DQAAAL8AAADFjsO1Q_TnSqwZgm3HYxQsb08JcQxFwC_oucPZ3eEiqFNLhuQWJI_ZVS- iMuZKphHsmghU7I1sQPkFC_Iu0Jc0Fba4efoUYHcq- TBjLJgPQW-8aQVFMEobmMhkTJUUr0iXAibZV2Bbwd7HalGh1oZU07AtvQa7T- NMv7LUZT8rSYeSZ8kHBXKYaUHjVykVAAKmw2gS3ZDxpiklgSg8VmSyU6788JwH6lh2VpDzs1r0yoH55qOZD8gzBls64i5Lwgk Auth=DQAAAL8AAAD3PzwO5BSHo_TzqwD-QyTVM73-vxDAlUs8fkzbLoX5lHr6YI- D0IznRSnYoJshE9LDjtm78vcpbieT_RGBS9pnWXFier8l8uVQwITP0SLJnH2QMla4qLzylDANSqIIDdm_MY91t1wjGGivaTr5mOB_4w-0NQx_QvSQwyl-- eZnEkkH-80Ul_HJYzLv6TneYGd9q1q6UUAgDszesHzBQYullYvmwY1aF2wbVCUKF4urS_ynONL55aYg01ccShzExjs Content-Type: application/x-www-form-urlencoded Content-Length: 209 User-Agent: Jakarta Commons-HttpClient/3.1 Host: android.apis.google.com registration_id=APA91bEhZNjB1KZRlIzolrG_oXBpn0uTxPsoX22L5Xz- i9DTK38PRNe4QgoMTG9L4mrGlx33t6k39vRewVFRF7SAMbVSj62ESJ5o1gAdfANSiC6SCdXzAfEcollapse_key=12345data.receiver=1234data.source=12345data.message=holaHTTP/ 1.0411Length Required Content-Type: text/html; charset=UTF-8 Content-Length: 1363 Date: Mon, 27 Dec 2010 16:30:22 GMT Server: GFE/2.0 htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title411Length Required/title style!-- body {font-family: arial,sans-serif} div.nav {margin-top: 1ex} div.nav A {font-size: 10pt; font-family: arial,sans-serif} span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold} div.nav A,span.big {font-size: 12pt; color: #cc} div.nav A {font-size: 10pt; color: black} A.l:link {color: #6f6f6f} A.u:link {color: green} //--/style script!-- var rc=411; //-- /script /head body text=#00 bgcolor=#ff table border=0 cellpadding=2 cellspacing=0 width=100%trtd rowspan=3 width=1% nowrap bfont face=times color=#0039b6 size=10G/fontfont face=times color=#c41200 size=10o/fontfont face=times color=#f3c518 size=10o/fontfont face=times color=#0039b6 size=10g/fontfont face=times color=#30a72f size=10l/fontfont face=times color=#c41200 size=10e/fontnbsp;nbsp;/b tdnbsp;/td/tr trtd bgcolor=#3366ccfont face=arial,sans-serif color=#ffbError/b/td/tr trtdnbsp;/td/tr/table blockquote H1Length Required/H1 POST requests require a codeContent-length/code header. p /blockquote table width=100% cellpadding=0 cellspacing=0trtd bgcolor=#3366ccimg alt= width=1 height=4/td/tr/table /body/html This is my code: Protocol myhttps = new Protocol(https, new EasySSLProtocolSocketFactory(), 443); HttpClient httpclient = new HttpClient(); httpclient.getHostConfiguration().setHost(android.apis.google.com, 443, myhttps); PostMethod httppost = new PostMethod(C2DM_URL); try { httppost.addRequestHeader(Authorization, GoogleLogin auth= + authToken); httppost.addRequestHeader(Content-Type, application/x-www-form-
[android-developers] Re: moving InputMethod to the top
Hi, Well, actually, was a costumer that told me. I should have been more clear. Is it possible to include this feature in a future release of Android? We had this available in Windows Mobile and Palm OS. It is useful if the screen has lots of input fields and some of them are in the bottom part of the screen. In our system, we move the input panel to the top on these cases. Thanks and have a great 2011 for everyone! guich -- 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] share the tree view implementation on android
hi,all, Here's a good sample for the tree view implementation on android: http://isomobile.com/read.php?tid-49.html Hope this will be helpful for some special requirements:) BR andy zhao -- 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] [Android sources] Add application
On Mon, Jan 3, 2011 at 4:24 AM, guillaume benats guillaume.ben...@gmail.com wrote: I have an Android application (sources and/or .apk) and I want to add this application by default in the Android sources I modified. You're in the wrong group - try the porting or platform groups for stuff related to modifying the platform. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] How USB tethering / Mass storage works in Android?
On Mon, Jan 3, 2011 at 9:33 AM, bharath dg.bhar...@gmail.com wrote: Can anybody please explain or send a link points how USB tethering / Mass storage works internally in Android. You'll probably have to dig through and read the source for something like this. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: moving InputMethod to the top
No plans to at this point. On Mon, Jan 3, 2011 at 8:51 AM, guich guiha...@gmail.com wrote: Hi, Well, actually, was a costumer that told me. I should have been more clear. Is it possible to include this feature in a future release of Android? We had this available in Windows Mobile and Palm OS. It is useful if the screen has lots of input fields and some of them are in the bottom part of the screen. In our system, we move the input panel to the top on these cases. Thanks and have a great 2011 for everyone! guich -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: moving InputMethod to the top
I should expand a bit -- Android's IME architecture is very different from iPhone (and I believe Windows Mobile as well and definitely Palm OS), since it is designed to allow IME to be a user-replaceable components that are still secure (not running in the same process as the application). Because of this, it is harder to making them as closely integrated. Not that it isn't impossible, but it started getting to the point where it is questionable whether the increased complexity is worth it. On Mon, Jan 3, 2011 at 9:49 AM, Dianne Hackborn hack...@android.com wrote: No plans to at this point. On Mon, Jan 3, 2011 at 8:51 AM, guich guiha...@gmail.com wrote: Hi, Well, actually, was a costumer that told me. I should have been more clear. Is it possible to include this feature in a future release of Android? We had this available in Windows Mobile and Palm OS. It is useful if the screen has lots of input fields and some of them are in the bottom part of the screen. In our system, we move the input panel to the top on these cases. Thanks and have a great 2011 for everyone! guich -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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] Proguard retrace tool - wrong output
Hi, I'm experimenting with proguard now that it's easier to use from within eclipse. I've exported a signed version of my app with a deliberate bug that causes a crash for testing. After I get the stack trace and run retrace -verbose mapping.txt stack.txt, instead of giving me where the error occurs, it gives me the class where error happens and list a of methods, one of which is the method where the exception happens. Has anyone else had this problem? I've used the official guide for all of this and edited the logcat stack trace capture to be in the same format as the dev console. -- 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] Repeating image on a canvas
In my game doodle bike on the market right now. I have 3 backgrounds on a canvas, one is the far background whick is a solid jpg and the next layer is a png that is transparent and only fills 1/3 of the screen, both of these backgrounds move as the player moves, and the top background is a paper texture that is semi transparent and it does not move at all, so right now the 2 backgrounds are just very long images, would I get increased performance if I replaced these big ones with smaller ones that just kept on repeating. Because I got a comment that said it lagged very badly and it is lagging a little on my phone and I have a 1ghz phone. -- 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] get coordinates inside of a view
Hello, Is it possible to get the coordinates of a ontouch Event relative to the viewsize? for example if the user clicks on the upper left corner of a ImageView it should return (0,0) and so on... When i use the getRawX(), getRawY() methods of the MotionEvent i only geht absolute screen coordinates. greets.. -- 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: get coordinates inside of a view
ps :D just saw that there are some getX and getY methods which return the position INSIDE the view... sorry guys :) greets On Jan 3, 8:21 pm, crem bernd.warm...@gmail.com wrote: Hello, Is it possible to get the coordinates of a ontouch Event relative to the viewsize? for example if the user clicks on the upper left corner of a ImageView it should return (0,0) and so on... When i use the getRawX(), getRawY() methods of the MotionEvent i only geht absolute screen coordinates. greets.. -- 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] Controlling a TextView's textColor behavior
I have a LinearLayout that contains an ImageView and two TextViews that is returned by my ListView item adapter. I know this has been asked many times and I am following the advice I have found so far but have a small yet elusive problem with the color of the TextViews. The ListView has a selector set to a 9-patch drawable that puts a nice background behind the list items when selected or pressed. In the xml for the LinearLayout returned to the ListView I set the textview.textColor=@color/textview_statelist. textview_statelist: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:color=@color/white_text / item android:state_selected=true android:color=@color/white_text / item android:color=@color/black_text / /selector When I run the app and touch an item in the list everything works perfect; the text color changes with state just fine. However, after I touch the item in the list, for a split second, the text views background becomes an opaque white and NOT the listSelector of the ListView. After just a second the ListView repaints again and everything is fine, the TextView again paint with the correct background (ie, not opaque anymore). Has anyone experienced this behavior? If so, has anyone found a resolution to this? I the only thing I can think of is that I am missing some item states in the color state list xml, but the fact that the text color is changing makes think this is NOT true as it is a problem with the background of the text view and NOT the color of the text. Mark. -- 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: Making a playlist based on 'genre'
Yes, I am also wanting some advices on this. -- 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] XML Signature
How is it possible to generate XML signature on Android. In pure JAVA I would probably follow this tutorial: http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/ but I cannot find following packages on android: javax.xml.crypto javax.xml.crypto.dsig javax.xml.crypto.dsig.keyinfo javax.xml.crypto.dsig.spec javax.xml.crypto.dom javax.xml.crypto.dsig.dom Any suggestions? Kind Regards -- 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] Programmatically cause a focus event on a text input
Hello, I have an EditText with an OnFocusChangeListener attached to that does various things. Sometimes this EditText is not visible on the screen so I have a button as a convenience to the user to show the EditText on the screen. To streamline the experience even more I would like to automatically select the EditText and programmatically cause the EditText to receive a focus event so all the various actions will happen. I know you can requestFocus() for an EditText and I would like help on how to programmatically cause the EditText to receive a focus event. Thank you. -- 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: Eclipse ADT update ruins XML layout files development
Can anyone please help me. My eclipse update has removed the very vital control elements on the outline tab (shown here http://www.mathcs.org/java/android/images/xml_converter_outline.jpg ).I am referring to the plus, minus, up and down arrow buttons. On Jan 3, 2:23 pm, sisko adeod...@gmail.com wrote: Don't know what happened. Here is the image link again -http://www.mathcs.org/java/android/images/xml_converter_outline.jpg On Jan 3, 3:05 am, sisko adeod...@gmail.com wrote: This image (http://www.mathcs.org/java/android/images/ xml_converter_outline.jpg) shows what I am refering to. The update has removed all the images and associated functionality for the plus, minus, up and down buttons on the outline tab. On Jan 2, 8:19 pm, sisko adeod...@gmail.com wrote: I recently updated my eclipse installation with which I develop my Android apps. Soon I found my layout files have lost the up and down arrows associated with each VIEW and LAYOUT which helps to organize my layouts. I don't know whatelse the update, if anything, has messed up but I wonder and would appreciate any information on how to fix this issue so I can get my developments back on track, please. Thanks -- 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: Eclipse ADT update ruins XML layout files development
On Mon, Jan 3, 2011 at 4:26 PM, sisko adeod...@gmail.com wrote: Can anyone please help me. My eclipse update has removed the very vital control elements on the outline tab (shown here http://www.mathcs.org/java/android/images/xml_converter_outline.jpg ).I am referring to the plus, minus, up and down arrow buttons. I believe this was intentional as the new tool is supposed to rely on drag-n-drop. See here for more info: http://tools.android.com/download - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: PreferenceActivity in TabActivity Error (Fatal Exception)
I am still perplexed by this issue. The problem continues in Gingerbread with the following stack trace from the emulator in LogCat: 01-03 14:30:33.626: ERROR/AndroidRuntime(339): FATAL EXCEPTION: main 01-03 14:30:33.626: ERROR/AndroidRuntime(339): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.localactivitymanager$localactivityrec...@4052a758 is not valid; is your activity running? 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.view.ViewRoot.setView(ViewRoot.java:527) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.view.Window$LocalWindowManager.addView(Window.java:424) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.app.Dialog.show(Dialog.java:241) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.preference.DialogPreference.showDialog(DialogPreference.java: 306) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.preference.DialogPreference.onClick(DialogPreference.java:264) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.preference.Preference.performClick(Preference.java:810) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java: 190) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.widget.ListView.performItemClick(ListView.java:3513) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1800) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.os.Handler.handleCallback(Handler.java:587) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.os.Handler.dispatchMessage(Handler.java:92) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.os.Looper.loop(Looper.java:123) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at android.app.ActivityThread.main(ActivityThread.java:3647) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invokeNative(Native Method) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at java.lang.reflect.Method.invoke(Method.java:507) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 01-03 14:30:33.626: ERROR/AndroidRuntime(339): at dalvik.system.NativeStart.main(Native Method) On Dec 23 2010, 12:03 pm, Dan king...@gmail.com wrote: I have a PreferenceActivity (TabTabHostPreferences) which is a tab in TabActivity B (InnerTabActivity) which is a tab in TabActivity A (TabTabPref). I admit its a bit convoluted but its design feels a natural for my project. I am getting the error, listed below, when I try to open a EditTextPreference in my TabTabHostPreferences. The error occurs before the dialog appears. I have also included my TabActivites for completeness. 12-23 11:36:59.630: ERROR/AndroidRuntime(816): FATAL EXCEPTION: main 12-23 11:36:59.630: ERROR/AndroidRuntime(816): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.localactivitymanager$localactivityrec...@44ef7610 is not valid; is your activity running? 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.view.ViewRoot.setView(ViewRoot.java:505) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.view.Window$LocalWindowManager.addView(Window.java:424) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.app.Dialog.show(Dialog.java:241) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.preference.DialogPreference.showDialog(DialogPreference.java: 307) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.preference.DialogPreference.onClick(DialogPreference.java:265) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.preference.Preference.performClick(Preference.java:810) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java: 190) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.widget.AdapterView.performItemClick(AdapterView.java:284) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at android.widget.ListView.performItemClick(ListView.java:3382) 12-23 11:36:59.630: ERROR/AndroidRuntime(816): at
[android-developers] Fast way to write and read buffered data from AudioRecord
I have a working implementation of the AudioRecrod class. I however I need the samples only in a buffered form so I don't want to save them on the phone hard memory, but keep them in a buffered way. Write now I am saving the files using an ArrayList of type Short like that: for (int idxBuffer = 0; idxBuffer bufferRead; ++idxBuffer) { buffer.add(tempBuffer[idxBuffer]); } However you can tell that ArrayList is not an effective way to do this, and also the values are saved as Short not short. I was thinking about using some of the stream buffers but they mostly only work with byte[] arrays not short[]. yes I can convert the short to byte but that again takes some more time... What would be the fastest way to do it? Every source I googled seems to be using the 'save to file' approach which definitely can't be the fastest way. What would you suggest? -- 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: How to write a android keyboard preference and show in Android Setting Language Keyboard.
My manifest looks essentially the same as yours, only my settings activity contains within it the extra tag: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter Does that help? --Alan On Dec 29 2010, 7:48 pm, Cloudyblood cloudybl...@gmail.com wrote: Hi I wrote the android keyboard , but I didn't have a preference. I tried to write a preference of my android keyboard , but it didn't show in Android Setting Language Keyboard. Here is my manifest: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.popj.popjkeyboard android:versionCode=1 android:versionName=1.2 application android:label=@string/ime_name service android:name=SoftKeyboard android:permission=android.permission.BIND_INPUT_METHOD intent-filter action android:name=android.view.InputMethod / /intent-filter meta-data android:name=android.view.im android:resource=@xml/ method / /service activity android:name=SoftKeyboardSettings android:label=Settings /activity /application uses-sdk android:minSdkVersion=7 / /manifest Please give me any suggestion. Thank you. -- 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: Fast way to write and read buffered data from AudioRecord
+1 for saving to file system On Jan 3, 5:42 pm, Serdel adam.lichwierow...@gmail.com wrote: I have a working implementation of the AudioRecrod class. I however I need the samples only in a buffered form so I don't want to save them on the phone hard memory, but keep them in a buffered way. Write now I am saving the files using an ArrayList of type Short like that: for (int idxBuffer = 0; idxBuffer bufferRead; ++idxBuffer) { buffer.add(tempBuffer[idxBuffer]); } However you can tell that ArrayList is not an effective way to do this, and also the values are saved as Short not short. I was thinking about using some of the stream buffers but they mostly only work with byte[] arrays not short[]. yes I can convert the short to byte but that again takes some more time... What would be the fastest way to do it? Every source I googled seems to be using the 'save to file' approach which definitely can't be the fastest way. What would you suggest? -- 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] Getting a test version of an .apk to a end user
Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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] Getting a test version of an .apk to a end user
I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Follow us on Twitter @fuliginsoftware Join the forums. http://www.fuligin.com/forums -- 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] Getting a test version of an .apk to a end user
You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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] Intercept bluetooth headset button or action (again...)
Hi. I already found this question, but without any working answer in this group: How do i intercept a blutooth headset's button press (or eventually the action it calls) ? I already tried using a receiver for the action android.intent.action.MEDIA_BUTTON but it works only for the regular wired headset, not with the bluetooth headset. Also a receiver with android.intent.action.VOICE_COMMAND does not work. Thank you, Marcus. -- 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] Part time Home based online surveys jobs
Employment News About all Central Government Jobs http://smartcareer.webs.com/governmentcareer.htm http://smartcareer.webs.com/bankingcareer.htm http://smartcareer.webs.com/dataentrywrok.htm -- 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: Getting a test version of an .apk to a end user
Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.comwrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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: EditText in Header of ListView loses focus after first character is entered
Nope this did not solve the problem. I have a work around where the parent view is passing any onkey events to the editText in the header so characters are showing up however the focus still disappears. On Dec 27 2010, 8:25 pm, Sarwar Erfan erfanonl...@gmail.com wrote: See if your your problem related/similar to this?https://groups.google.com/forum/?pli=1#!topic/android-developers/ciMr... Regards Sarwar Erfan -- 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: Getting a test version of an .apk to a end user
Okay, email is fine - but how does an average end-user get the file onto their Android Device? That's what I was asking. On Mon, Jan 3, 2011 at 4:55 PM, metal mikey coref...@gmail.com wrote: Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com wrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Eclipse ADT update ruins XML layout files development
Thanks for responding. If you mean we are supposed to drag elements into place, I got ta say ... It simply does not work. I have an existing project with a very complex layout in one of my views. Any attempt to reorganize the layout by dragging things around ends in disaster. Please help. Important projects are on hold until I can convinitenly do comple layouts again. On Jan 3, 10:29 pm, TreKing treking...@gmail.com wrote: On Mon, Jan 3, 2011 at 4:26 PM, sisko adeod...@gmail.com wrote: Can anyone please help me. My eclipse update has removed the very vital control elements on the outline tab (shown here http://www.mathcs.org/java/android/images/xml_converter_outline.jpg).I am referring to the plus, minus, up and down arrow buttons. I believe this was intentional as the new tool is supposed to rely on drag-n-drop. See here for more info:http://tools.android.com/download - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: Eclipse ADT update ruins XML layout files development
Use the xml tab and edit the xml directly. MUCH easier. Also helps if you use ctrl-F to reformat the XML to be legible. (I also change the XML formatting preferences to put each attribute on a new line.) On Mon, Jan 3, 2011 at 5:38 PM, sisko adeod...@gmail.com wrote: Thanks for responding. If you mean we are supposed to drag elements into place, I got ta say ... It simply does not work. I have an existing project with a very complex layout in one of my views. Any attempt to reorganize the layout by dragging things around ends in disaster. Please help. Important projects are on hold until I can convinitenly do comple layouts again. -- 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: Getting a test version of an .apk to a end user
Your tester will need to uninstall the current from-market instance of your App then go to MENU SETTINGS APPLICATIONS and check 'Unkown sources' to allow the not-from-market install. Then upon opening (aka clicking on) the .apk file attached to the email you sent, Android will install the App. On Jan 4, 12:23 pm, John Lussmyer johnlussm...@gmail.com wrote: Okay, email is fine - but how does an average end-user get the file onto their Android Device? That's what I was asking. On Mon, Jan 3, 2011 at 4:55 PM, metal mikey coref...@gmail.com wrote: Is Email easy enough? Note: because you will have the tester install out-of-band from the Market, the tester will need to uninstall the App first. On Jan 4, 9:58 am, John Lussmyer johnlussm...@gmail.com wrote: You mean you put it out on the Android Marketplace? On Mon, Jan 3, 2011 at 2:56 PM, Wayne Wenthin wa...@fuligin.com wrote: I've taken to putting the latest version on the website and letting them download and install from there. On Mon, Jan 3, 2011 at 2:54 PM, John Lussmyer johnlussm...@gmail.com wrote: Is there any relatively easy way for me to send a test version of my app.apk file to a user? I may have fixed a problem he's seeing (that doesn't happen on my phone of course), and I'd like to have him test it BEFORE I deploy it to the store. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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: Repeating image on a canvas
Since I have done a lot of bitmaps and canvases, I can tell you definitely that it is . . . hard to say. But I will tell you this. Method profiling is great for something like this, and it is fairly easy to do. http://developer.android.com/intl/de/guide/developing/tools/traceview.html Nathan On Jan 3, 10:41 am, brian purgert brianpurge...@gmail.com wrote: In my game doodle bike on the market right now. I have 3 backgrounds on a canvas, one is the far background whick is a solid jpg and the next layer is a png that is transparent and only fills 1/3 of the screen, both of these backgrounds move as the player moves, and the top background is a paper texture that is semi transparent and it does not move at all, so right now the 2 backgrounds are just very long images, would I get increased performance if I replaced these big ones with smaller ones that just kept on repeating. Because I got a comment that said it lagged very badly and it is lagging a little on my phone and I have a 1ghz phone. -- 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: Eclipse ADT update ruins XML layout files development
I am a beginner and I am having trouble getting accurate results hand- coding the XML but I will give it a shot. Thanks. On Jan 4, 1:45 am, John Lussmyer johnlussm...@gmail.com wrote: Use the xml tab and edit the xml directly. MUCH easier. Also helps if you use ctrl-F to reformat the XML to be legible. (I also change the XML formatting preferences to put each attribute on a new line.) On Mon, Jan 3, 2011 at 5:38 PM, sisko adeod...@gmail.com wrote: Thanks for responding. If you mean we are supposed to drag elements into place, I got ta say ... It simply does not work. I have an existing project with a very complex layout in one of my views. Any attempt to reorganize the layout by dragging things around ends in disaster. Please help. Important projects are on hold until I can convinitenly do comple layouts again. -- 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: Eclipse ADT update ruins XML layout files development
Try the preview version of adt 9, it has the up and downs arrows. http://tools.android.com/download 2011/1/3 sisko adeod...@gmail.com I am a beginner and I am having trouble getting accurate results hand- coding the XML but I will give it a shot. Thanks. On Jan 4, 1:45 am, John Lussmyer johnlussm...@gmail.com wrote: Use the xml tab and edit the xml directly. MUCH easier. Also helps if you use ctrl-F to reformat the XML to be legible. (I also change the XML formatting preferences to put each attribute on a new line.) On Mon, Jan 3, 2011 at 5:38 PM, sisko adeod...@gmail.com wrote: Thanks for responding. If you mean we are supposed to drag elements into place, I got ta say ... It simply does not work. I have an existing project with a very complex layout in one of my views. Any attempt to reorganize the layout by dragging things around ends in disaster. Please help. Important projects are on hold until I can convinitenly do comple layouts again. -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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] New market icons/developer console
I am confused about what the new graphics are for in the marketplace. Specifically, I have uploaded the 512 x 512 images, the 180 x 120 promo image etc. However, on my 2.2 phone, the market displays a graphic of the application at the top left. In my case this is a tiny, tiny version of my application icon, which looks terrible. My application icon is 72 px square, which is what the doco says it should be. I could make my application icon bigger, but how much bigger? And I don't want to just try various sizes, the only way I can do this is by re-signing my app as another version and uploading, every time I do this all of my users will be prompted to re-download. Hell of a way to test, by publishing every attempt to the market. Does anybody know the story? Specifically, what should I do to get a decent sized application icon displayed at the top of my download page on the market? I don't suppose the Google explains any of this anywhere Peter Webb -- 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] New market icons/developer console
On Mon, Jan 3, 2011 at 8:28 PM, Peter Webb r.peter.w...@gmail.com wrote: Specifically, what should I do to get a decent sized application icon displayed at the top of my download page on the market? That's the promo graphic, though apparently it takes it sweet time updating for some people, apparently. Try this if it's already been a while: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher * * I don't suppose the Google explains any of this anywhere Of course not. We're still waiting to hear WTF the 512 x 512 icon is for. Communicating with developers is not exactly Google's forte. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
First thing I noticed was no call to setContentView(). But my activity extends from ListActivity and when I add setContentView(), then Logcat gives following error 01-04 08:26:52.279: ERROR/AndroidRuntime(257): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.monarch.newhomeautomation/ com.monarch.newhomeautomation.ShowScheduler}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2496) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2512) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.os.Handler.dispatchMessage(Handler.java:99) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.os.Looper.loop(Looper.java:123) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread.main(ActivityThread.java:4363) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at java.lang.reflect.Method.invokeNative(Native Method) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at java.lang.reflect.Method.invoke(Method.java:521) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:860) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at dalvik.system.NativeStart.main(Native Method) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list' 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ListActivity.onContentChanged(ListActivity.java:236) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java: 201) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.Activity.setContentView(Activity.java:1622) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at com.monarch.newhomeautomation.ShowScheduler.onCreate(ShowScheduler.java: 19) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2459) 01-04 08:26:52.279: ERROR/AndroidRuntime(257): ... 11 more On Jan 3, 8:16 pm, TreKing treking...@gmail.com wrote: On Sun, Jan 2, 2011 at 11:32 PM, pramod.deore deore.pramo...@gmail.comwrote: But I didn't find anything wrong in code . here ia my code which populate the list First thing I noticed was no call to setContentView(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
On Mon, Jan 3, 2011 at 9:02 PM, pramod.deore deore.pramo...@gmail.comwrote: But my activity extends from ListActivity and when I add setContentView(), then Logcat gives following error So follow the instructions - the error tells you exactly what the problem is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: AsyncTask why not must be created in UI thread?
thanks everybody! On 2010年12月31日, 下午2时50分, Bob Kerns r...@acm.org wrote: You need to create the AsyncTask instance on the UI thread, but the doInBackground() method runs in a separate thread. The reason for creating the AsyncTask instance on the UI thread is so that it can connect to the proper Looper and MessageQueue for that thread. (It does this through a single static Handler, so it will not work correctly if you first load the class in a different thread. That's unnecessarily fragile, in my opinion, but not a problem if you are using it as intended, as an easy way to move code off the main thread.) On Dec 30, 9:39 pm, water boiled boiledwater4...@gmail.com wrote: I mean that can i create AsycnTask instance not in UI thread? On 12月31日, 下午1时30分, water boiled boiledwater4...@gmail.com wrote: I mean that can i AsycnTask instance not in UI thread? On 12月31日, 下午1时24分, water boiled boiledwater4...@gmail.com wrote: the AsycnTask document says that:The task instance must be created on the UI thread. why create task instance must be created in UI thread? On 12月29日, 上午10时26分, Frank Weiss fewe...@gmail.com wrote: It's difficult to understand what you are asking. What problem are you having with AsyncTask. -- 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: Programmatically cause a focus event on a text input
On Tuesday, January 4, 2011 4:13:34 AM UTC+6, Justin Glaeser wrote: I know you can requestFocus() for an EditText As you know it already, why are you not using it? and I would like help on how to programmatically cause the EditText to receive a focus event. You seem to already know what to do. Then what help do you need? Regards Sarwar Erfan -- 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: How to add labels above this table layout
Now I had created new xml file named as showchedulerlistview. and in that I write following ?xml version=1.0 encoding=utf-8? ListView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent android:cacheColorHint=# android:id=@android:id/list /ListView and my Activity is as public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.showchedulerlistview); System.out.println (After setting setcontentview()); try { sampleDB = this.openOrCreateDatabase(SAMPLE_DBNAME, MODE_PRIVATE, null); System.out.println (Inside try...); c = sampleDB.rawQuery (SELECT _id,RoomName, SwitchName,StartDate,TotalTime,StopDate,TotalStopTime FROM SchedulerTable ORDER BY StartDate,null); System.out.println (c.getCount()+); startManagingCursor(c); String[] columns = new String[] {RoomName, SwitchName,StartDate,TotalTime,StopDate,TotalStopTime}; int[] names = new int[] {R.id.roomName, R.id.switchName,R.id.startDate,R.id.totalTime,R.id.stopDate,R.id.totalStopTime}; myAdapter = new SimpleCursorAdapter(this, R.layout.showscheduler, c, columns,names); setListAdapter(myAdapter); } catch (SQLiteException se) { se.printStackTrace(); } } But still it add labels at each row. How is it? On Jan 4, 8:07 am, TreKing treking...@gmail.com wrote: On Mon, Jan 3, 2011 at 9:02 PM, pramod.deore deore.pramo...@gmail.comwrote: But my activity extends from ListActivity and when I add setContentView(), then Logcat gives following error So follow the instructions - the error tells you exactly what the problem is. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
On Mon, Jan 3, 2011 at 9:49 PM, pramod.deore deore.pramo...@gmail.comwrote: But still it add labels at each row. How is it? What is R.layout.showscheduler? What does that look like? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Problem while loading phone contacts in ascending order
am trying to load phone contacts and tried to show the contact names in ascending order. My code is given below: Cursor cursor = getContentResolver().query( ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.Contacts.HAS_PHONE_NUMBER + = 1, null, ContactsContract.Contacts.DISPLAY_NAME + ASC); I got the required output. But a problem is there, names staring with small letter is shown as last one. First the capital letters are sorted, only after that contact names staring with small letters is shown. PLS HELP OUTPUT IS: Alfin Bipin Calvin Jobin Shine anurag shines -- 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: about Android apps automatically update
Hi, all, Thank you for your reply. Best Regards, Kenneth WON On 1月3日, 下午3時22分, Dianne Hackborn hack...@android.com wrote: And it actually has nothing to do with the platform version, but just the version of Market on the device. As of 1.6 the Market app can self-update itself, so users should generally be running the most recent version of Market (which supports automatic updates) regardless of the version of their platform. On Sun, Jan 2, 2011 at 8:48 PM, TreKing treking...@gmail.com wrote: On Sun, Jan 2, 2011 at 9:58 PM, Kenneth WON kenneth...@gmail.com wrote: Or do nothing and launch the app in market, and if the mobile device is Android 2.2 or above, then I can choose automatically update, is that right? That is right. This is not something you control. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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: How to add labels above this table layout
R.layout.showscheduler contains ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow android:textColor=#00FF00 TextView android:text=Room Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Switch Name android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Start Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Date android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:text=Stop Time android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout ScrollView android:layout_width=fill_parent android:layout_height=wrap_content TableLayout android:layout_width=fill_parent android:layout_height=fill_parent TableRow TextView android:id=@+id/roomName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/switchName android:layout_width=85px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/startDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/stopDate android:layout_width=95px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / TextView android:id=@+id/totalStopTime android:layout_width=50px android:textSize=15sp android:textColor=#00FF00 android:typeface=monospace android:gravity=center / /TableRow /TableLayout /ScrollView /LinearLayout On Jan 4, 9:03 am, TreKing treking...@gmail.com wrote: On Mon, Jan 3, 2011 at 9:49 PM, pramod.deore deore.pramo...@gmail.comwrote: But still it add labels at each row. How is it? What is R.layout.showscheduler? What does that look like? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
On Mon, Jan 3, 2011 at 10:17 PM, pramod.deore deore.pramo...@gmail.comwrote: R.layout.showscheduler contains So the layout you're using for each item in the list view contains two tables. One with hard coded values and one with ID'ed views. You're getting exactly what you're asking for. If you don't want the extra set of labels, remove them from the layout. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Animating GridView is possible?
Hello all, I have a grid view ( http://developer.android.com/resources/tutorials/views/hello-gridview.html). Can i animate these images, like moving up,down,left right. Think those images are balls and i want to animate those balls. Thank you all. -- --Jitesh .V. Dedhiya--- Don't Learn To Hack but Hack To Learn -- 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] Need Android Service suggestions
Hi all My requirement: Need some piece of code executing every 5 minutes (no UI). This code needs to access server thru internet and get some data and use them on the device. This code is not heavy weight. Just light weight fetch of 5K to 10K. And the data is not always fetched. Data fetch from server happens only once a day or so. I thought about a service and have written one with a timer and a thread (does the server data fetch). But I read some articles and docs that a service might be *killed* by the OS in low memory or idle situations. Question: Whats the suggested method to achieve this goal in android? I would like the code to run even in low memory situations or at least be run after the memory situation gets better in the OS (OS can kill my code/ app and restart the code when its better; but don't wanna wait for hours). Thank you for the help! Jacob. -- 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: Problem while loading phone contacts in ascending order
I'd say this is a bug in the Conent Provider, and there is not much you can do about it. On Jan 4, 12:12 pm, jeena jeenaraju...@gmail.com wrote: am trying to load phone contacts and tried to show the contact names in ascending order. My code is given below: Cursor cursor = getContentResolver().query( ContactsContract.Contacts.CONTENT_URI, null, ContactsContract.Contacts.HAS_PHONE_NUMBER + = 1, null, ContactsContract.Contacts.DISPLAY_NAME + ASC); I got the required output. But a problem is there, names staring with small letter is shown as last one. First the capital letters are sorted, only after that contact names staring with small letters is shown. PLS HELP OUTPUT IS: Alfin Bipin Calvin Jobin Shine anurag shines -- 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: New market icons/developer console
Correct, if there is no promo graphics, the Market uses the icon (in all its original unstretched glory) on the detail page. On Jan 4, 10:50 am, TreKing treking...@gmail.com wrote: On Mon, Jan 3, 2011 at 8:28 PM, Peter Webb r.peter.w...@gmail.com wrote: Specifically, what should I do to get a decent sized application icon displayed at the top of my download page on the market? That's the promo graphic, though apparently it takes it sweet time updating for some people, apparently. Try this if it's already been a while:http://www.google.com/support/androidmarket/bin/request.py?contact_ty... * * I don't suppose the Google explains any of this anywhere Of course not. We're still waiting to hear WTF the 512 x 512 icon is for. Communicating with developers is not exactly Google's forte. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
There are 2 table layouts in the R.layout.showscheduler. First contains labels and second one is for list items. But Suppose if I remove the first table layout which contains label then they are not visible.means output becomes HallTube2011-1-1 11.00 BedroomFan2011-1-1 11.30 Kitchen AC2011-1-1 12.00 And I want it as RoomName SwitchName StartDate StartTime HallTube2011-1-1 11.00 BedroomFan2011-1-1 11.30 Kitchen AC2011-1-1 12.00 On Jan 4, 9:24 am, TreKing treking...@gmail.com wrote: On Mon, Jan 3, 2011 at 10:17 PM, pramod.deore deore.pramo...@gmail.comwrote: R.layout.showscheduler contains So the layout you're using for each item in the list view contains two tables. One with hard coded values and one with ID'ed views. You're getting exactly what you're asking for. If you don't want the extra set of labels, remove them from the layout. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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: How to add labels above this table layout
On Mon, Jan 3, 2011 at 10:35 PM, pramod.deore deore.pramo...@gmail.comwrote: And I want it as RoomName SwitchName StartDate StartTime HallTube2011-1-1 11.00 BedroomFan2011-1-1 11.30 Kitchen AC2011-1-1 12.00 Then put that table in a separate layout, ABOVE the listview. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] Need Android Service suggestions
On Mon, Jan 3, 2011 at 10:33 PM, Jacob jacobroutolo...@gmail.com wrote: Whats the suggested method to achieve this goal in android? In a word: AlarmManager. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- 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] HTTP Scripting in Android
Hi all, I spent a while trying to figure out how to get Ajax and XMLHttpRequest objects to work correctly on Android's browsers (both the native and 3rd party such as Opera). I am still not able to get past the same-origin issue and all of the requests I send out are preflighted (with OPTIONS headers). I was not able to get any responses of feedback on any on this on this (or other related) mailing list. So before I abandon this approach I wanted to ask the question - if scripting (such as Ajax) is not used for web service clients on Android, what is being used?? What are other developer's experiences with such clients? I will appreciate any feedback on this topic. Thanks and regards -- 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