[android-developers] Our App has been removed from Google Play.
The email is : After review, xx-App , has been removed from Google Play because it violates our *personal and sensitive information* policy. This app won’t be available to users until you submit a compliant update. We will show the dialog on the first Activity, if user click "ok",then continue,the dialog content is : In using xx-App the User agrees and accepts that xx-App can process and collect your information retrieved from the phone in this Application for a secure purpose and xx-App undertakes not to disclose any information of User to any third party. is OK? and the app is reloaded on Google Play, other people can search it ? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/754b7928-cc96-4e55-9491-61adc2ed659e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] want to be a game programmer.
I want to do game programming through OpenGL ES in Android, Actually I am a Android Developer. Want to shift in Gaming. I asked about NDK becaust I think its good for fast rendering in c/c++ compare to java. Am I right? But not getting good stuff. Any Suggestion or any good links.. On Tuesday, August 20, 2013 7:35:43 PM UTC+5:30, carol wrote: I started out using AndEngine. It's free, there are some samples and tutorials out there. I do recommend reading the book AndEngine for Android Game Development. On Tue, Aug 20, 2013 at 9:26 AM, Rafael Maas rafae...@gmail.comjavascript: wrote: Hi johnny! You can try Corona (http://www.coronalabs.com/) to 2d game development or Unity (http://unity3d.com/) , project (anarchy http://www.projectanarchy.com/) to 3d game development. :D 2013/8/20 Michael Banzon mic...@banzon.dk javascript: Game programming is all fun and dandy... But the question that pops into my mind is: What great game idea do you have? ;-) Secondly: If the quest is to make a fantastic game you could start with the Unity engine (or something like it) and don't concentrate that much about the platform before you get to know game development. On Tue, Aug 20, 2013 at 9:10 AM, Johnny ask2...@gmail.com javascript: wrote: Thanks for reply, I agreed with this sentences.There are no *good*programmers who dont know how to use Google!! . But I am not getting the good resource what I want. thatswhy I am posting my question here. If you can help me out, I am very garteful to all. On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote: You should follow this group more closely... evidence show the contrary ;-) I'm more inclined to: There are no *good* programmers who dont know how to use Google!! :-D as for the OP: No, not necessary. On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris wrote: There are no programmers who dont know how to use Google!! On Sat, Aug 17, 2013 at 11:14 AM, Johnny ask2...@gmail.com wrote: Is it necessary to learn NDK for game programming. if yes , How do I start? where can i get the resources and sample programmer? . Please suggest me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+**unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- *Παύλος-Πέτρος Τουρνάρης* *Android Software Developer* - *http://goo.gl/TsJ8u* - *http://acschedule.org* -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- Michael Banzon http://michaelbanzon.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-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.comjavascript: . For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group
Re: [android-developers] want to be a game programmer.
Thanks for reply, I agreed with this sentences.There are no *good*programmers who dont know how to use Google!! . But I am not getting the good resource what I want. thatswhy I am posting my question here. If you can help me out, I am very garteful to all. On Sunday, August 18, 2013 1:00:59 PM UTC+5:30, Piren wrote: You should follow this group more closely... evidence show the contrary ;-) I'm more inclined to: There are no *good* programmers who dont know how to use Google!! :-D as for the OP: No, not necessary. On Saturday, August 17, 2013 12:21:20 PM UTC+3, Paul-Peter Tournaris wrote: There are no programmers who dont know how to use Google!! On Sat, Aug 17, 2013 at 11:14 AM, Johnny ask2...@gmail.com wrote: Is it necessary to learn NDK for game programming. if yes , How do I start? where can i get the resources and sample programmer? . Please suggest me. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- *Παύλος-Πέτρος Τουρνάρης* *Android Software Developer* - *http://goo.gl/TsJ8u* - *http://acschedule.org* -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] want to be a game programmer.
Is it necessary to learn NDK for game programming. if yes , How do I start? where can i get the resources and sample programmer? . Please suggest me. Thanks in advance. -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Regarding sync contacts with Facebook
have you got the answer? Actually I am also wanted to do similar task. On Wednesday, February 1, 2012 12:24:56 PM UTC+5:30, Raghupal Reddy wrote: Hi all, In my project I want to sync phone book contacts with Facebook. Is It possible using SyncAdapter , I am developing using GingerBread, if anyone knows thistell me the procedure to develop. Thanks in advance -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android Contacts backup and sync application
Have you got the solution? Actually I am also trying to do this task. On Thursday, March 31, 2011 5:55:01 PM UTC+5:30, UD wrote: Hi, I am working on a contacts backup and sync. The target is to send all details of all contacts to a server (custom protocol defined) as a backup. During initial launch of application, all the contacts will be queued and sent to the server. And after that, a background service will be running all time which will listen to new contact addition/ contact update, and this new/updated contact will be sent to server by the background service. I am using RawContactsEntityhttp://developer.android.com/reference/android/provider/ContactsContract.RawContactsEntity.html for fetching the records. I tried using ContentObserver on RawContacts/Data tables to get notification of contact addition or contact-change. But, AFAIK, the ContentObserver gives notification (onChange()) of changed data in table as a whole and not ID of individual record. Now my problem is, how to get the exact id's of changed/new records? I thought of creating a backup-table to compare with native contacts table and get the changed records. But as the number of contacts increase, the performance will decease drastically and this will hamper the battery life too. Can you suggest me, The best way for achieving this contacts backup operation from performance and memory usage point of view? Is there any other way for contacts sync operation? It would be very helpful if anyone can share examples which can help me in this. -- Regards, *Udayan Warnekar* -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Sync contacts
have you got the answer? Actually I am also trying to do this task. On Tuesday, May 8, 2012 1:51:50 PM UTC+5:30, Tarilo wrote: Hi We need to implement a contact sync. When a contact is adden on the phone or updated, we need to make action. This is implemented by whatsapp. I read about intents. 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Android 4.0 Start service on reboot
Hello, Does anyone have a code example of starting a service with a broadcast receiver using Android 4.0. Right now the same code that works on Android Honeycomb does not work on 4.0. This code is a simple xml based broadcast receiver. Thanks in advance! -- 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 4.0 Start service on reboot
Found the sound of the post; The user just needs to start the app once. From the point forward; on reboot code works as expected; is that correct? On Mar 20, 6:15 am, Mark Murphy mmur...@commonsware.com wrote: Your code probably does work on 4.0. However, the user will have to launch one of your activities before you will start to receive any broadcasts, including BOOT_COMPLETED: http://commonsware.com/blog/2011/07/13/boot-completed-regression-conf... On Tue, Mar 20, 2012 at 1:00 AM, Johnny jali...@gmail.com wrote: Hello, Does anyone have a code example of starting a service with a broadcast receiver using Android 4.0. Right now the same code that works on Android Honeycomb does not work on 4.0. This code is a simple xml based broadcast receiver. Thanks in advance! -- 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 -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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] Stagefright: unable to set frame rate
hi, I have an application streaming video from the device to a remote computer. When trying to set the frame rate I keep getting: ERROR/StagefrightRecorder(131): Failed to set frame rate to 15 fps. The actual frame rate is 30 The code I use is: video = new MediaStreamer(); video.setVideoSource(MediaRecorder.VideoSource.CAMERA); video.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); video.setVideoFrameRate(frameRate); Any ideas on how to fix 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] Help developing an app
a href=http://therentalsearch.com; For Rent_The Rental Search/a This is the site i am launching, and i am hoping to find some help getting an app developed for users to browse on their mobile device. I am adding a QR code for all of the listings as well and hope to incoprorate that into 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] Problem with getting GPS data when using Camera
Hi, I have a similar problem as this link mention (Problem with getting GPS data when using CameraPreview:): http://stackoverflow.com/questions/3950026/problem-with-getting-gps-data-when-using-camerapreview The problem is: the GPS will stop receiving data if you turn on the camera ! I wrote a simple code to test the conflict as follows: package com.example.helloandroid; import android.app.Activity; import android.content.Context; import android.hardware.Camera; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class HelloAndroid extends Activity { LocationManager mlocManager; LocationListener mlocListener; Camera camera; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); /* Use the LocationManager class to obtain GPS locations */ mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, mlocListener); camera = Camera.open();// This is just for test, if you comment this line, the GPS will work } @Override protected void onDestroy() { mlocManager.removeUpdates(mlocListener); super.onDestroy(); } /* Class My Location Listener */ public class MyLocationListener implements LocationListener { public void onLocationChanged(Location loc) { String Text = My current location is:\n + Latitud = + loc.getLatitude() + \nLongitud = + loc.getLongitude() + \nAccuracy = + loc.getAccuracy(); Toast.makeText(getApplicationContext(),Text,Toast.LENGTH_SHORT).show(); Log.d(GPS, getSpeed = + loc.getSpeed()+ Latitud = + loc.getLatitude()+ Longitud = + loc.getLongitude()); } public void onProviderDisabled(String provider) { Toast.makeText(getApplicationContext(),Gps Disabled,Toast.LENGTH_SHORT ).show(); } public void onProviderEnabled(String provider) { Toast.makeText(getApplicationContext(),Gps Enabled,Toast.LENGTH_SHORT).show(); } public void onStatusChanged(String provider, int status, Bundle extras){} } } Anyone have solution? I appreciate 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] Problem with getting GPS data when using Camera
Similar to this problem: http://stackoverflow.com/questions/3950026/problem-with-getting-gps-data-when-using-camerapreview Any suggestion about the conflicts between using GPS and Camera? The following is a code to test the conflict. package com.example.helloandroid; import android.app.Activity; import android.content.Context; import android.hardware.Camera; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class HelloAndroid extends Activity { LocationManager mlocManager; LocationListener mlocListener; Camera camera; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); /* Use the LocationManager class to obtain GPS locations */ mlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); mlocListener = new MyLocationListener(); mlocManager.requestLocationUpdates( LocationManager.GPS_PROVIDER, 0, 0, mlocListener); camera = Camera.open();// If you comment this line, the GPS will work } @Override protected void onDestroy() { mlocManager.removeUpdates(mlocListener); super.onDestroy(); } /* Class My Location Listener */ public class MyLocationListener implements LocationListener { public void onLocationChanged(Location loc) { String Text = My current location is:\n + Latitud = + loc.getLatitude() + \nLongitud = + loc.getLongitude()+ \nAccuracy = + loc.getAccuracy(); Toast.makeText(getApplicationContext(),Text,Toast.LENGTH_SHORT).show(); Log.d(GPS, getSpeed = + loc.getSpeed()+ Latitud = + loc.getLatitude()+ Longitud = + loc.getLongitude()); } public void onProviderDisabled(String provider) { Toast.makeText(getApplicationContext(),Gps Disabled,Toast.LENGTH_SHORT ).show(); } public void onProviderEnabled(String provider) { Toast.makeText(getApplicationContext(),Gps Enabled,Toast.LENGTH_SHORT).show(); } public void onStatusChanged(String provider, int status, Bundle extras){} } } -- 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] Implementing WiFi proxy support in the master branch
Hi everyone, I am a CS student and pursuing my Bachelors degree, currently in the 3rd year. I will have some university free time in the following weeks thanks to the winter break. I would like to implement WiFi proxy support on Android. If I do so, are there any plans to merge it into Eclari, Froyo and Gingerbread? A previous bugfix of mine was merged into the Master branch long ago, but I haven't seen the fix in the latest Froyo update. Should I request a merge into the Froyo branch or should I switch to the Froyo branch and commit the same changes? Kind regards, Janos Johnny Levai -- 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: Implementing WiFi proxy support in the master branch
I should have posted this message on android-contrib. Nevermind :) On Dec 14, 1:58 pm, Johnny digist...@gmail.com wrote: Hi everyone, I am a CS student and pursuing my Bachelors degree, currently in the 3rd year. I will have some university free time in the following weeks thanks to the winter break. I would like to implement WiFi proxy support on Android. If I do so, are there any plans to merge it into Eclari, Froyo and Gingerbread? A previous bugfix of mine was merged into the Master branch long ago, but I haven't seen the fix in the latest Froyo update. Should I request a merge into the Froyo branch or should I switch to the Froyo branch and commit the same changes? Kind regards, Janos Johnny Levai -- 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] Issue with Catch Handler
Hello, I have recently hit a snag using the Android plugin to Eclipse. For some reason, ALL of my errors being thrown don't initialize and show me the error. Has anyone ever seen this issue before and if so, what did you do to correct it? In particular, I am seeing it when I try to invoke the HTTPGet in a HTTPClient object. If I have no connectivity, then I should get an error. The Catch block does fire when this occurs...however, when I check my general Exception object, the object is NULL (NULL Pointer). Why would this happen if the catch is grabbing the exception? My exceptions used to be workingand I was able to see the stack trace. However, I can no longer see any stack trace regardless of the Exception class I am using. Can someone please help me understand what the heck is wrong with Eclipse, Android, or both? Is there something I am missing on the configuration side?...is this a bug? Mind you, I have already used Stack Overflow for this question. It has been viewed 40 times but no answer yet. I hope anybody on here can help me understand why this is occurring. Thanks in advance, John -- 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: TextView visibility problem
I'm not at home right now so I can't test it, maybe tomorrow: swap the root linear layout for a relative layout. Move up the TextView, set its alignBottom to the root RelativeLayout and set its height to wrap_content. Then configure your inner RelativeLayout's alignBottom to the TextView. Its height should be set to fill_parent. I could post the code and some links tomorrow. On Oct 20, 4:07 pm, sisko adeod...@gmail.com wrote: I had began with the layout_width set to wrap_content but it did not have the desired effect. I'll admit I don't fully understand the layout concepts so I'm experienting alot. Any good material that can bring me up to speed is welcome, please! On 19 Oct, 15:50, letlite letl...@gmail.com wrote: The default orientation for LinearLayout is horizontal. It looks odd that the last TextView view has android:layout_width=fill_parent. On Oct 18, 2:43 pm,siskoadeod...@gmail.com wrote: Hi guys, the code I pasted below works great with the exception of the last view - the textView. The TextView does not display: LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:id=@+id/LinearLayout01 android:background=@drawable/bkgrnd android:layout_height=fill_parent android:layout_width=fill_parent RelativeLayout android:id=@+id/RelativeLayout01 android:layout_width=wrap_content android:layout_height=wrap_content ImageView android:id=@+id/ImageView01 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentLeft=true android:layout_alignParentTop=true /ImageView TextView android:id=@+id/TextView01 android:layout_width=wrap_content android:layout_height=wrap_content android:text=@string/help android:layout_alignParentTop=true android:layout_centerHorizontal=true android:textSize=@dimen/menuxmlTitleSize android:textColor=@color/menuxmlTitleColor /TextView ImageView android:id=@+id/ImageView02 android:layout_width=wrap_content android:layout_height=wrap_content android:background=@drawable/quizicon android:layout_alignParentRight=true android:layout_alignParentTop=true /ImageView /RelativeLayout TextView android:text=@+id/TextView02 android:id=@+id/TextView_HelpText android:layout_width=fill_parent android:layout_height=wrap_content /TextView /LinearLayout I had a similar problem which came down to an XML layout issue and I'm sure it's a similar issue here only I don't know how to resolve it. Can someone please help and tell me how I can get the TextView to display and perhaps more importantly, direct me to some good android xml layout material? 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] BroadcastReceiver::onReceive Question
Hi All, I am trying to develop a feature for my Android phone. Basically, I'd like to export some files whenever a sdcard is inserted into the phone. So, I had a broadcast receiver registered to the system. I override the onReceive (Context, Intent) function such that I can create a file in the SDCard. What I can not figure out is how to create a file with the 'Context' variable passed in from the 'onReceive'. I know I can create a private file with this 'Context' variable but I just don't know how to use this 'Context' to create an external file. I have added the permission for my service in the manifest file already, that is the reason why I have to use my service's Context to create the file. Any one knows how to create an external file stream using the 'Context'? Thanks and have a good one. -Johnny -- 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] The status of Donut and HTC hero
Hi, Any one knows the status of Donut. There is already leaked HTC Hero phone. I wonder which version that Hero phone will be based. Regards, Johnny Xia. --~--~-~--~~~---~--~~ 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 can i install App in the sdcard?
have you tried this? http://androidforums.com/android-tips-tricks/5316-running-apps-sd-card-now-easier.html On Aug 18, 12:27 pm, zeeshan genx...@gmail.com wrote: Hi Experts, i am trying to installl android app but it gives me insufficient memory exception. i already have 35 Apps and there is 5mb internal storage left. is that mean i can install applications only upto 125MB. my sdcard is almost empty , is there any way to install my App in the sdcard? --~--~-~--~~~---~--~~ 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] View Files on a remove server/PC
Hi, I'm looking for a solution to view and select files residing on a remote server or PC. Is there a known way to do this or better yet, an existing application which does this with an intent which I can utilize? 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: View Files on a remove server/PC
Thanks for your reply. I should have been more clear. Yes, i'm trying to view files from my android device. Hmm, i hadn't thought about SugarSync. I was thinking more along the lines of some sort of file system explorer for a remote location - an FTP server. Connect to the server and view the directory structure and it's files. Thanks, - Johnny On Jul 30, 9:36 am, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: Are you trying to viewremotefiles on a PC from another PC? In that case WinSCP is a good way. If you are using a non-Windows machine, then scp is the command-line version that ships with most unix distributions, include OSX. If by change you are trying to viewremotefiles with your Android phone, then SugarSync is one application you can use.Or are you trying to do this programmatically? Yusuf Saib Android ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 28, 12:14 pm, Gopal Biyani gopalbiy...@gmail.com wrote: Just google for WinSCP. On Tue, Jul 28, 2009 at 3:11 PM, johnny johnny.ra...@gmail.com wrote: Is anyone aware of a way to view the directory structure and files on aremoteserveror PC? Is there an existing app for this? Thanks in advance! --~--~-~--~~~---~--~~ 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] View Files on a remove server/PC
Is anyone aware of a way to view the directory structure and files on a remote server or PC? Is there an existing app for this? Thanks in advance! --~--~-~--~~~---~--~~ 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: File Browser Integration
Thank you very much!! --~--~-~--~~~---~--~~ 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] Is there a way to backup and restore a Cursor?
Hello all, I'm always get stuck when I want to do some testing with my Classes which are working against the default providers. For example, one method of my class meant to get all audio from MediaStore.Audio.Media.EXTERNAL_CONTENT_URI. That's ok for implementation, but when I want to test it, problem comes. I want to insert a data into MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, and get all audio from it to see whether the data I inserted has been got by my method. In order not to break the existed data on emulator/device, I want to back up the data first. But when I look at the Cursor returned by query that URI, I found there are 27 columns! Even I can list these columns and get the correct data to backup, there is still a problem of maintenance of this test. At first I tried to use getBlob to get data from each column, but the SQL checks failed. Is there a way to easy back the data from a cursor? Thanks for your consideration, Johnny --~--~-~--~~~---~--~~ 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 use adb tool on SAMSUNG GALAXY?
I'm running into the same problem but i have Vodafone's Htc Magic...do i require a different version of the adb tool as well? --~--~-~--~~~---~--~~ 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] File Browser Integration
Hi, I want to integrate a file browser with my application. Does anyone know where I could get the source code for a pretty good file browser? (With the developer's permission of course). The more, the better... 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] Can't intercept the OnTouch event of PopupWindow
Hi all, I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip: public class Demo extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Prepare the popup window final TextView popupText = new TextView(this); popupText.setText(Poping up...); popupText.setBackgroundColor(Color.BLUE); popupText.setFocusableInTouchMode(true); final PopupWindow popupWindow = new PopupWindow(this); popupWindow.setContentView(popupText); popupWindow.setWidth(100); popupWindow.setHeight(100); popupWindow.setBackgroundDrawable(null); popupWindow.setOutsideTouchable(true); popupWindow.setTouchInterceptor(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { Log.d(Demo, popupWindow::onTouch view: + v + , event: + event); return false; } }); // Prepare the activity view final LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); layout.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { Log.d(Demo, layout::onTouch view: + v + , event: + event); return false; } }); final TextView backgroundView = new TextView(this); backgroundView.setWidth(240); backgroundView.setHeight(300); backgroundView.setBackgroundColor(Color.RED); layout.addView(backgroundView); final Button button = new Button(this); button.setWidth(240); button.setHeight(20); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { popupWindow.showAsDropDown(backgroundView); } }); layout.addView(button); setContentView(layout); } When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d(Demo, layout::onTouch view: + v + , event: + event); will work. It looks like when I touch the view of the popup window, the touch event has been consumed somewhere? Do you have any ideas on this? Thanks for your consideration. Regards, Johnny -- we all have our crosses to bear --~--~-~--~~~---~--~~ 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: Can't intercept the OnTouch event of PopupWindow
Found the problem. After looking at the source code of PopupWindow, I found the TouchInteceptor will only be called if the background drawable is not null. Here is the snip: private void preparePopup(WindowManager.LayoutParams p) { if (mBackground != null) { //... PopupViewContainer popupViewContainer = new PopupViewContainer(mContext); // ... mPopupView = popupViewContainer; } else { mPopupView = mContentView; } // ... } And the mTouchInterceptor.onTouch will only be called inside the PopupViewContainer. So in my code, after I set the background drawable to whatever, (I used new BitmapDrawable()), the touch event will be intercepted here. However, I still don't understand why this method only works when there is a background drawable, here is what's said in doc: public void setTouchInterceptor (View.OnTouchListener l) Set a callback for all touch events being dispatched to the popup window. Regards, Johnny On Tue, May 26, 2009 at 3:21 PM, Johnny Lee johnnylee...@gmail.com wrote: Hi all, I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip: public class Demo extends Activity { �...@override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Prepare the popup window final TextView popupText = new TextView(this); popupText.setText(Poping up...); popupText.setBackgroundColor(Color.BLUE); popupText.setFocusableInTouchMode(true); final PopupWindow popupWindow = new PopupWindow(this); popupWindow.setContentView(popupText); popupWindow.setWidth(100); popupWindow.setHeight(100); popupWindow.setBackgroundDrawable(null); popupWindow.setOutsideTouchable(true); popupWindow.setTouchInterceptor(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { Log.d(Demo, popupWindow::onTouch view: + v + , event: + event); return false; } }); // Prepare the activity view final LinearLayout layout = new LinearLayout(this); layout.setOrientation(LinearLayout.VERTICAL); layout.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { Log.d(Demo, layout::onTouch view: + v + , event: + event); return false; } }); final TextView backgroundView = new TextView(this); backgroundView.setWidth(240); backgroundView.setHeight(300); backgroundView.setBackgroundColor(Color.RED); layout.addView(backgroundView); final Button button = new Button(this); button.setWidth(240); button.setHeight(20); button.setOnClickListener(new OnClickListener() { public void onClick(View v) { popupWindow.showAsDropDown(backgroundView); } }); layout.addView(button); setContentView(layout); } When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d(Demo, layout::onTouch view: + v + , event: + event); will work. It looks like when I touch the view of the popup window, the touch event has been consumed somewhere? Do you have any ideas on this? Thanks for your consideration. Regards, Johnny -- we all have our crosses to bear -- we all have our crosses to bear --~--~-~--~~~---~--~~ 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: TouchUtils.tapView doesn't work.
Is there anyone has an idea about this please? On May 26, 6:06 pm, Johnny Lee johnnylee...@gmail.com wrote: Hi, When I'm using theTouchUtils.tapView in my instrumentation tests, it doesn't work. Here is the code snip: final TextView popupText = new TextView(mActivity); popupText.setText(Popup Text); popupText.setBackgroundColor(0xffff); popupText.setFocusableInTouchMode(true); popupText.setOnTouchListener(new OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { Log.d(PopupWindowTest, popupText::onTouch event: + event); return false; } }); mPopupWindow = new PopupWindow(mActivity); mPopupWindow.setContentView(popupText); mPopupWindow.setWidth(50); mPopupWindow.setHeight(50); mPopupWindow.setOutsideTouchable(true); // FIXME: // This is weird, but the touch interceptor only works when // the background drawable is not null. mPopupWindow.setBackgroundDrawable(new BitmapDrawable()); MockOnTouchListener onTouchListener = new MockOnTouchListener(); mPopupWindow.setTouchInterceptor(onTouchListener); runTestOnUiThread(new Runnable() { public void run() { if (mPopupWindow == null || mPopupWindow.isShowing()) { return; } mPopupWindow.showAsDropDown(mActivity.getUpperView()); assertTrue(mPopupWindow.isShowing()); } }); TouchUtils.tapView(this, popupText); mInstrumentation.waitForIdleSync(); Thread.sleep(3000); assertEquals(1, onTouchListener.getOnTouchCalledCount()); I've already declared the android.permission.INJECT_EVENTS in my manifest, and this permission has been granted sucessfully. But it seems the tapView didn't work at all. I've also tried to touch the poped out window manually, and it works. Do you have any idea about this? Thanks for your help and consideration. Regards, Johnny -- we all have our crosses to bear --~--~-~--~~~---~--~~ 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: Camera application 1.5 on emulator does nothing
you must make sure that you have already implemented libcamera in your source code. 2009/5/22 arnouf arnaud.far...@gmail.com Hi all, Strange behaviour with emulator running with Cupcake. When emulator is launched (via ADT), a SD card is mounted correctly, and I click on Camera, I have a black screen and nothing happens, I got the famous error with Wait or Force closewait, wait, waitnothing happens. I create with AVD the target 3. I'm on Windows XP SP2. Best Regards, Johnny Song From China. --~--~-~--~~~---~--~~ 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 get the resource ID from android.content.res.Resources.Theme
Hi, I'm wondering whether there is a way to get the resource ID of an Theme object? I tried the following: mContextWrapper.setTheme(com.android.internal.R.style.Theme); Theme theme = mContextWrapper.getTheme(); Log.d(ContextWrapperTest, Resource ID: + com.android.internal.R.style.Theme); Log.d(ContextWrapperTest, Theme hash code: + theme.hashCode()); But got: 05-19 08:48:29.314 D/ContextWrapperTest( 559): Resource ID: 16973829 05-19 08:48:29.314 D/ContextWrapperTest( 559): Theme hash code: 1129730008 The things I want to do here is trying to back up the original Theme before playing with several other themes. But after I get the original theme, I found there is no way to set back this theme. Do you have any ideas on this? Regards, Johnny -- we all have our crosses to bear --~--~-~--~~~---~--~~ 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 SQLite (query)
You should use select * from notes2 where title=\ + str + \ On 5月14日, 上午10时12分, Daehoon Jeon jeondaeh...@gmail.com wrote: How to use rawQuery with Variable? Cursor mCursor = mDb.rawQuery(select * from notes2 where title=\title1\, null); it's worked but I want to use variable instead of String... like this String str = title1; Cursor mCursor = mDb.rawQuery(select * from notes2 where title= str, null); it's stopped unexpected. Could anyone tell me how to use? --~--~-~--~~~---~--~~ 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: problems with my htc magic
Have you tried this: http://developer.android.com/guide/developing/device.html#setting-up ? On May 14, 7:25 am, petunio juanjosegilmen...@hotmail.com wrote: Hi everybody I am trying to install apk's in my new htc magic I had before a G1 and I didn't found any problem, just doing adb install myapp.apk and that's it now, when I do the same with my htc, it says error: device not found Also, I noticed that if I type adb devices, I dont get any device shown... I have also done the following settings in the mobile, with no luck: settings-applications-unknown sources (checked) settings-applications-development-usb debugging (checked) settings-applications-development-allow mock locations (checked) I know that is not a problem with the usb cable, as I have tried a few of them, including the one that was working with the G1... It could be a problem with the usb drivers, but everything seems fine in my device manager... has anybody come across this problem? 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 know whether an app is installed or not
Settings - Applications - Manage Applications On May 14, 10:53 am, android app xiaog...@gmail.com wrote: how to know whether an app is installed or not? Can an app access the list of application in My Downloads? --~--~-~--~~~---~--~~ 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: where to download android 1.5 r1 source code ?
I'm afraid you'll have to get familiar with git and repo. If you want to work with the source code. There is nowhere to find a single zip file of the source code, that's a too old way for code distributions. On May 14, 10:51 am, rain rain.h...@gmail.com wrote: I know I can find the source code fromhttp://android.git.kernel.org/?p=platform/frameworks/base.git;a=summary but I'm not familiar with git, don't know how to download it from there. where to find a zip archive file about the source code? I donot know why the sdk don't contain the source code. --~--~-~--~~~---~--~~ 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 know whether an app is installed or not
Yes, as Jeff suggested, PackageManager#getInstalledApplication and getInstalledPackages is what you need. On May 14, 11:00 am, android app xiaog...@gmail.com wrote: I mean programatically in an application. How to write code in an application to know whether another app is installed or not? Thanks On May 13, 10:57 pm, Johnny johnnylee...@gmail.com wrote: Settings - Applications - Manage Applications On May 14, 10:53 am, android app xiaog...@gmail.com wrote: how to know whether an app is installed or not? Can an app access the list of application in My Downloads?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: ActivityInfo is null in Intrumentation class
Could you paste also the two manifest file? On Apr 28, 7:05 pm, a...@lg l.prade...@gmail.com wrote: @Override public void onStart() { super.onStart(); _intent = new Intent(Intent.ACTION_MAIN); _intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); _intent = _intent.setClass(getTargetContext(), ClassUnderTest.class); ActivityInfo ai = _intent.resolveActivityInfo(getTargetContext ().getPackageManager(), 0); if (ai != null) { ClassUnderTest activity = (ClassUnderTest) startActivitySync(_intent); } } This a part of my code in my Instrumentation class. Earlier, i got a run time Exception,Quote: java.lang.RuntimeException: Unable to resolve activity for: Intent { flags=0x1000 comp={com.android.test.ui/ com.android.test.ui.ClassUnderTest} }. Later on, i checked the activity info which is always null. How to set the ActivityInfo..? What is required to update in the code? --~--~-~--~~~---~--~~ 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 know whether an app is installed or not
I think the results from the PackageManager is accurate. The My Downloads is propobably saved the downloaded info in its own provider. One test, can you launch the application from My Downloads after uninstall it? On May 14, 11:07 am, android app xiaog...@gmail.com wrote: Thanks, Jeff. Can an app know whether another app was installed if it was uninstalled and is still in the My Downloads list? A purchased application will still in the list of My Downloads even after it is uninstalled. On May 13, 11:00 pm, android app xiaog...@gmail.com wrote: I mean programatically in an application. How to write code in an application to know whether another app is installed or not? Thanks On May 13, 10:57 pm, Johnny johnnylee...@gmail.com wrote: Settings - Applications - Manage Applications On May 14, 10:53 am, android app xiaog...@gmail.com wrote: how to know whether an app is installed or not? Can an app access the list of application in My Downloads?- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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: Unified Database Populating Solution
If you ever find yourself in need of a Trie, I've implemented one for lexic and released it under the Apache-2 license: http://code.google.com/p/lexic/source/browse/#svn/trunk/src/net/healeys/trie It's capable of supporting multiple dialects and languages. I've used it to cram about 80,000 US UK words into less than 800K. Reading the entire trie takes about 30 seconds, but it has the ability to prune the trie based on 2-letter markov chains to drastically increase the speed. It's got a bit of lexic-specific code in it right now, but I'd be interested in working with anyone who wants to adapt it to their own project. -Johnny On Mar 11, 5:52 am, Al Sutton a...@funkyandroid.com wrote: http://en.wikipedia.org/wiki/Trie In my view the best way to do a static dictionary. Then populate the SQL database with and additions the user makes. Thing to remember; SQLites' design goals are read/write capabilities. That doesn't mean it's using the best way to handle read-only data. Al. Stoyan Damov wrote: On Wed, Mar 11, 2009 at 3:52 AM, Mark Murphy mmur...@commonsware.com wrote: Justin Allen Jaynes wrote: I couldn't deal with a 5 minute startup time on an app, so I decided to include the actual database file in my resource raw folder (others suggested this to me). One potential flaw with put-the-database-file-in-the-APK approach is SQLite file format. Suppose Android 1.5 includes an update to SQLite that causes the SQLite file format to change, such that SQLite cannot read your binary database file you packaged up? Now your app is broken for newer Android devices. It may be that SQLite will be backwards compatible, or it may be that this is just unlikely to happen. However, it is a risk developers need to keep in mind. This is not going to happen. If Google rolls out SQLite X.YY and it's incompatible with the database file format used by currently installed apps (some probably paid), would you think that the OTA upgrade will kind of search for all SQLite databases on the device (some might be on the SD card) and offer the user to upgrade them? The same general argument holds true for packaging the data in the form of SQL statements, though given that SQL is more or less a standard, I would expect fewer problems this way...performance notwithstanding. Obviously, given the performance characteristics in your case, if SQLite has to be the answer (see below), then you have no choice but to package the binary database and pray. If I was building a dictionary app and it had to use database and not some other binary format I'd compress a database with non-indexed tables, put it as a resource, then on 1st run inflate it to SD card, and create an index (if that's supported, I'm assuming running an SQLite db off the SD card is). This would decrease my storage requirements to the bare minimum. (mine is a large word dictionary and the whole app after first run takes 4 meg) Another thing to consider with large yet simple database structures is whether SQLite is the right answer at all. This is particularly true if the data is read-only or read-mostly. It may be you are better served finding a Java library implementing a lower-level data structure (red-black tree, AVL tree, etc.) that is better tuned for your scenario. You might even find one that can work efficiently with an InputStream, thereby allowing you to keep the data in the APK without a second copy. For example, when I see large word dictionary, I think of spell-checkers, and implementing a spell-checker with a SQLite backend would seem likely to have poor performance. Of course, then again, it's been about two decades since I wrote my last spell-checker... -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden --http://www.sotrium.com/training.php -- * Written an Android App? - List it athttp://andappstore.com/* == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~-~--~~~---~--~~ 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 check which button is clicked
In your Java code, you can get these three buttons by: findViewById(); - assume that you have already set id for these buttons in the xml file Then you can add OnClickListener to each of them, to perform specific task seperately. --Johnny On Feb 23, 9:13 pm, gganesh ganesh@gmail.com wrote: hi friends, I have 3 buttons on the screen and i have to perform different task according to the button clicked ,how can i check which button is clicked Thanks in Advance ganesh --~--~-~--~~~---~--~~ 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: Charging for upgrading from free to paid version with new features
While it makes sense to me that google would want to disallow people from offering a free version in the market and then selling a paid version on their own site without the commission going to google, the idea that developers can't distribute a free version and then charge for content seems like an overbroad restriction. For instance: if amazon offers their mp3 store app for free but charges money to download songs into it, is that a violation of the terms? Would they be forced to first charge their users for the download in order to then charge them to purchase music? That seems like a pretty crappy deal for the user. Or alternately, what if someone writes an app that plays mp3s and then runs a site that sells mp3s? Can they not offer the app for free in the android market? I think the actual distribution agreement is vague in this case, and an interpretation that prevents developers from charging for content seems to forbid a business model that makes a lot of sense. -Rev. Johnny Healey On Feb 17, 7:09 pm, David McLaughlin (Android Advocate) d...@google.com wrote: Hi, You may not add a price to an existing app; instead, you will need to upload a new application version and add a price to that. Section 3.3 states that people who download a free app can not be charged at a later date for what they have already downloaded. For example, they can't be charged an ongoing subscription fee for additional content. However, the user can be redirected back to the market to download a full version (this would be considered a different version) for a price. Thanks, David On Feb 17, 12:12 pm, Jay-andro jayan...@gmail.com wrote: I have a free app on the Market. With paid support finally arriving, I want to be able to charge for my app. I have readied a new version that includes new features. Can I publish this as a version 2.0 and charge for it including to existing users? http://market.android.com/support/bin/answer.py?answer=138412topic=1... says: Please keep in mind, that in accordance with section 3.3 in the Developer Distribution Agreement, any users who installed the free version of your application are entitled to upgrades of that free version for no extra charge. However The Distribution Agreement 3.3 says: You may not collect future charges from users for copies of the Products that those users were initially allowed to download for free. This is not intended to prevent distribution of free trial versions of the Product with an “upsell” option to obtain the full version of the Product: Such free trials for Products are encouraged. - If I release an upgrade that has new features, that is not copies of the Product that users initially downloaded. It is not a copy, it is a new changed version. I should be able to charge for a version that has new features. But Google seems to want to disallow that citing 3.3 which doesn't disallow it in my view. Can I charge existing users for upgrades to a version with new features? How do you other developers view this and what are you planning on doing? Jay --~--~-~--~~~---~--~~ 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: access to class not allowed
I am sure that is the problem. I hacked the dalvik and uncommented the line to check if the class is public. And then the application can be launched. So thank you very much for the hints. On Feb 10, 5:34 am, fadden fad...@android.com wrote: On Feb 7, 1:09 am, johnny johnny...@gmail.com wrote: So from which version, rc1, 1.0 or cupcake, the bug in Dalvik is fixed? Just want to make it easier when communicating with the author of the apk file. I don't remember precisely. Since I'm not sure this is the problem you're experiencing, it would probably be best to send the author some information about what version of the platform you're running, along with a healthy snippet from the log file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: access to class not allowed
So from which version, rc1, 1.0 or cupcake, the bug in Dalvik is fixed? Just want to make it easier when communicating with the author of the apk file. Thanks, Johnny On Feb 7, 4:22 am, fadden fad...@android.com wrote: On Feb 6, 7:38 am, johnny johnny...@gmail.com wrote: I get an apk file from somewhere. I tried to install it the emulator successfully. (The emulator is built from the latest code in AOSP which should be cupcake or later). But I can't launch the application from the GUI. It complains The application xxx has stopped unexpectedly. After checking the logcat, I find the message access to class not allowed. It seems that that process is not allowed to instantiate the Activity class. This usually happens when the class that the app framework is trying to instantiate isn't declared public. In some older versions of Dalvik this was mistakenly allowed, so if the APK is old enough it might need to be rebuilt with a corrected class declaration. --~--~-~--~~~---~--~~ 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] access to class not allowed
I get an apk file from somewhere. I tried to install it the emulator successfully. (The emulator is built from the latest code in AOSP which should be cupcake or later). But I can't launch the application from the GUI. It complains The application xxx has stopped unexpectedly. After checking the logcat, I find the message access to class not allowed. It seems that that process is not allowed to instantiate the Activity class. Since I can install the apk successfully, I am curious why I can't launch it as a user. BTW, I tried two ways to install the app. 1) by copying it to /system/ app and rebuild the system.img 2) by using adb install. Both getting the same error message. I tried to extract the AndroidManifest.xml file from the apk. But it seems that the file is scrambled and can't read. Any idea? Thanks, Johnny --~--~-~--~~~---~--~~ 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 Lock the phone by application
According to a previous thread: http://groups.google.com/group/android-developers/browse_thread/thread/94312b8093042beb/ae00cf5ad4d176e7?#ae00cf5ad4d176e7 The permission DEVICE_POWER is not available for applications. On Feb 3, 6:46 pm, shahzad ahmad shahzad.s.ah...@gmail.com wrote: Hi, I'm trying to lock the phone through my application .I'm using following code PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); pm.goToSleep(16); I've added following permission to AndroiManifest.xml file uses-permission android:name=android.permission.DEVICE_POWER/ But the application crashes by throwing following exception *E/AndroidRuntime( 436): Caused by: java.lang.SecurityException: Neither user 10032 nor current process has android.permission.DEVICE_POWER.* Please help me to avoid the above mentioned exception or tell me some other way to lock the screen thanks, shahzad --~--~-~--~~~---~--~~ 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: Style Guide for Android application development
Great! But when can we expect it? Is there any estimated time line? On Feb 3, 12:39 am, Romain Guy romain...@google.com wrote: There will be one. On Feb 2, 2009 12:47 AM, johnny johnny...@gmail.com wrote: I find there was many discussions about the Style Guide when Android was still in Beta and RC. Now Android 1.0 has been released. The new release cupcake also went out. I am curious about whether Google has a plan to release a Style Guide for Android app development. Thanks, Johnny --~--~-~--~~~---~--~~ 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] Style Guide for Android application development
I find there was many discussions about the Style Guide when Android was still in Beta and RC. Now Android 1.0 has been released. The new release cupcake also went out. I am curious about whether Google has a plan to release a Style Guide for Android app development. Thanks, Johnny --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---