Re: [android-developers] As close my android application
On Thu, Apr 19, 2012 at 3:42 PM, julian Garcia julio.styl...@gmail.com wrote: I need to know how I can close my android application and all its activities. Any ideas that might help me do this? No you don't. You don't close your app. What are you trying to do, why do you really want to close your app. Don't kill your app. You can use Activity.finish(), as Gink notes, this is the preferred way: note that interrupting the user's control flow through your app in strange ways usually pisses them off. Kris -- 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 GridView----not able to get correct item by touch event
Try to do it without the OnGestureListener interface and post the result. Em 18 de abril de 2012 23:43, h...@isb.co.jp h...@isb.co.jp escreveu: I implemented a gridview with 7 rows and 3 columns(7,3). I am trying to get an item in gridview on touch. (want to get an touched item not clicked item) I can get an item but it is not the one I want. Example: When I touched (2,2), I should get the item in (2,2). Instead, I got the item in (3,2). Please check my source code as following: public class GridviewflickActivity extends Activity implements OnGestureListener { private GridView gv; private GestureDetector gestureDetecotr; private GestureDetector.OnGestureListener gl; private ImageView imageview; private int dragposition; private ImageAdapter ia; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); gv=(GridView)findViewById(R.id.drag_grid); ia=new ImageAdapter(this); gv.setAdapter(ia); gestureDetecotr = new GestureDetector(this); } public boolean dispatchTouchEvent(MotionEvent ev) { System.out.println(dispatchTouchEvent); return gestureDetecotr.onTouchEvent(ev); } public class ImageAdapter extends BaseAdapter{ private Context mContext; public ImageAdapter(Context c){ mContext = c; } public int getCount() { return mThumbIds.length; } public Object getItem(int position) { return mThumbIds[position]; } public long getItemId(int position) { return position; } public View getView(int position, View convertView, ViewGroup parent) { ImageView imageView1; if (convertView == null) { imageView1 = new ImageView(mContext); imageView1.setLayoutParams(new GridView.LayoutParams(85, 85)); imageView1.setScaleType(ImageView.ScaleType.CENTER_CROP); imageView1.setPadding(8, 8, 8, 8); } else { imageView1 = (ImageView) convertView; } imageView1.setImageResource(mThumbIds[position]); return imageView1; } private Integer[] mThumbIds = { R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7, R.drawable.sample_0, R.drawable.sample_1, R.drawable.sample_2, R.drawable.sample_3, R.drawable.sample_4, R.drawable.sample_5, R.drawable.sample_6, R.drawable.sample_7 }; } @Override public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) { System.out.println(onFling); int x=(int)e1.getX(); int y=(int)e1.getY(); dragposition=gv.pointToPosition(x, y); if (dragposition==gv.INVALID_POSITION){ return false; } int cnt=gv.getChildCount(); int fvp=gv.getFirstVisiblePosition(); imageview=(ImageView)gv.getChildAt(dragposition-fvp); System.out.println(X: + x + Y: + y + dragposition: +dragposition+ fvp: +fvp); return true; } -- 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
Re: [android-developers] As close my android application
You can use Activity.finish(), as Gink notes, this is the preferred way: note that interrupting the user's control flow through your app in strange ways usually pisses them off. That wasn't meant as condescending as it came off. I mean to say, a common thing I hear from regular people who don't write apps, is that the apps they download do strange things that are caused by calling finish() incorrectly (why does it go back to *that* screen!? I don't want that! is frequently said in our household.) kris -- 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] Cache data in SqlLite or keep querying the web
What's kind of data ? Maybe system folder can be more adequate than sqlite. Em 16 de abril de 2012 13:33, Jethro Borsje jethrobor...@gmail.comescreveu: Hi all, I am building a new app which gets (and updates) data from one of Googles API's. Now I and am struggling with the following question: should I make an effort to cache data in SqlLite and keep it in sync, or should I use the API and do a 'web query' every time the user opens an activity? I can make valid arguments for both ways and am not sure what to do. Best regards, Jethro -- 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
Re: [android-developers] Novato
Ok. Good luck. Em 20 de abril de 2012 19:59, Carlos Solano carlosenrriqu...@gmail.comescreveu: Hola, soy un estudiante de secundaria y estoy tratando de entrar en el mundo de la programacion. Necesito ayuda, quiero iniciar la carrera en programacion y quiero crear una alplicacion que sea un examen de varias opciones (3 mas o menos) por ejemplo hacer la pregunta y que puedan haber tres opciones como respuesta. soy nuevo en esto y quisiera empezar con una aplicacion como esta. culaquier ayuda es bienvenida. gracias -- 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
Re: [android-developers] Listview show funny stuff
You are returning a list of Client class objects. You need to implements a method that returns a list of client name String. Em 19 de abril de 2012 23:13, Ricardo Rivera dist...@gmail.com escreveu: I a listview connecto to a datbase and is showing in the list the value of the record for the app. Something like com.software.myapp.client.client@44abc0 com.software.myapp.client.client@44abc1 etc in the list I want to show only to show the Client Name Here is my Table scheme Client Id,Name,Addrs,Phone setContentView(R.layout.clientlist); clientds = new ClientDataSource(this); clientds.open(); ListClient values = clientds.getAllClients(); ArrayAdapterClient adapter = new ArrayAdapterClient(this, android.R.layout.simple_list_item_1, values); -- 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
Re: [android-developers] File upload in android app.
http://lmgtfy.com/?q=android+file+upload Em 23 de abril de 2012 02:04, asheesh arya asheesharya...@gmail.comescreveu: tell clearly whta exactly you want to do with your file wheather to upload file on server or sumthing else -- 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: what broadcast or method is called when the application is uninstalled
Even if there was, your app would not be around to delete it. :( You may have to save your files to your context's getExternalFilesDir(null) instead, where it will be deleted together with the app. On Apr 23, 1:19 pm, ANKUR GOEL ankur1...@gmail.com wrote: Hi all , i want to delete some files from file directory folder when my application is uninstalled . so can i know what broadcast or method is called 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: what broadcast or method is called when the application is uninstalled
what broadcast or method is called None. Em 23 de abril de 2012 03:29, albnok alb...@gmail.com escreveu: Even if there was, your app would not be around to delete it. :( You may have to save your files to your context's getExternalFilesDir(null) instead, where it will be deleted together with the app. On Apr 23, 1:19 pm, ANKUR GOEL ankur1...@gmail.com wrote: Hi all , i want to delete some files from file directory folder when my application is uninstalled . so can i know what broadcast or method is called 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 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 get accurate time stamps from Android GPS location.
Check out my new Examine GPS times https://play.google.com/store/apps/details?id=com.gpsanimator.gpsTimerDisplayfeature=search_result#?t=W251bGwsMSwyLDEsImNvbS5ncHNhbmltYXRvci5ncHNUaW1lckRpc3BsYXkiXQ..free app that displays both GPS times and System time. On Monday, April 23, 2012 7:52:09 AM UTC+10, StarTraX wrote: I could probably knock you up one quite quickly as I'm currently spending a lot of time in that space. Could you be more specific about your requirements? Maybe communicate directly with me through the info {at} gpsanimator {dot} com On Mon, Apr 23, 2012 at 12:00 AM, Panam pandem...@googlemail.com wrote: Just to let you know, I am currently experimenting with GPS on a S Galaxy I whose GPS is off about 24 hs in the future (+-some seconds) and it does not seem to depend on the system time (adjusted the system time by some minutes without effects). This seems to be a systematic error. Btw. does somebody know an free app that shows the GPS time + date? -- 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
Re: [android-developers] ANDROID BASED VEHICLE TRACKING ISSUES on a remote Server
Do these calculus in server side, not in Android. Em 23 de abril de 2012 01:08, Bhuvan Chandra bhuvanchandr...@gmail.comescreveu: Hello , I dont have an answer for u but i have a question, as part of my project i have to develop an android app which could receive the gps coordinates and send them to a pc(i.p.address) through wifi both mobile and pc are connected to wifi, i have done the part of receiving the gps coordiantes from a satellite , can u tell me the code for sending these coordinates through wifi to a pc On Sun, Apr 15, 2012 at 5:20 PM, JOHN BOSCO BAHUNGIREHE jbjobosc...@gmail.com wrote: Hi friends; Have got a problem in my code and some how confused of how t include some of the features in the project. The project is about vehicle tracking using android,when I try to test the attached code it runs with no error but the does not update the location to my current position on the map but instead to either my initialized coordinates of (0.0, 0.0) or if I send the Fake coordinates using the ddms it takes me to that position on the map without updating to my current location. Another issue is that I wanted to include the speed at which the vehicle is moving and the distance between the starting point and the current position of the vehicle and the letting the phone send this information to some remote server at the base station. I have attached the code for any brother or sister that is ready to help me understand how i can go about this problem to look at. THANK YOU VERY MUCH FOR YOUR HELP AND CONCERN Regards John 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 -- 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] window memory leaked
Hi... I declared the dailog box in asyn task onPostExecute() if i do this am getting window leaked erroram attaching Code and Logcat Error ...((.and also in log cat am getting. Grow heap (frag case) to 14.789MB for 2975968-byte allocation .))) Thank In advance private class Task extends AsyncTaskVoid, Void, Void { protected void onPreExecute() { // TODO Auto-generated method stub super.onPreExecute(); ACTIVITY_INSTANCE.showDialog(PROGRESS_DIALOG); } protected Void doInBackground(Void... params) { // TODO Auto-generated method stub try { HttpClient httpclient = new DefaultHttpClient(); String data = new String( --request---); HttpPost post = new HttpPost( --url(wsdl address)---); StringEntity se = new StringEntity(data, HTTP.UTF_8); post.setHeader(Content-Type, text/xml;charset=UTF-8); post.setHeader(SOAPAction:, ); post.setEntity(se); BasicHttpResponse httpResponse = (BasicHttpResponse) httpclient .execute(post); httpResponse.getEntity(); InputStream is = httpResponse.getEntity().getContent(); byte[] buffer = new byte[1024]; int bytes_read = 0; StringBuilder sb = new StringBuilder(); while ((bytes_read = is.read(buffer, 0, buffer.length)) 0) { sb.append(new String(buffer, 0, bytes_read)); } XMLhandler handler = new XMLhandler(); Xml.parse(sb.toString(), handler); // Log.i(Resfor first:, R: + sb.toString()); String response = sb.toString(); } startActivity(ACTIVITY_INSTANCE.intentuser); } } catch (IOException e) { error=102; // TODO Auto-generated catch block e.printStackTrace(); } catch (SAXException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (NullPointerException e) { // TODO: handle exception } catch (Exception e) { } return null; } protected void onPostExecute(Void result) { // TODO Auto-generated method stub super.onPostExecute(result); if (error == 102) { ACTIVITY_INSTANCE.dismissDialog(PROGRESS_DIALOG); AlertDialog.Builder dialog = new AlertDialog.Builder(LoginScreen.this); LayoutInflater inflater = (LayoutInflater)LoginScreen.this.getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.login,null); Button add_item = (Button)layout.findViewById(R.id.Btn1); dialog.setView(layout); final AlertDialog alertDialog = dialog.create(); alertDialog.setTitle(Login Failure); alertDialog.setMessage(Invalid Login Details); add_item.setOnClickListener(new OnClickListener() { public void onClick(View v) { alertDialog.dismiss(); } }); alertDialog.show(); } } -LOGCAT --- 0 ERROR/WindowManager(392): Activity com.android.LoginScreen has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@406a4a30 that was originally added here 04-23 12:01:57.642: ERROR/WindowManager(392): android.view.WindowLeaked: Activity com.android.LoginScreen has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@406a4a30 that was originally added here 04-23 12:01:57.642: ERROR/WindowManager(392): at android.view.ViewRoot.init(ViewRoot.java:285) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:152) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.view.Window$LocalWindowManager.addView(Window.java:526) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.app.Dialog.show(Dialog.java:269) 04-23 12:01:57.642: ERROR/WindowManager(392): at com.android.LoginScreen$Task.onPostExecute(LoginScreen.java:351) 04-23 12:01:57.642: ERROR/WindowManager(392): at com.android.LoginScreen$Task.onPostExecute(LoginScreen.java:1) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.os.AsyncTask.finish(AsyncTask.java:590) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.os.AsyncTask.access$600(AsyncTask.java:149) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:603) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.os.Handler.dispatchMessage(Handler.java:99) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.os.Looper.loop(Looper.java:132) 04-23 12:01:57.642: ERROR/WindowManager(392): at android.app.ActivityThread.main(ActivityThread.java:4025) 04-23 12:01:57.642: ERROR/WindowManager(392): at java.lang.reflect.Method.invokeNative(Native Method) 04-23 12:01:57.642: ERROR/WindowManager(392): at java.lang.reflect.Method.invoke(Method.java:491) 04-23 12:01:57.642: ERROR/WindowManager(392): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) 04-23 12:01:57.642: ERROR/WindowManager(392): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) 04-23 12:01:57.642: ERROR/WindowManager(392): at
[android-developers] Re: As close my android application
You can kill your application by calling Process.killProcess(). http://developer.android.com/reference/android/os/Process.html#killProcess(int) However, this function call will kill process forcibly, in other words the onDestroy() functions not be called when Activity be terminated. julian Garcia於 2012年4月20日星期五UTC+8上午3時42分52秒寫道: I need to know how I can close my android application and all its activities. Any ideas that might help me do this? 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
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
Some of the time confusion arises because GPS units can report a variety of GPS Time, UTC and semi-corrected GPS Time. I discovered this when building a precision timer for an industrial corrosion monitoring device. On startup the GPS would report UTC plus one second. Within 12.5 minutes it would report exactly UTC, i.e. after reception of the GPS/UTC correction factor. I could only assume that the GPS developers had pre-programmed in the UTC/GPS clock offset that was current when the device was manufactured. Since then a UTC leap second had been added. Importantly, there is no way to tell which of those times the GPS is reporting. No doubt the precise behavior varies from chipset to chipset. For my project I was using a SiRF III receiver and could switch on the raw 50bps data steam and watch for the GPS/UTC correction to be sure when I had UTC time. AFAIK, there is no way of doing that on Android, so for truly accurate times your best bet is to leave the GPS on for 12.5 minutes before reading the time, and hope that it has successfully received the clock correction. -- Andrew -- 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] Undefined behaviors due to Non-thread safe nature of Bitmaps(Skia)
Solving heap corruption/ undefined behaviors is really frustrating. And Bitmap / is one of such culprit, there are two major issues with Bitmap. 1) App developer doesn't have a clue that Bitmap is wrapped over Skia, and Skia is *thread-UNSAFE.* So, all those using Bitmap in non-UI threads (AsyncTask,..etc) are on dangerous edge of Undefined/heap-corruption ..and many more...endless issues. 2) *API documentation is not well described, *say for example: * Bitmap.createScaledBitmap() *, doesn't say anywhere that it may return *same source bitmap *based on input parameters passed, more on this linkhttp://stackoverflow.com/questions/6278992/does-bitmap-createscaledbitmap-convert-an-32-bit-image-into-24-bit . So, those believing that it always returns a new scaled bitmap, would end in* race condition* when passed to a non-UI thread,so** a recipe for all Undefined behaviors, more over if one of thread does *Bitmap.Recycle()*, then no one is there to save you. -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
Re: [android-developers] Re: As close my android application
2012/4/23 Alger Lin addr...@gmail.com: You can kill your application by calling Process.killProcess(). http://developer.android.com/reference/android/os/Process.html#killProcess(int) *don't* do this.. kris -- 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 BASED VEHICLE TRACKING ISSUES on a remote Server
On 16/04/12 02:20, JOHN BOSCO BAHUNGIREHE wrote: Hi friends; Have got a problem in my code and some how confused of how t include some of the features in the project. The project is about vehicle tracking using android,when I try to test the attached code it runs with no error but the does not update the location to my current position on the map but instead to either my initialized coordinates of (0.0, 0.0) or if I send the Fake coordinates using the ddms it takes me to that position on the map without updating to my current location. Did you try to run it in debug mode ? -- 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] Developing application: Android Vs HTML5
Hi to everything: Currently I'm developing an Android application for my company using android, and another department has suggested to use HTML5 in an embedded webapp to develop the application. I want to know the pros and cons of using HTML5 vs android for developing android applications. I searched the web, and I didn't found enough arguments to use either HTML5 or Android. The main point of using HTML5 is that you can code one, and deliver to both Android and iOS. The main poing of using android is, in theory, a better performance, though I have not been able to find benchmarks about this, just a vague afirmation on the web. Does anyone has experience with this and can shere their impressions? Links will be much appreciated too. Thansk in advance. Aitor -- 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 get accurate time stamps from Android GPS location.
Hey Andrew - what interesting revelations! What's the story behind the 12.5 minutes wait - is there some time offset update in the GPS signal? Where can I go to learn more? I'm now getting some very interesting results from my little app (above). When first receiving a signal, it's reporting a NMEA time with odd milliseconds, but after a variable time - between around 3 and I5 seconds, the NMEA time decimals go to zero and the time syncs with the location.getTime() value. I have discovered that my SGS 11 uses the SiRF Star IV chip. I'm keen to understand more - please point me to some reading, I have spent the day googling variations on GPS message syntax with no success. Cheers On Monday, April 23, 2012 5:47:21 PM UTC+10, andrewg_oz wrote: Some of the time confusion arises because GPS units can report a variety of GPS Time, UTC and semi-corrected GPS Time. I discovered this when building a precision timer for an industrial corrosion monitoring device. On startup the GPS would report UTC plus one second. Within 12.5 minutes it would report exactly UTC, i.e. after reception of the GPS/UTC correction factor. I could only assume that the GPS developers had pre-programmed in the UTC/GPS clock offset that was current when the device was manufactured. Since then a UTC leap second had been added. Importantly, there is no way to tell which of those times the GPS is reporting. No doubt the precise behavior varies from chipset to chipset. For my project I was using a SiRF III receiver and could switch on the raw 50bps data steam and watch for the GPS/UTC correction to be sure when I had UTC time. AFAIK, there is no way of doing that on Android, so for truly accurate times your best bet is to leave the GPS on for 12.5 minutes before reading the time, and hope that it has successfully received the clock correction. -- Andrew -- 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] Developing application: Android Vs HTML5
On Mon, Apr 23, 2012 at 4:37 AM, Aitor Mendaza Ormaza aitorthe...@gmail.com wrote: Hi to everything: Currently I'm developing an Android application for my company using android, and another department has suggested to use HTML5 in an embedded webapp to develop the application. I want to know the pros and cons of using HTML5 vs android for developing android applications. I searched the web, and I didn't found enough arguments to use either HTML5 or Android. The main point of using HTML5 is that you can code one, and deliver to both Android and iOS. The main poing of using android is, in theory, a better performance, though I have not been able to find benchmarks about this, just a vague afirmation on the web. Does anyone has experience with this and can shere their impressions? Links will be much appreciated too. Thansk in advance. Aitor I wouldn't say it's performance that people necessarily go after. I think it's more like, there's something about the native feel custom to each platform that makes an app written for Android tailored to interact with the UX of the Android ecosystem of a whole. Unfortunately, web apps seem to have a worst of both worlds feel to them, in that they have a UI inconsistent with *either* of the platforms. (Although I admit, there are some good apps which come close to both..) Going native also helps you get access to some low level platform tools that you might have trouble getting access to within a web app (though Boot to Gecko might be trying to solve this, only in the abstract so far). I'm sure there is some performance overhead, but the main difference I see is the feature set available to you, and the more Android feel a custom app allows you. (this isn't an argument either way, if you're constrained in terms of resources, a web app is perfectly fine, if you have more time / money, a custom app for each platform, probably using the same underlying framework / backend, is probably most typical..) Kris -- 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 distribute free in-app content?
Could anyone help me??? Thanks! Em sexta-feira, 13 de abril de 2012 09h42min33s UTC-3, Larissa Lucena escreveu: Hi, there! I´m new in android world and I have to publish a free application that will allow people access from it (users don´t need to leave the application to access the content) and download free content in it. How could I do this? What steps should I follow? When researching in android developers, I´ve found the information about in-app billing, but it doesn´t solves my problem cause it doesn ´t accept the value $0,00 as the price of the content. 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
Re: [android-developers] How to distribute free in-app content?
On Fri, Apr 13, 2012 at 9:42 PM, Larissa Lucena larissaluc...@gmail.com wrote: Hi, there! I´m new in android world and I have to publish a free application that will allow people access from it (users don´t need to leave the application to access the content) and download free content in it. How could I do this? What steps should I follow? Put it on a server and let users download it on demand from the app? Why do you think you need to use in-app billing for 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] How to animate my gif image?
i stored a gif image in my assets folder..And i need that image to be displayed in imageView in my xml file...the image should animate too..how to do the same?? -- 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] Free of cost e-mail marketing tip
Email marketing is one of the highly used medium to reach thousands of peoples through internet but it isn’t that much effective in most of the cases. Until and unless you have a good, established reputable website with genuine client base, it doesn’t work well. Though it cost little but what is the use of paying if it doesn’t work especially when you are doing it first time or new to email marketing. Let me share you a free-of-cost approach to market your company, I’m sure most of you guys are already aware of it but in case if anyone isn’t. From couple of months, I have been marketing my blogs through GOOGLE GROUPS. Marketing blogs via groups is a good and free of cost idea but it will take a lot of time, you need to hire staff or otherwise you auto-posting bots to do so but auto-bots will make it spamming. Well, here is how I am doing it and driving instant traffic – I got 15 gmail accounts and each account has 200 groups. I use tools like iMacro/ Robomaker to post a single message with spinning text at all of these groups, so how many members I approach, let’s say 15*200*150=450,000 members. (Actually, there are more members than that!). I know your next question would be about moderated groups, well, yes some of groups are moderated and may allow the post to be published if they like it anyhow, who cares, at-least I am having 300k members in half- an-hour. Good enough for free! Is it spamming? Well, in first thought YES it is – spamming includes duplicate content in every single post but what IF it is UNIQUE or different every time? See, I use advanced spinning techniques every time before any post, making it look bit different or sometimes truly unique, just to make Google thinks I am not spamming. I have been using this approach from lots of month and I know how much effective it is, I am trying to add more and more groups in my lists with higher member base. If you guys out there aren’t using this technique yet, go ahead, I’m sure you will have better results like me. I won’t share my email but if you like, I got Robomaker bots available for sale – all you have to do is make emails, join groups and put them in a csv file at your desktop and let the bot now the path then put subject line and message in the bot and execute it. {If a|A}nyone {require my|want} {help|assistance}, do {tell me|let me know} – it would be my pleasure helping you out! 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
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
The Wikipedia article on GPS has a lot of info. The Official source of info would be: http://www.gps.gov/technical/ Lots of technical PDFs there! I used the Interface Control Document IS-GPS-200 and SPS Performance Standard Specification, mostly the latter. In short, though, the GPS comms cycle involves sending 25 pages of data at 50bps. Each page takes 30sec to be received and contains the complete ephemeris for the satellite and 1/25th of the almanac. 25*30sec = 12.5 minutes. One of the almanac pages contains the GPS/UTC correction. All satellites transmit the same almanac, which is good for several days. Each satellite transmits its own ephemeris, which is good for a few hours. Receivers will frequently store this info for faster startup. Devices with Internet capability (say, Android smartphones :-) can download everything from the Internet. I should mention that all satellites appear to transmit the almanac in sync. I never saw the GPS/UTC correction message any faster than every 12.5 minutes no matter how many satellites were visible. The problem for timing is that there is no way to tell what GPS/UTC offset is actually being applied by the receiver. I have not seen any comms protocol that includes this info, not NMEA, not SiRF. Android limits your options. There is simply no way to be *sure*. The best I could come up with was listening to the raw data, but you can't do that on Android. -- Andrew -- 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 get accurate time stamps from Android GPS location.
I've not looked at the relevant Android API before, but I would imagine that if you get a GpsStatus object from the LocationManager, then check each satellite for hasAlmanac(), then you might be more likely to have the correct GPS/UTC offset. It is still possible to have received the almanac data for all satellites in view, but still not received the GPS/UTC offset, so not a perfect solution. -- 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: Opengl ES scaling (zoom out) shows rare square tiles on my textures. How to avoid it?
I tryed it, it is not the solution El sábado, 21 de abril de 2012 20:23:26 UTC+2, Nightwolf escribió: Change zNear and zFar parameters in GLU.gluPerspective(gl, 45.0f, (float)width / (float)height, 0.1f, 100.0f) to 1 and 1000. If it helps then your square is near far clipping plane. пятница, 20 апреля 2012 г., 19:41:54 UTC+4 пользователь saex написал: Hi I'm displaying a OPENGL ES 1.X square with a texture, and the user can zoom in and out the square scaling it. When the user zoom's out the square (the square get's scaled going smaller in the screen) the texture of the square get's rare translucent squares, like tiles from googlemaps. I think that the scaling function from OpenGL is now working in the better way. How can i improve it? These are my OpenGL GLSurfaceView main functions: public void onSurfaceCreated(GL10 gl, EGLConfig config) { gl.glDisable(GL10.GL_DITHER); //dithering OFF gl.glEnable(GL10.GL_TEXTURE_2D);//Texture Mapping ON gl.glShadeModel(GL10.GL_SMOOTH);//Smooth Shading gl.glClearDepthf(1.0f); //Depth Buffer Setup gl.glEnable(GL10.GL_DEPTH_TEST);//Depth Testing ON gl.glDepthFunc(GL10.GL_LEQUAL); gl.glClearColor(0,0,0,0); //fondo transparente gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, GL10.GL_NICEST); //Cargamos la textura del cubo. for (int i=0;isquares.size();i++){ if (squares.get(i)!=null) squares.get(i).loadGLTexture(gl, context); } } public void onDrawFrame(GL10 gl) { //Limpiamos pantalla y Depth Buffer gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); gl.glLoadIdentity(); mg.getCurrentProjection(gl); //volvemos a generar las matrices por que es un bucle mg.getCurrentModelView(gl); . . . . gl.glTranslatef(X, Y, Z); //Move z units into the screen gl.glRotatef(zrot, 0.0f, 0.0f, 1.0f); //Z gl.glScalef(scale, scale, 1.0f); for (int i=0;isquares.size();i++){ if (squares.get(i)!=null) squares.get(i).draw(gl); //Draw the Cube } } public void onSurfaceChanged(GL10 gl, int width, int height) { if(height == 0) { //Prevent A Divide By Zero By height = 1; //Making Height Equal One } gl.glViewport(0, 0, width, height); //Reset The Current Viewport gl.glMatrixMode(GL10.GL_PROJECTION);//Select The Projection Matrix gl.glLoadIdentity();//Reset The Projection Matrix //Calculate The Aspect Ratio Of The Window GLU.gluPerspective(gl, 45.0f, (float)width / (float)height, 0.1f, 100.0f); gl.glMatrixMode(GL10.GL_MODELVIEW); //Select The Modelview Matrix gl.glLoadIdentity();//Reset The Modelview Matrix } and these are my square polygon class main functions: public void draw(GL10 gl) { gl.glFrontFace(GL10.GL_CCW); //Bind our only previously generated texture in this case gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Point to our vertex buffer gl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer); //Enable vertex buffer gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); //Draw the vertices as triangle strip gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3); //Disable the client state before leaving gl.glDisableClientState(GL10.GL_VERTEX_ARRAY); gl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY); } //Carga de texturas public void loadGLTexture(GL10 gl, Context context) { //Generamos un puntero de texturas gl.glDeleteTextures(1, textures, 0); //libero memoria gl.glGenTextures(1, textures, 0); //y se lo asignamos a nuestro array gl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]); //Creamos filtros de texturas gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); //Diferentes parametros de textura posibles GL10.GL_CLAMP_TO_EDGE gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT); gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT); //Usamos Android GLUtils para espcificar una textura de 2 dimensiones para nuestro bitmap GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0); //Checkeamos si el GL context es versión 1.1 y generamos los Mipmaps por Flag.
Re: [android-developers] Re: How to get accurate time stamps from Android GPS location.
not an expert on that matter - good one. Keep it up. On Sunday, April 22, 2012 8:20:57 PM UTC-4, StarTraX wrote: Ibendin, I think it's good practice to employ words like perhaps, possibly or maybe when speculating on technical subjects. It's less confusing to the reader and makes it clear that one is not an expert on the matter. On Monday, April 23, 2012 9:42:50 AM UTC+10, lbendlin wrote: The OEM for your device decided to use UTC rather than GPS time. On Sunday, April 22, 2012 6:05:12 PM UTC-4, StarTraX wrote: I can assure you that the time reported by the quoted gpsclock site is NOT the time reported by GPS devices. It's really easy to demonstrate: Compare what you see on your GPS with what's displayed from the web site. The quoted time is around 15 seconds ahead of the time from the GPS device. I wonder what that's really all about? On Mon, Apr 23, 2012 at 5:08 AM, lbendlin l...@bendlin.us wrote: http://leapsecond.com/java/gpsclock.htm That explains the +/- some seconds. As I mentioned already, GPS chips on phones are cheap and cheerful. They use all kinds of dirty tricks to cut corners (AGPS etc). You probably won't find two smartphone models (even from the same OEM) that have the same GPS behavior . On Sunday, April 22, 2012 10:00:31 AM UTC-4, Panam wrote: Just to let you know, I am currently experimenting with GPS on a S Galaxy I whose GPS is off about 24 hs in the future (+-some seconds) and it does not seem to depend on the system time (adjusted the system time by some minutes without effects). This seems to be a systematic error. Btw. does somebody know an free app that shows the GPS time + date? -- 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 On Monday, April 23, 2012 9:42:50 AM UTC+10, lbendlin wrote: The OEM for your device decided to use UTC rather than GPS time. On Sunday, April 22, 2012 6:05:12 PM UTC-4, StarTraX wrote: I can assure you that the time reported by the quoted gpsclock site is NOT the time reported by GPS devices. It's really easy to demonstrate: Compare what you see on your GPS with what's displayed from the web site. The quoted time is around 15 seconds ahead of the time from the GPS device. I wonder what that's really all about? On Mon, Apr 23, 2012 at 5:08 AM, lbendlin l...@bendlin.us wrote: http://leapsecond.com/java/gpsclock.htm That explains the +/- some seconds. As I mentioned already, GPS chips on phones are cheap and cheerful. They use all kinds of dirty tricks to cut corners (AGPS etc). You probably won't find two smartphone models (even from the same OEM) that have the same GPS behavior . On Sunday, April 22, 2012 10:00:31 AM UTC-4, Panam wrote: Just to let you know, I am currently experimenting with GPS on a S Galaxy I whose GPS is off about 24 hs in the future (+-some seconds) and it does not seem to depend on the system time (adjusted the system time by some minutes without effects). This seems to be a systematic error. Btw. does somebody know an free app that shows the GPS time + date? -- 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: Cache data in SqlLite or keep querying the web
How often does the data change? How important is is to the end user to see data without having to wait? You can always combine both approaches. Show stale data first and then replace it with the updated data once fetched. On Monday, April 16, 2012 12:33:35 PM UTC-4, Jethro Borsje wrote: Hi all, I am building a new app which gets (and updates) data from one of Googles API's. Now I and am struggling with the following question: should I make an effort to cache data in SqlLite and keep it in sync, or should I use the API and do a 'web query' every time the user opens an activity? I can make valid arguments for both ways and am not sure what to do. Best regards, Jethro -- 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] Reading ROM version through code
Didn't find anything unfortunately. Is this really impossible to do? JP Den tirsdag den 17. april 2012 23.24.22 UTC+2 skrev JP: I just found that code myself... am cloning as I type. Will report what I find. JP Den tirsdag den 17. april 2012 23.19.04 UTC+2 skrev Mark Murphy (a Commons Guy): On Tue, Apr 17, 2012 at 5:11 PM, JP jetp...@yahoo.com wrote: I looked at that also, and this doesn't give me what I want. For my HTC Legend phone, this returns 01. I am expecting: 3.15.405.3 or 3.15.405.3 CL291292 release-keys, which is what it says under Software number and Build number in my Settings/About Phone/Software Information activity. Here is that activity, from AOSP: https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/DeviceInfoSettings.java See if you can find in there what you're seeking. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books Den tirsdag den 17. april 2012 23.19.04 UTC+2 skrev Mark Murphy (a Commons Guy): On Tue, Apr 17, 2012 at 5:11 PM, JP jetp...@yahoo.com wrote: I looked at that also, and this doesn't give me what I want. For my HTC Legend phone, this returns 01. I am expecting: 3.15.405.3 or 3.15.405.3 CL291292 release-keys, which is what it says under Software number and Build number in my Settings/About Phone/Software Information activity. Here is that activity, from AOSP: https://github.com/android/platform_packages_apps_settings/blob/master/src/com/android/settings/DeviceInfoSettings.java See if you can find in there what you're seeking. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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: searchview theming issue
i did sv.getContext().setTheme(android.R.style.Theme_Holo_Light); // sv is the searchview but now it also changes the theme of the other views is there a possibility to only change the searchview Op maandag 23 april 2012 01:21:16 UTC+2 schreef dnkoutso het volgende: When you instantiate the SearchView use getThemedContext() instead of getContext(). On Sunday, April 22, 2012 2:48:04 PM UTC-7, Lars wrote: When creating a searchview in an android 4.03 when using the theme holo light with darkactionbar The style of the drawables of the searchview Doesn't match. If have already reported it as a bug. http://code.google.com/p/android/issues/detail?id=29288 Is there a way to set the style of the searchview When using the holo light darkactionbar theme To the style when using the theme holo dark?? Which has the right drawables. -- 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] Set Ringtone
Hey people, is there any chanse to set ringtone that i implement in my activity.This song is not placed on SD ,so is it possible? send me some solutions or link if you have ..Thanks people and thans for sharing -- 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] Add Weekly,Fortnightly,Monthly Recurring events to calendar.
Hi, Please take a look at the 4th bullet in http://developer.android.com/guide/topics/providers/calendar-provider.html#add-event What do you mean by it doesn't work? What do you see in the logcat? Did you get an exception? If so, please share. What did resolver.insert() return? If the insert was successful, resolver.insert() should return a uri to the event. If you get a uri but can't find the event in the Calendar app, double check the dtstart i.e. put it in a Time object, print it out and verify. For fortnightly, the rrule is FREQ=DAILY;INTERVAL=2 To learn more about rrules, read http://tools.ietf.org/html/rfc5545#section-3.8.5.3. If you don't want to bother, just add an event using the web or another app then query the rrule of that event and see what you get. Don't hard code calendar_id to 1. Let the user pick a calendar. Thanks, Mike On Sun, Apr 22, 2012 at 2:06 AM, Deepak deepakvs...@gmail.com wrote: I'm trying to add event to the calendar programatically in Android API 11. It does not seem to be working, I've pasted the code, also didn't find anything on adding fortnightly events. Please if anyone can tell what is the issue in the code below. ContentValues event = new ContentValues(); event.put(calendar_id, 1); event.put(title, title); event.put(description, description); event.put(eventLocation, location); event.put(dtstart, startDate); switch (recurrance) { case DAILY: event.put(rrule, FREQ=DAILY); break; case MONTHLY: event.put(rrule, FREQ=MONTHLY); break; case WEEKLY: event.put(rrule, FREQ=WEEKLY); break; case FORTNIGHTLY: event.put(rrule, FREQ=YEARLY); //CODE for Fortnight to be added. break; } event.put(dtend, endDate); if (Integer.parseInt(Build.VERSION.SDK) = 8) { Uri eventsUri = Uri.parse(content://com.android.calendar/events); resolver.insert(eventsUri, event); } else { Uri eventsUri = Uri.parse(content://calendar/events); resolver.insert(eventsUri, event); } -- 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] Custom ROM for tablet
I understand that the Motorola Xoom is discontinued. That is the only tablet listed on the source.android.com website as a device that a custom ROM can be built for ( http://source.android.com/source/building-devices.html ). We have been working with the Nexus S but have to rebuild the ROM and slightly modify the kernel in order to get the USB support we need. We would like to purchase a tablet but would need the same USB support. Will any new tablets be added to the supported devices for custom ROMs? -- 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] building ffmpeg-0.10.2 with ndk-r7c
hey there! i've successfuly configured ffmpeg and am now stuck in compiling it. I always get the warning: WARNING: /android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-pkg-config not found, library detection may fail. and then the build fails with a lot of warnings and the error collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 my build script looks like this: NDK=~/android-ndk-r7c PLATFORM=$NDK/platforms/android-8/arch-arm/ PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 CPU=armv7-a OPTIMIZE_CFLAGS=-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU PREFIX=./android/$CPU ADDITIONAL_CONFIGURE_FLAG= ./configure \ --disable-everything \ --enable-small \ --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ --enable-cross-compile \ --target-os=linux \ --extra-cflags=-I$PLATFORM/usr/include \ --extra-ldflags=-L$PLATFORM/usr/lib -nostdlib \ --arch=arm \ --enable-decoder=aac \ --enable-encoder=aac \ $ADDITIONAL_CONFIGURE_FLAG sed -i 's/HAVE_LRINT 0/HAVE_LRINT 1/g' config.h sed -i 's/HAVE_LRINTF 0/HAVE_LRINTF 1/g' config.h sed -i 's/HAVE_ROUND 0/HAVE_ROUND 1/g' config.h sed -i 's/HAVE_ROUNDF 0/HAVE_ROUNDF 1/g' config.h sed -i 's/HAVE_TRUNC 0/HAVE_TRUNC 1/g' config.h sed -i 's/HAVE_TRUNCF 0/HAVE_TRUNCF 1/g' config.h make clean make -j4 install $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a du you have any ideas what could couse the problem? did the ndk use to have a pkg-config? cheers -- 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] building ffmpeg-0.10.2 with ndk-r7c
ask on android-ndk group Regards, Marcin Orlowski *Tray Agenda http://bit.ly/trayagenda* - keep you daily schedule handy... *Date In Tray* http://bit.ly/dateintraypro - current date at glance... WebnetMobile on *Facebook http://webnetmobile.com/fb/*, *Google+*http://bit.ly/webnetmobile-gpand *Twitter http://webnetmobile.com/twitter/* On 23 April 2012 16:09, r -- 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] Reading ROM version through code
On Monday, April 23, 2012 7:54:50 AM UTC-4, JP wrote: Didn't find anything unfortunately. Is this really impossible to do? Open an adb shell, type getprop and look at the result. Some entries which may be of interest: ro.build.fingerprint ro.build.version.* ro.product.version These should be readable by apps; what I don't know off the top of my head is which (if any) are stable API's and which are private and thus subject to change without notice. -- 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 remote wipe particular application data
HI All, I want to wipe all data for particular application.I went through device admin api. It provides option to wipe all device data not for particular app. Is there any way to wipe data for particular app... Regards, Bunty Syed -- 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] Reading ROM version through code
Update: none of these are stable APIs and you will need to use the call the native function property_get() or invoke the getprop routine to retrieve them. That makes this method off topic for this group. On Monday, April 23, 2012 10:53:25 AM UTC-4, Chris Stratton wrote: On Monday, April 23, 2012 7:54:50 AM UTC-4, JP wrote: Didn't find anything unfortunately. Is this really impossible to do? Open an adb shell, type getprop and look at the result. Some entries which may be of interest: ro.build.fingerprint ro.build.version.* ro.product.version These should be readable by apps; what I don't know off the top of my head is which (if any) are stable API's and which are private and thus subject to change without notice. -- 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 to remote wipe particular application data
On Mon, Apr 23, 2012 at 10:54 AM, Bunty syed itsmeatfo...@gmail.com wrote: I want to wipe all data for particular application.I went through device admin api. It provides option to wipe all device data not for particular app. Is there any way to wipe data for particular app... Not on a standard production device. On a rooted device, you should be able to simply delete all the files in the app's internal storage area. -- 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 2.6 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Reading ROM version through code
Or just read /system/build.prop directly from Java. It's off-topic, that's true. OP: you may want to also try asking on xda-developers. -- K 23 апреля 2012 г. 18:58 пользователь Chris Stratton cs07...@gmail.comнаписал: Update: none of these are stable APIs and you will need to use the call the native function property_get() or invoke the getprop routine to retrieve them. That makes this method off topic for this group. On Monday, April 23, 2012 10:53:25 AM UTC-4, Chris Stratton wrote: On Monday, April 23, 2012 7:54:50 AM UTC-4, JP wrote: Didn't find anything unfortunately. Is this really impossible to do? Open an adb shell, type getprop and look at the result. Some entries which may be of interest: ro.build.fingerprint ro.build.version.* ro.product.version These should be readable by apps; what I don't know off the top of my head is which (if any) are stable API's and which are private and thus subject to change without notice. -- 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
Re: [android-developers] Set Ringtone
Try googling set ringtone android? http://stackoverflow.com/questions/1271777/how-to-set-ringtone-in-android-from-my-activity Kris On Mon, Apr 23, 2012 at 9:24 AM, baturanija1 jadrankobodiroga1...@gmail.com wrote: Hey people, is there any chanse to set ringtone that i implement in my activity.This song is not placed on SD ,so is it possible? send me some solutions or link if you have ..Thanks people and thans for sharing -- 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
Re: [android-developers] how to get the average speed with GPS android
@TreKing if u wont help in anything just back to your cave, trooll. El miércoles, 18 de abril de 2012 12:43:29 UTC-6, James Black escribió: Just get where you start, at time zero, and then you could just get the current location every several seconds. Determine the distance, there is a call for that, and speed is distance/time. You can just add up the distance to get an accurate total of how far the phone has gone. On Apr 18, 2012 2:30 PM, putzz12 renatoespinoza...@gmail.com wrote: hello,im doing a project and i need to know how to get the avg of the velocity when im running. for example if i run in the park or something i want to know the avg speed. if someone can help me will be soo good. thx. -- 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 El miércoles, 18 de abril de 2012 12:43:29 UTC-6, James Black escribió: Just get where you start, at time zero, and then you could just get the current location every several seconds. Determine the distance, there is a call for that, and speed is distance/time. You can just add up the distance to get an accurate total of how far the phone has gone. On Apr 18, 2012 2:30 PM, putzz12 renatoespinoza...@gmail.com wrote: hello,im doing a project and i need to know how to get the avg of the velocity when im running. for example if i run in the park or something i want to know the avg speed. if someone can help me will be soo good. thx. -- 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] Is there a way to programmatically enable call forwarding in Android on GSM phones?
I'd like to be able to have my app enable No Answer and Busy call forwarding on GSM Android phones that support it. I don't mean dialing the * or # codes, I mean changint the call forwarding settings on the phone itself, just like Goolge Voice is able to do. Or, if changing that setting isn't possible, I would at least like to be able to open the settings screen where those forwarding settings cn be changes -- 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 get the average speed with GPS android
@TreKing, if u wont help in anything just back to your cave Troll. @Panam im doing something like RunKeeper App. -- 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] Sending POST data in Android to a database?
Hey guys, I want to send android post data(with a servlet) to a database(in fact google app engines db) How can I submit data from the phone to the database(for example: locationbased data...)? greetings and thx 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
Re: [android-developers] Sending POST data in Android to a database?
Have you Googled it? You will end up using HttpClient though. On Apr 23, 2012 1:02 PM, Marcus Maximus marcus.pres...@gmail.com wrote: Hey guys, I want to send android post data(with a servlet) to a database(in fact google app engines db) How can I submit data from the phone to the database(for example: locationbased data...)? greetings and thx 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 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] Listview show funny stuff
Add a toString() method in the Client class that returns the Name. On Fri, Apr 20, 2012 at 4:13 AM, Ricardo Rivera dist...@gmail.com wrote: I a listview connecto to a datbase and is showing in the list the value of the record for the app. Something like com.software.myapp.client.client@44abc0 com.software.myapp.client.client@44abc1 etc in the list I want to show only to show the Client Name Here is my Table scheme Client Id,Name,Addrs,Phone setContentView(R.layout.clientlist); clientds = new ClientDataSource(this); clientds.open(); ListClient values = clientds.getAllClients(); ArrayAdapterClient adapter = new ArrayAdapterClient(this, android.R.layout.simple_list_item_1, values); -- 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 -- YuviDroid Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget to quickly access your favorite apps and contacts!) http://android.yuvalsharon.net -- 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] Radio buttons in list - need only one selectable button
Hi, I have a listView to which I am adding a number of rows at run time. Each row has a radio button in it. I want only one radio button to be selected at one time, but currently they are all selectable. How can I achieve that? Thanks in advance Regards, Farhan -- 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] Radio buttons in list - need only one selectable button
Step #1: Use android.R.layout.simple_list_item_single_choice for your rows, or otherwise switch to CheckedTextView instead of RadioButton. Step #2: Use android:choiceMode=singleChoice. This sample project shows this approach the multipleChoice/android.R.layout.simple_list_item_multiple_choice scenario, but it could be trivially converted to single choice: https://github.com/commonsguy/cw-omnibus/tree/master/Selection/Checklist On Mon, Apr 23, 2012 at 2:08 PM, Farhan Tariq farhan@gmail.com wrote: Hi, I have a listView to which I am adding a number of rows at run time. Each row has a radio button in it. I want only one radio button to be selected at one time, but currently they are all selectable. How can I achieve that? Thanks in advance Regards, Farhan -- 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.6 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Application force closing after selecting it from the recent apps list after an application update
Use adb logcat, DDMS, or the DDMS perspective in Eclipse to examine LogCat and look at the stack trace associated with your crash. On Mon, Apr 23, 2012 at 3:00 PM, Dang Sananikone dang.sananik...@gmail.com wrote: Hi, I have encountered a bug whereby my application force closes after selecting it from the recent apps list after an application update. The steps to reproduce the bug are: * Start the application * Press Home (or Back) to exit the app * Update to a new revision of the application by updating from the Play Store * Select the app from the recent apps list The app does not crash if I select the app from the Home Launcher after updating it. I will admit that my understanding on what happens with the recent apps list upon app update is not clear. Any help on finding out what is happening would be appreciated. Some more information: * The activity at the time of pressing the Home Button has the following property: android:launchMode=singleTask * The activity that is started by the launcher (which is _not_ the same activity as the activity described above) uses the default launch mode. * I recently updated the device OS ICS (I'm not sure this has any relevance to the problem, but adding this for completeness). -- 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/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.6 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.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Set Ringtone
sorry..still did not solve my problem.any other suggestions where to start... -- 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] Hidden widgets in android plugin?
hi.. as a GWT user i've found out the plug in does display ALL the widgets available and now i see that this habit extends to the android plugin for example NumberPicker is usable, but is not in any of the pallet i see, so what other hidden widgets are there? (actually i'm looking to create a number roller like the timer only km). -- 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] Application force closing after selecting it from the recent apps list after an application update
Hi, sorry I should have elaborated a bit more. I have some code to catch exceptions when accessing my database at process initialisation, and this is where the app comes unstuck. At startup, a single worker thread is given the job of reading from the database. While this is happening a splash screen is shown and no activities (other than the splash screen activity) are active. After startup, there are no more database reads. There are database writes every now and then in the course of the process lifecycle, and these happen in the service onDestroy method. Anyway, yes, some more debugging is in order. -- 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 Ringtone
How did it not solve your problem? What did you try? Kris On Mon, Apr 23, 2012 at 3:13 PM, jadranko bodiroga jadrankobodiroga1...@gmail.com wrote: sorry..still did not solve my problem.any other suggestions where to start... -- 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: how to get the average speed with GPS android
1. Register a location listener for GPS 2. Request GPS location/dataset at 1s (for greatest accuarcy) interval 3. For each location update, retrieve the data element that contains the device speed 4. Use a moving average algorithm to calculate average speed. A reference design to maintain the moving average, variance and standard deviation of a measurement can be found in Knuth, The Art of Computer Programming, Vol. 2, 3rd edition On Apr 18, 11:30 am, putzz12 renatoespinoza...@gmail.com wrote: hello,im doing a project and i need to know how to get the avg of the velocity when im running. for example if i run in the park or something i want to know the avg speed. if someone can help me will be soo good. thx. -- 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] Application force closing after selecting it from the recent apps list after an application update
Oh dear, I see what's going on. After the app update, upon selecting the app through the recent apps list a new process is created, and the activity that was in the foreground when the Home button was pressed is started in the new process with a null savedInstanceState. My assumption was that in the case of an app update a new process would be started, but starting from the activity corresponding to the android.intent.category.LAUNCHER intent. It seems this is not in the case when using the recent apps list. On Monday, 23 April 2012 20:22:44 UTC+1, Dang Sananikone wrote: Hi, sorry I should have elaborated a bit more. I have some code to catch exceptions when accessing my database at process initialisation, and this is where the app comes unstuck. At startup, a single worker thread is given the job of reading from the database. While this is happening a splash screen is shown and no activities (other than the splash screen activity) are active. After startup, there are no more database reads. There are database writes every now and then in the course of the process lifecycle, and these happen in the service onDestroy method. Anyway, yes, some more debugging is in order. -- 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] Webview not using cache
I am having a problem with Webview in that it will not use the cache. I start my app up, load the HTML5 page, then back out of the page, enter airplane mode on the phone, then try to go to the web page again. It should be cached, but I get a message saying that the URL could not be retrieved. Here is my code pertaining to this. Am I doing something wrong? ? ? ? webview.getSettings().setJavaScriptEnabled(true); webview.addJavascriptInterface(new JavascriptBinder(this), MyJavascriptBinder); webview.setVerticalScrollBarEnabled(false); webview.setHorizontalScrollBarEnabled(false); webview.getSettings().setBuiltInZoomControls(true); webview.getSettings().setDomStorageEnabled(true); webview.getSettings().setBuiltInZoomControls(true); webview.getSettings().setSupportZoom(true); webview.getSettings().setLoadWithOverviewMode(true); webview.getSettings().setUseWideViewPort(true); webview.getSettings().setAppCacheMaxSize(1024*1024*8); webview.getSettings().setAppCachePath(/data/data/ com.html5webappcache.android/cache); webview.getSettings().setAllowFileAccess(true); webview.getSettings().setAppCacheEnabled(true); webview.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT); -- 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 BASED VEHICLE TRACKING ISSUES on a remote Server
Do you really expect us to wade through the code in all those files to solve your problem for you? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 23, 2012 at 2:24 AM, deb-account theedge...@free.fr wrote: On 16/04/12 02:20, JOHN BOSCO BAHUNGIREHE wrote: Hi friends; Have got a problem in my code and some how confused of how t include some of the features in the project. The project is about vehicle tracking using android,when I try to test the attached code it runs with no error but the does not update the location to my current position on the map but instead to either my initialized coordinates of (0.0, 0.0) or if I send the Fake coordinates using the ddms it takes me to that position on the map without updating to my current location. Did you try to run it in debug mode ? -- 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.comandroid-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=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 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 use data from xls file in content provider(SQLite)?
am kinda new to android...working on ERP applicationwanna knw d difference btwn customarrayadapter and customadapter Don't hijack someone else's question to ask your own... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Apr 22, 2012 at 10:13 PM, Nimish John nimishj...@gmail.com wrote: am kinda new to android...working on ERP applicationwanna knw d difference btwn customarrayadapter and customadapter -- 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 use data from xls file in content provider(SQLite)?
Hi any suggestion, want to do read xls file select only selected cells and convert it into table. e.g : my xls. file contains Name,Addr,Phone Number, etc.. I want only two cells Name, and Number and make that to contact list ! http://catb.org/esr/faqs/smart-questions.html Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Mon, Apr 23, 2012 at 4:00 PM, Justin Anderson magouyaw...@gmail.comwrote: am kinda new to android...working on ERP applicationwanna knw d difference btwn customarrayadapter and customadapter Don't hijack someone else's question to ask your own... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Apr 22, 2012 at 10:13 PM, Nimish John nimishj...@gmail.comwrote: am kinda new to android...working on ERP applicationwanna knw d difference btwn customarrayadapter and customadapter -- 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] RadioGroup OnClickListener
So how come that RadioGroup class has a setOnClickListener but not a getOnClickListener? It's not just RadioGroup... it is all Views... What can I use to go around this problem? Keep a member variable around for use when you need it... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Sun, Apr 15, 2012 at 11:12 AM, Mohamed Sobhy m.sobhy.9...@gmail.comwrote: So how come that RadioGroup class has a setOnClickListener but not a getOnClickListener? What can I use to go around this problem? I'm using Android 2.3 API. Any help or comments will be appreciated. -- 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
Re: [android-developers] Seeing user information
It is my understanding that for an app which requires a fee to be downloaded (so not for free apps), the developer can see each buyer's detailed information, which among other things, contain their email address. That is correct... Is this true? Yes Only in case of apps which require purchase, can i see the email address of the users who buy my app? Yes, because that information is available through Google Wallet... Only paid apps go through Google Wallet Can i contact them via those email addresses? (no, i don't want to send spam or things like that) Among that information is an Email Marketing field... if it says yes then you certainly can contact them. If it says no (and I've never seen it say anything but) then you'd better not... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Apr 13, 2012 at 4:22 AM, Andrei Bogdan m.andrei.bog...@gmail.comwrote: Good day to all, It is my understanding that for an app which requires a fee to be downloaded (so not for free apps), the developer can see each buyer's detailed information, which among other things, contain their email address. Is this true? Only in case of apps which require purchase, can i see the email address of the users who buy my app? Can i contact them via those email addresses? (no, i don't want to send spam or things like that) Thank you, Andrei Bogdan -- 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
Re: [android-developers] android source code build error
There is a google group specifically for building the android source... I would try asking there. This group is for building apps with the Android SDK. Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Apr 17, 2012 at 8:02 AM, Mao maohong...@gmail.com wrote: Install: out/target/product/generic/system/usr/keychars/qwerty.kcm.bin Install: out/target/product/generic/system/usr/keychars/ qwerty2.kcm.bin Install: out/target/product/generic/system/usr/keychars/ tuttle2.kcm.bin Copy: out/target/product/generic/system/etc/apns-conf.xml host Executable: accRuntimeTest (out/host/linux-x86/obj/EXECUTABLES/ accRuntimeTest_intermediates/accRuntimeTest) host Executable: gtest-typed-test2_test (out/host/linux-x86/obj/ EXECUTABLES/gtest-typed-test2_test_intermediates/gtest-typed- test2_test) host Executable: gtest-typed-test_test (out/host/linux-x86/obj/ EXECUTABLES/gtest-typed-test_test_intermediates/gtest-typed-test_test) host Executable: gtest_pred_impl_unittest (out/host/linux-x86/obj/ EXECUTABLES/gtest_pred_impl_unittest_intermediates/ gtest_pred_impl_unittest) /usr/bin/ld: cannot find -ld collect2: ld returned 1 exit status make: *** [out/host/linux-x86/obj/EXECUTABLES/ accRuntimeTest_intermediates/accRuntimeTest] Error 1 make: *** Waiting for unfinished jobs environment: Ubuntu11.10 , source tag: android-2.1_r2; Any help would be greatly appreciated!! -- 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
Re: [android-developers] Totally transparent, always-on-top, clickable, dialog during incoming / outgoing calls
Set the theme for your activity as follows: *android*:*theme*=@*android*:style/*Theme*.*Translucent* Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware 2012/4/18 José Pacheco jose.pach...@gmail.com Hello all, I am new to Android. I am trying to display an always-on-top clickable dialog during incoming / outgoing calls. I am able to display a dialog, on top of the incoming / outgoing screens, but when the call changes state the non-dialog portion of the screen is not updated. For instance, when call passes from Dialing to Answered, my background keeps showing the Dialing image. How can I have a totally transparent activity, that when the back activity changes its screen, I see what's going on, like it happens when I display a Toast? Many thanks in advance for your help. Jose Pacheco -- 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] ListView addHeader(View) problem control image enhancement
Seems so simple...create a textview, prior to adding the arrayAdapter, apply the header as myListVew.addHeader(t); then (or before) set the text for the TextView (t) with t.setText(aString). (I believe the actual variable's name was flashCurrentMode). Here's basically what I did (I originally deleted the code when it failed...not good, so I'm recreating it in more generic code). Textview t; // defined globally Later, while setting up the ListViews t = new TextView(this); String s = parameters.getFlashMode(); // Log.i verifies that s != null t.setText(s); mbigListView.addHeader(t); // attach to array adapter here That works. The first time I make that ListView visible, it has a header showing the current flash mode, which is exactly what I wanted it to do. The problem comes when I CHANGE the flash mode, and, from within the onItemClick for mbigListView, do (almost) the same as earlier: First, to set s, I tried both of the following (after setting the new parameters): String s = parameters.getFlashMode(); String s = flashModes(idx); Either way, Log.i confirms, s is torch (the new flash mode). Then, continuing with setting the new header, t.setText(s); // THIS causes a Null Pointer Exception//Force Close mbigListView.addHeader(t); // we never get this far Why would setting the text of the TextView the second time cause a force close (caused by a null pointer exception, where the string being assigned was not null)? I know I'm missing something...but what? It seems amazingly simple, but something obviously isn't as simple as it appears from the dev guide. Thanks, --jim -- THE SCORE: ME: 2 CANCER: 0 73 DE N5IAL (/4)| DMR: So fsck was originally called spooky1...@gmail.com| something else. Running FreeBSD 7.0 | Q: What was it called? ICBM / Hurricane: | DMR: Well, the second letter was different. 30.44406N 86.59909W |-- Dennis M. Ritchie, Usenix, June 1998. Android Apps Listing at http://www.jstrack.org/barcodes.html -- 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] Registration ID
Hi all, I am interested in implementing C2DM for the push notification feature in my application. However, when I read the docs https://developers.google.com/android/c2dm/#lifecycle It states that: Note that Google may periodically refresh the registration ID, so you should design your application with the understanding that the REGISTRATION Intent may be called multiple times. Your application needs to be able to respond accordingly How about if the case is the device has no connection when Google refresh the registration ID? Of course the REGISTRATION Intent will not be called. Does Google try to refresh again the registration ID? If not, how can the device know that the Google refresh the registration ID? Thanks, Rendy -- 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] Persistent build error
Hello everybody. I'm trying to build a project on Netbeans, but I always get the same build error: *C:\Projects\AndroidProject\nbproject\build-impl.xml:338: Execute failed: * *java.io.IOException: Cannot run program ${platforms.Android_2.2.aapt} (in directory C:\ Projects\AndroidProject ): CreateProcess error=2, O sistema não pode encontrar o arquivo especificado* * at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)* * at java.lang.Runtime.exec(Runtime.java:615)* * at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862) * * at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481) ...* *(And the stack goes on...)* The thing is: I've been developing for Android for several months, and have never seen such error. The old Android projects were compiling normally, but since I checked this one out from SVN, any other Android project give me the same error. I tried to change the Target Name (Properties General) from Android 2.2 to Android 2.1, without success. I'm running on Windows 7, 64 bit, and latest versions of Netbeans, SDK, JDK, etc (since I reinstalled it all again trying to fix it). *ANY* ideas are highly appreciated! :) Thanks in advance, Luiz Santos -- 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] Touch Screen problem in Blaze
Dear All, I am new to android and working on touch screen porting on blaze board. The problem I am facing is, When the kernel is up I can seen touch screen events, and as soon as android boots the touch events are not seen. Then I analyzed and got to know that the android is disabling the touch screen module. So I insmod the touch screen module again after the android boots up and able to see touch events. So I want to know what is happening to touch screen module when android boots and how can I rectify this problem? Kindly help. Thanks and Regards, Mamatha K -- 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