[android-developers] update spinner in tab
hi i am having two tabs tab1 and tab2. the tab2 spinner dropdown list should get update when i click on tab1 button. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Strange service unbind behavior
I've created a REALLY simple service and a really simple client. But, I see some strange behavior. After I call unbindService and the service's onDestroy method is called (as evidenced by a log message or toast), I can still query the service. 1. When the service and client are bound, I can't see the service in the Running Services panel This has to be something stupid that I'm not seeing. Thanks in advance. public class MyWeatherService extends Service { int count = 1; Messenger messengerFromClient = null; IncomingHandler incomingHandler = new IncomingHandler(); Messenger messengerToClient = new Messenger( incomingHandler); class IncomingHandler extends Handler { @Override public void handleMessage(Message msg) { messengerFromClient = msg.replyTo; Bundle reply = new Bundle(); reply.putString(weather, It's dark at night. + Integer.toString(count++)); Message replyMessage = Message.obtain(); replyMessage.setData(reply); try { messengerFromClient.send(replyMessage); } catch (RemoteException e) { e.printStackTrace(); } } } @Override public IBinder onBind(Intent intent) { Toast.makeText(this, R.string.service_bound, Toast.LENGTH_SHORT).show(); return messengerToClient.getBinder(); } @Override public void onDestroy() { incomingHandler = null; Toast.makeText(this, R.string.service_destroyed, Toast.LENGTH_SHORT).show(); } } public class ServiceConsumerActivity extends Activity implements OnClickListener { Messenger messengerToService = null; Messenger messengerFromService = new Messenger( new IncomingHandler()); ServiceConnection connection = new MyServiceConnection(); boolean isBound; void bind() { Intent intent = new Intent(); intent.setAction(com.allmycode.WEATHER); isBound = bindService(intent, connection, Context.BIND_AUTO_CREATE); } void unbind() { if (isBound) { System.out.println(About to unbind); unbindService(connection); isBound = false; } } public void queryService() { Bundle bundle = new Bundle(); bundle.putString(location, Philadelpha); Message message = Message.obtain(); message.replyTo = messengerFromService; message.setData(bundle); try { messengerToService.send(message); } catch (RemoteException e) { e.printStackTrace(); } } class IncomingHandler extends Handler { @Override public void handleMessage(Message msg) { Bundle bundle = msg.getData(); textView1.setText(bundle.getString(weather)); } } class MyServiceConnection implements ServiceConnection { public void onServiceConnected( ComponentName className, IBinder service) { messengerToService = new Messenger(service); } public void onServiceDisconnected(ComponentName n) { messengerToService = null; Toast.makeText(ServiceConsumerActivity.this, R.string.service_crashed, Toast.LENGTH_SHORT) .show(); } } // //THIS STUFF IS BOILERPLATE: public static TextView textView1; Button bindButton, queryButton, unbindButton; EditText locationText; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); bindButton = (Button) findViewById(R.id.buttonBind); bindButton.setOnClickListener(this); locationText = (EditText) findViewById(R.id.editText1); queryButton = (Button) findViewById(R.id.buttonQuery); queryButton.setOnClickListener(this); textView1 = (TextView) findViewById(R.id.textView1); unbindButton = (Button) findViewById(R.id.buttonUnbind); unbindButton.setOnClickListener(this); } @Override public void onClick(View view) { if (view == bindButton) { bind(); } else if (view == queryButton) { queryService(); } else if (view == unbindButton) { unbind(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 make icon of app on desktop? Problems with WebView
Hi, guys! In my app I have one activity with WebView. When I push Home button and then click on icon my app -- web page do not reload - it is good. But in code I create icon manually: private void createIcon(int iconId){ final Intent shortcutIntent = new Intent(Intent.ACTION_MAIN); ComponentName name = new ComponentName(getPackageName(), .FullScreenBrowserActivity); shortcutIntent.setComponent(name); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Intent addIntent = new Intent(); addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, Fulscreen Browser); addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, Intent.ShortcutIconResource.fromContext(this, iconId)); addIntent.setAction(com.android.launcher.action.INSTALL_SHORTCUT); this.sendBroadcast(addIntent); } When I click this icon - app starts new copy of themselfs and webpage starts loading. How to make new icon on desktop manual(after install) and when click on icon - webpage in WebView do no reloading? 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: Detect a NFC tag removal
Dear all, I required ADB drivers for Samsung Google Nexus S mobile. Please provide the link or send the attachment. thanks suneel On Tue, Aug 2, 2011 at 11:01 PM, JIG ji.gonzalezv...@gmail.com wrote: Thanks Android user i used that code and it was work! On Aug 2, 11:46 am, android user android.fa...@googlemail.com wrote: Hello David, Here is some code try { tag.connect(); if(tag.isConnected() tag.isWritable()){ tag.writeNdefMessage(message); tag.close(); } } catch (IOException e) { // TODO Auto-generated catch block } catch (FormatException e) { // TODO Auto-generated catch block } This code works for writing. I also have a problem how to detect a tag is lost. Although this code works but it can not stop on catch statment and therefore i can not implement a code if the tag is lost. john On Aug 1, 11:47 pm, David P d.refi...@gmail.com wrote: Hey Nick, Could you please provide a code example of how to signal an event when a tag is lost? Thanks in advance. Best Regards, David On Jun 9, 10:18 am, Nick Pelly npe...@google.com wrote: As per other responses, you currently need to poll isConnected() on a connected technology object. This is not ideal, and we are considering an intent or callback in a future API version. Cheers, Nick On Wed, Jun 1, 2011 at 8:47 PM, Dean Brotzel dean.brot...@gmail.com wrote: Is it possible to receive a message/intent from Android for when a tag is removed from the smart phone's influence (much like when a tag is brought into to the smart phone's influence) ? I noticed from logcat the following log message: D/NativeNfcTag( 3625): Tag lost, restarting polling loop, when I remove theNFCtag. Is there a programmatic way to catch this event? I've looked through the API and don't anything obvious. I'm using the Nexus S, android 2.3.4. I hope I don't have to implement my own detection/presence polling. Thanks, Dean -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Socket Programming
Hi, I have a task that need to make a udp Socket connection to find the printer device which connected in the socket can any one help how to start. Thanks in Advance!! -- Regards, Perumal.N -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AudioTrack: changing audio while playing
You probably just need to google for libraries that process PCM data to apply effects. What you're asking is not specific to Android, since AudioTrack and AudioRecord just deal with raw PCM data. Doug On Aug 2, 6:17 am, nicoletto nicobales...@gmail.com wrote: Hi there, I've spent days already trying to sort out this topic. Basically I'm recording audio in PCM and when the user clicks on Play I want to play the recorded audio but applying some effect. Basically, prior to do track.write(data, 0, maxlength); I want to apply some kind of transformation to the data array which is going to be pushed to the Audio h/w. Do you know if there's any example of any kind of sound effect applied in this context? Do you know any easy to use C/C++ library to be integrated using NDK (if he previous question doesn't have any answer)?? Thank you for your help. Any answer will be welcomed.. even if it's I don't know :) Nico -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android -- the forgotten real fragmentation
There is a lot of FUD about Android fragmenation. The vast majority of the issue mentioned can be dealt with with properly following the guidelines, but there is one issue that I don't know how to deal with: This forgotten issue is the SQLite versioning problem. For example, if the user moves to a phone with an older version of Android, I can support that older version of the platform just fine, but the user is Sh*t-out-of-Luck trying to move their database over and they cannot open their newer SQLite database on an older version of SQLite. What makes it even worse is that Cyogenmod uses a substantially newer version of SQLite, so when the user upgrades their crappy old phone to the shiny new model without Cyogenmod, they can no longer access their data. This is not a theoratical problem, I've had to deal with this issue a number of times. There is no solution other than: a) Package your own well-known SQLite version with your app. Is this even possible? b) Provide a custom data migration mechanism that exports your SQLite data and then imports it. While this might be trivial for a small app, it's a nighmare for an app like mine with a very complex database. Has anybody come across this problem and have any good ideas for dealing with 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 know unique identifier/signature of SD/memory card in Android?
Looking for the way to find the unique identifier/signature of and SD/ memory card (generally a unique string of 11 characters has been assigned to each memory card) in Android programmatically. Please help me by giving some tips/suggestions to get the same. Thanks, Durg. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] JSONObject and JSONArray retrieve data
If anyone is having problems getting JSON contents back (it does work but needs careful coding) I have blogged it: http://rodsit.wordpress.com/2011/08/03/jsonarray-and-jsonobject-android/ To all those stuck like I was, hope it helps. :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 web data into TextViews?
cool endyk, thanks. On Jul 28, 8:26 am, endyk nit...@gmail.com wrote: hello Droid, you can use this method to get return string from server private InputStream OpenHttpConnection(String urlString) throws IOException { InputStream in = null; int response = -1; URL url = new URL(urlString); URLConnection conn = url.openConnection(); if (!(conn instanceof HttpURLConnection)) throw new IOException(Not an HTTP connection); try{ HttpURLConnection httpConn = (HttpURLConnection) conn; httpConn.setAllowUserInteraction(false); httpConn.setInstanceFollowRedirects(true); httpConn.setRequestMethod(GET); httpConn.connect(); response = httpConn.getResponseCode(); if (response == HttpURLConnection.HTTP_OK) { in = httpConn.getInputStream(); } } catch (Exception ex) { throw new IOException(Error connecting); } return in; } private String DownloadText(String URL) { int BUFFER_SIZE = 2000; InputStream in = null; try { in = OpenHttpConnection(URL); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); return ; } InputStreamReader isr = new InputStreamReader(in); int charRead; String str = ; char[] inputBuffer = new char[BUFFER_SIZE]; try { while ((charRead = isr.read(inputBuffer))0) { //---convert the chars to a String--- String readString = String.copyValueOf(inputBuffer, 0, charRead); str += readString; inputBuffer = new char[BUFFER_SIZE]; } in.close(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); return ; } return str; } try call this function in your main code, where str is return string from server String str = DownloadText(http://kabarku.com/androidwww/endyk- test.php); textView.setText(str); extend your self that code, happy coding :) On Jul 27, 7:30 pm, Droid rod...@gmail.com wrote: I am looking for an example of how to get lines of text from a web server query into simple TextViews - NOT WebViews. I have found complex examples with all types of extras that make it horrifically difficult to follow. This example is way too hard for me:http://www.ibm.com/developerworks/xml/library/x-dataAndroid/ Can some kind person point me at a straightforward example. I think I need an Async Task or some type of web fetch thread involved. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ocr implementation with android
We have open source solution which is pure java and used in android applications: http://sourceforge.net/projects/javaocr/ One published example: https://market.android.com/details?id=de.pribluda.android.ocrcall Project includes android demo and is actively developed - contributions welcome On Jul 29, 11:34 am, barun barunala...@gmail.com wrote: I want to implement the optical character recognition program for Android phone. if any body knows something please help me. Thanks in Advance. Barun Kumar Nirala -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use Camera setPreviewCallback listener?
Thanks, The point is how to capture the camera view not how to transfer the camera view. Regards TM -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Converting to xlarge layouts
I guess I'll need to view the app on a proper tablet to really see what it looks like. On the subject of developing for Tablets... Am I correct in assuming that if I want an app that is developed for Tablets using Fragments etc, that this has to be a separate app to one designed for standard devices? If so, how does this work for the market? If my client says, we want our new app to fit standard devices but also have a specific version for tablets, would this mean creating two apps with two market uploads? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Converting to xlarge layouts
Hello Neilz, For some reason, I will thought that you can create different main.xml's for different devices and locales, so you would have the same application logic but different UI layouts. -Original Message- From: Neilz neilhorn...@gmail.com Sender: android-developers@googlegroups.com Date: Wed, 3 Aug 2011 01:46:24 To: Android Developersandroid-developers@googlegroups.com Reply-To: android-developers@googlegroups.com Subject: [android-developers] Re: Converting to xlarge layouts I guess I'll need to view the app on a proper tablet to really see what it looks like. On the subject of developing for Tablets... Am I correct in assuming that if I want an app that is developed for Tablets using Fragments etc, that this has to be a separate app to one designed for standard devices? If so, how does this work for the market? If my client says, we want our new app to fit standard devices but also have a specific version for tablets, would this mean creating two apps with two market uploads? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maths App
Hi An app which throws out mathematics problem to user may be useful to all variety of students but the problem in all maths problem you need some rough space like a scribbling pad to reach to a solution. I figured out FingerPaint may be a solution but that limits space but scrolling cannot be add to it. gaurav On Wed, Aug 3, 2011 at 6:01 AM, TreKing treking...@gmail.com wrote: On Tue, Aug 2, 2011 at 9:00 AM, Gaurav Agarwal gaurav.aga...@gmail.comwrote: Please suggest. Please explain. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Many thanks and regards Gaurav Agarwal Founder Wissenways Learnings Pvt. Ltd. Ahmedabad Mobile:+91-99249 60088 Web: www.wissenways.com http://www.wissenways.com * * *Disclaimer:* *The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to gaurav.agar...@wissenways.com and then delete it from your system. We are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.** * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Converting to xlarge layouts
That's what I had hoped - but I'm yet to find an example that codes for both types? On Aug 3, 9:50 am, b.ampw...@gmail.com wrote: Hello Neilz, For some reason, I will thought that you can create different main.xml's for different devices and locales, so you would have the same application logic but different UI layouts. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: DategramSocket.receive returns after a long time
Thank you for the reply. so is it a device specific bug? I can reproduce this problem on many kinds Android phones, like HTC NextusOne, HTC Desire Z, HTC Legend. However, I don't have such problem with HTC Sensation and Samsang. I did a roughly search and didn't see any report on the similar problem as this. On Jul 28, 11:19 am, Indicator Veritatis mej1...@yahoo.com wrote: Have any relevant network bugs been reported for the device you are using? I have never seen such a failure on my G2. On Jul 27, 12:19 am, Heidi Zhou Nolan heidi.zhou.no...@qnective.com wrote: Yes, the application can receive the data well when the browser is not running. I wonder if I have to use native code for this. Now, I am using Java's DatagramSocketclass. On Jul 26, 10:11 pm, Indicator Veritatis mej1...@yahoo.com wrote: Does your UDP receive code work fine if the browser is not running? On Jul 26, 4:52 am, Heidi Zhou Nolan heidi.zhou.no...@qnective.com wrote: I am implementing a UDP application on Android. The problem I have is that, on the sender side of the UDP connection, the sender sends around 2 packets every 40 milliseconds; the receiver side of the UDP connection uses java.net.DatagramSocket.receive(...) function to receive data over the network in a while loop. The receiver receives 2 packets roughly every 40 milliseconds. While our Android application is running, the internet browser is launched and start downloading/retrieving webpage. The receive(...) function won't return any data until the browser stop its downloading. I did a measurement that the receive(...) function returns data after almost 700 milliseconds. It seems that all the packets to our application are hold until the browser is done with its network activity. I am looking for the solution to still receive data over the network even there is other application sends or receive data over network at the same time. It would be better if the solution can make our application have higher priority in using the network. Thank you in advance for your help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] List out all the available widget ui components name dynamically.
Hi All, I want to display, what are the available components in a list view dynamically from the package android.widget for android device. That means i want to list out all the class names available in android.widget package at runtime. Is there any API available to read all the android.widget at run time? Otherwise how can i achieve this? Please help me on this. Thanks in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] htc wildfire S oem adb usb driver
Hi, WHERE can i find and how can i install the adb usb driver for the HTC wildfire S phone, so that i can use it as a developer device? I searched the htc-website, but couldn't find any adb drivers :/ greets -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)
thx! but where can I find envsetup.sh? it's not on my android's ndk nor sdk folders and can't find it on the android openssl package... :| On 3 Ago, 06:41, Mike darksk...@gmail.com wrote: You get them from envsetup. Sh -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AlarmManager and Service
hello friends, I am new in android . I want to design a Wake-up Alarm . In this i design page in that we can set Alarm time and date. all data is sotred in database. but when i set calender to particular date it wont work. Please help me i don't understand where i am going wrong. this is my Activity package com.example.android; import java.util.Calendar; import android.app.Activity; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Intent; import android.os.Bundle; import android.os.SystemClock; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.Toast; public class AlarmServiceActivity extends Activity { Toast mToast; String full=; PendingIntent pendingIntent; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent myIntent = new Intent(AlarmServiceActivity.this, MyAlarmService.class); pendingIntent = PendingIntent.getBroadcast(AlarmServiceActivity.this, 0, myIntent, 0); setContentView(R.layout.main); Button start=(Button)findViewById(R.id.start); start.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { startAlarm(); } }); } protected void startAlarm() { AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE); Calendar calendar = Calendar.getInstance(); int month=calendar.get(Calendar.MONTH); long firstTime =System.currentTimeMillis(); int month1=month+1; int date=calendar.get(Calendar.DATE); int year=calendar.get(Calendar.YEAR); full=month1+/+date+/+year; int h=calendar.get(Calendar.HOUR_OF_DAY); int m=calendar.get(Calendar.MINUTE); calendar.set(Calendar.MONTH,8); calendar.set(Calendar.DATE, 1); calendar.set(Calendar.YEAR, 2011); calendar.set(Calendar.HOUR_OF_DAY, 18); calendar.set(Calendar.MINUTE,18); calendar.set(Calendar.SECOND, 0); alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, calendar.getTimeInMillis(), SystemClock.elapsedRealtime(), pendingIntent); // Tell the user about what we did. if (mToast != null) { mToast.cancel(); } mToast = Toast.makeText(AlarmServiceActivity.this, repeating Alarm Schedule, Toast.LENGTH_LONG); mToast.show(); } } this is Receiver . I declared receiver in AndroidManifest.xml package com.example.android; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class MyAlarmService extends BroadcastReceiver { String full=; public static final String ACTION_REFRESH_ALERT_ALARM = com.example.android.ACTION_REFRESH_ALERT_ALARM; @Override public void onReceive(Context cxt, Intent intent) { Intent startIntent = new Intent(cxt, AlarmServiceActivity.class); cxt.startService(startIntent); Toast.makeText(cxt, Start() + full, Toast.LENGTH_LONG).show(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: App Widget stops responding to input after all instances are removed and another added
I'm not sure if I made a mistake when I posted this, but it's currently only receiving .BATTERY_CHANGED events despite being registered for these events: - action android:name=android.appwidget.action.APPWIDGET_UPDATE / action android:name=android.bluetooth.adapter.action.STATE_CHANGED / action android:name=android.intent.action.AIRPLANE_MODE / action android:name=android.net.wifi.WIFI_STATE_CHANGED / action android:name=android.media.RINGER_MODE_CHANGED / action android:name=sirocco.widget.NEW_WIDGET_INSTANCE_ADDED / action android:name=android.intent.action.BATTERY_CHANGED / I normally send broadcast message (sirocco.widget.NEW_WIDGET_INSTANCE_ADDED) from the configuration activity when adding a new widget, but this is not received after APPWIDGET_DISABLED is received I don't understand why only 1 type of broadcast message is received after all instances are removed (APPWIDGET_DISABLED then received) and a new instance is added. I have double checked and the matchButtonToAction code is definitely called. Could it be something to do with the context that is passed in? Any pointers would be appreciated. Thanks for your help All the best, Ash -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Openssl for Android (libssl.so and libcrypto.so)
On Wed, Aug 3, 2011 at 6:57 PM, rickrvo rick...@hotmail.com wrote: thx! but where can I find envsetup.sh? it's not on my android's ndk nor sdk folders and can't find it on the android openssl package... :| This is out of the scope of this list. Try asking on android-building or android-porting. BTW, envsetup.sh, m, and mm (shell functions) come from the Android open source project (ASOP), they are part of the build environment. You may need to get this to compile your library. Or change your Makefiles, etc. to get it to compile with just the NDK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- the forgotten real fragmentation
On Wed, Aug 3, 2011 at 3:53 PM, Zsolt Vasvari zvasv...@gmail.com wrote: For example, if the user moves to a phone with an older version of Android, I can support that older version of the platform just fine, but the user is Sh*t-out-of-Luck trying to move their database over and they cannot open their newer SQLite database on an older version of SQLite. What makes it even worse is that Cyogenmod uses a substantially newer version of SQLite, so when the user upgrades their crappy old phone to the shiny new model without Cyogenmod, they can no longer access their data. You generally need to wipe the data partition when changing ROM's (especially downgrading), so that will delete the databases as well, no? Never had problems with Cyanogenmod actually. Plus once you go CM, you never go back :) This is not a theoratical problem, I've had to deal with this issue a number of times. There is no solution other than: a) Package your own well-known SQLite version with your app. Is this even possible? Since SQLDatabse and friends are part of the framework, I don't think you can get them to use a native binary you bundle. Unless you are willing to use your own DB classes, I don't think this is doable. b) Provide a custom data migration mechanism that exports your SQLite data and then imports it. While this might be trivial for a small app, it's a nighmare for an app like mine with a very complex database. You could use the cloud backup thing. That should restore the data after users wipe and reinstalls. I have never used it and it doesn't work on pre-2.2 (IIRC), but it looks like your best shot. Still not trivial for a complex database though. Has anybody come across this problem and have any good ideas for dealing with this? The only major trouble with SQLite I had is a buggy 2.3.3 version that tries to open a read-only database using WAL, which doesn't really work. What percent of your users downgrade firmware regularly? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ocr implementation with android
Hi Nikolay, Do you have plans to sell the ABBYY Mobile OCR Engine via the Android Market as part of a light-weight wrapper app? I have no plans to use the ABBYY Mobile OCR Engine commercially, but would be interested in launching an OCR app based on the ABBYY Mobile OCR Engine from within my own (free) app for those who have bought and installed this hypothetical ABBYY OCR wrapper app or similar. I already do this with the ZXing barcode reader and Google Goggles. I noticed that there is an ABBYY business card reader on the Android Market, just not a regular generic OCR app? Thanks, Peter Meijer The vOICe for Android http://www.seeingwithsound.com/android.htm On Aug 3, 7:57 am, Nikolay nikolay.khlebin...@gmail.com wrote: Hello Barun, My name is Nikolay Khlebinskiy, I work @ ABBYY. If you are planning commercial usage of your software, you may want to look at our ABBYY Mobile OCR Engine (http://www.abbyy.com/mobileocr/). It supports Android OS and it’s free to try. Feel free to contact me if you have any questions. Best regards, Nikolay. On Jul 29, 1:34 pm, barun barunala...@gmail.com wrote: I want to implement the optical character recognition program for Android phone. if any body knows something please help me. Thanks in Advance. Barun Kumar Nirala -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- the forgotten real fragmentation
On Wed, Aug 3, 2011 at 2:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote: For example, if the user moves to a phone with an older version of Android, I can support that older version of the platform just fine, but the user is Sh*t-out-of-Luck trying to move their database over and they cannot open their newer SQLite database on an older version of SQLite. Got any examples? AFAIK, the SQLite file format has not changed in some years. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 -- the forgotten real fragmentation
On Wed, Aug 3, 2011 at 6:53 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 3, 2011 at 2:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote: For example, if the user moves to a phone with an older version of Android, I can support that older version of the platform just fine, but the user is Sh*t-out-of-Luck trying to move their database over and they cannot open their newer SQLite database on an older version of SQLite. Got any examples? AFAIK, the SQLite file format has not changed in some years. http://www.sqlite.org/formatchng.html According to the SQLite folks, there hasn't been an on-disk file format change since 2006. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android binary disassembling and debugging protection
Hi, let's assume I would like to protect the Android binary against disassembling or byte code debugging - are there any solutions for that available on market for both java and native C/C++ code? Thanks a lot STeN -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Scaling widget on Android (dp, px, screen size)
Hello everybody, what is the best way for controlling the size of widget on Android? Look on following table: • On 3.6-4.0 inch screen (smartphone) with 480x800px the dpi is about 240dpi • On 4.3 inch screen (smartphone) with 540x960px the dpi is about 270dpi • On 7 inch screen (tablet) with 480x800px the dpi is about 130dpi • On 7 inch screen (tablet) with 600x1024px the dpi is about 170dpi • On 8.9 inch screen (tablet) with 1280x800/768px the dpi is about 170dpi • On 10.1 inch screen (tablet) with 1280x800px the dpi is about 150dpi So in general smartphones comes with much higher dpi. Now if I create a control with 100px width it will be good on low dpi displays but bad on high, where the control will be too small. If I create the same control with 100dp it will be opposite – on high resolution displays it will scale to e.g. 150 px, but on low dpi screens (tablets) it will be still 100px or smaller is the density falls below 160dpi. So how I should make a control that on 4inch display occupy 1inch on 7inch display occupy 1.5inch and on the 10.1inch display occupy 1inches? In other words – bigger screen size, the bigger is the control, but without considering the resolution. But is that in fact a good approach? Regards, SteN -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Live stream to Android from ipcamera over RTSP
Hi, I am creating an application for live streaming to Android.I have an ipcamera which streams over RTP/RTSP in H.263 format. How can i live stream from this camera to my applications MediaPlayer. Anyone having any ideas on this. I am new to live streaming.Please help. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application not found at android market on Samsung galaxy mini
Hi All, The below application is not found at Android Market on Samsung galaxy Mini.Was able to download on other Samsung galaxy phones. goog_1544198104*RAKBANK mobile bankinghttps://market.android.com/details?id=com.rakfeature=search_result * Check the device spec at below link Samsung galaxy minihttp://www.samsung.com/uk/support/detail/supportPrdDetail.do?menu=SP01prd_mdl_cd=GT-S5570EGAMETsrchword=GT-S5570 I have declared the following in app manifest file.Application must support the android OS version 1.5. uses-sdk android:minSdkVersion=3 / supports-screens android:resizeable=true android:smallScreens=true android:normalScreens=true android:largeScreens=true android:anyDensity=true / Just not able to understand the reason why it's not visible on Android Market for Samsung Galaxy mini phone. Need a solution very urgently. Warm Regards, Sudeep -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Live stream to Android from ipcamera over RTSP
Have a look at LaunchRTSP in the Android Market. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android binary disassembling and debugging protection
Do you want the gentle answer or the brutal one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] close cursor
hi How to close cursor in following method? where i have to add cur.close()? Cursor getData() { SQLiteDatabase sdb=this.getWritableDatabase(); Cursor cur = sdb.rawQuery(select * from + manpowerLUTable,null); if (cur != null) { cur.moveToFirst(); } sdb.close(); return cur; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Converting to xlarge layouts
On Wed, Aug 3, 2011 at 5:46 PM, Neilz neilhorn...@gmail.com wrote: Am I correct in assuming that if I want an app that is developed for Tablets using Fragments etc, that this has to be a separate app to one designed for standard devices? No. You can have a single APK that works on both. Use the compatibility library to get fragment support on pre-3.0 devices. You can have different layouts based on screen size and/or Android version. If so, how does this work for the market? If my client says, we want our new app to fit standard devices but also have a specific version for tablets, would this mean creating two apps with two market uploads? You can now have multiple APKs targeted at different devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Converting to xlarge layouts
Nikolay - thanks for the response, though you've confused me a litle... Do you have a single APK or multiple? Or is it a choice, if so which is best practice? Are you saying that when I create the app in the market, I can provide different APKs to target different devices, which are all managed under the same app heading? On Aug 3, 12:57 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Aug 3, 2011 at 5:46 PM, Neilz neilhorn...@gmail.com wrote: Am I correct in assuming that if I want an app that is developed for Tablets using Fragments etc, that this has to be a separate app to one designed for standard devices? No. You can have a single APK that works on both. Use the compatibility library to get fragment support on pre-3.0 devices. You can have different layouts based on screen size and/or Android version. If so, how does this work for the market? If my client says, we want our new app to fit standard devices but also have a specific version for tablets, would this mean creating two apps with two market uploads? You can now have multiple APKs targeted at different devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: App Widget stops responding to input after all instances are removed and another added
I have found the problem. The onEnabled event gets triggered at the start when the first widget is added. The onDisabled event gets triggered when the last widget is removed, but the onEnabled event does not get triggered when you try to add another first widget. I had code that was similar to the examples in those events. This resulted in the packagemanager unregistering my AppWidgetProvider from receiving these events For more explanation: - http://stackoverflow.com/questions/6917415/app-widget-stops-responding-to-input-after-all-instances-are-removed-and-another Hope this helps some googlers! All the best, Ash -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Maths App
On Tue, Aug 2, 2011 at 9:00 AM, Gaurav Agarwal gaurav.aga...@gmail.comwrote: I want to develop an Maths App but couldn't figure out how give user space for rough work. Have the user swipe left / right to navigate between different pages, on each of which they can draw with their finger? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] performing a activity on the click of the BT headset button or A2DP (wired) button press
Hi , We see that when we press the button on the A2DP headphone automatically the music player launches , is it possible to fire any other application using it ,or can we control thic clicks action when are application is running . the scenario is that i am using speech recognition i want to put that in sleep mode and as soon as the user click the headset button(bluetooth or A2DP) the voice recognition activity is fired . is it possible ?? any kinda help will be really appreciated . Thnx Ankit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android binary disassembling and debugging protection
Hi, well - hard to choose... Put here both please, I will use the brutal for my understanding and gentle one for management:) But seriously - please note that I fully understand that if there are some solutions, they are breakable/hackable if someone is really interested. But still I would like to know if there are some or it is completely something, which is not used on Android. Might be there is something more than binary self-signing and the user level permission hacked, since all phones are rooted... Thanks BR STeN On Aug 3, 12:54 pm, lbendlin l...@bendlin.us wrote: Do you want the gentle answer or the brutal one? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Google Map Road Showing In Dev But not When Signed for Deployment
On Tue, Aug 2, 2011 at 11:55 PM, usafrmajor usafrma...@gmail.com wrote: Just wondering, is it possible to have both keys for the map view active? Active as both set? No. But you can determine whether you are running in debug or release mode and use the appropriate key or layout in either case. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem getting string from database
Hi, I'm trying to get a string from my database. My cursor gets the right row and everything, and there is no problem to get the columnIndex. But when I use getString I get this exception in logcat: 08-03 14:27:42.974: ERROR/AndroidRuntime(31026): Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0 this is the code I have. Cursor cursor = (Cursor) mDbHelper.fetchNote(row); startManagingCursor(cursor); if (cursor != null) { addTitle.setText(cursor.getString(cursor.getColumnIndexOrThrow(DbAdapter.KEY_TITLE))); } Any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Converting to xlarge layouts
Yes, you can have either multiple APKs, or you can have a single APK that delivers its layout based on the version of Android being used. For the multiple APK support of the market, see here: http://android-developers.blogspot.com/2011/07/multiple-apk-support-in-android-market.html And for the logic behind delivering one layout for xlarge screens vs. smaller sizes, a good app source cose to look at is the Google IO app: http://code.google.com/p/iosched/source/browse/ A good activity to start with is the ActivityHelper.java file in the util directory. Regards, Peter On Aug 3, 2:05 pm, Neilz neilhorn...@gmail.com wrote: Nikolay - thanks for the response, though you've confused me a litle... Do you have a single APK or multiple? Or is it a choice, if so which is best practice? Are you saying that when I create the app in the market, I can provide different APKs to target different devices, which are all managed under the same app heading? On Aug 3, 12:57 pm, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Aug 3, 2011 at 5:46 PM, Neilz neilhorn...@gmail.com wrote: Am I correct in assuming that if I want an app that is developed for Tablets using Fragments etc, that this has to be a separate app to one designed for standard devices? No. You can have a single APK that works on both. Use the compatibility library to get fragment support on pre-3.0 devices. You can have different layouts based on screen size and/or Android version. If so, how does this work for the market? If my client says, we want our new app to fit standard devices but also have a specific version for tablets, would this mean creating two apps with two market uploads? You can now have multiple APKs targeted at different devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: close cursor
Hi, If You close cursor inside this method - it will return null. So, You do not need here closing cursor. Here You can get data from cursor and then close it. regards On Aug 3, 2:56 pm, Dev_red sktniranjanad...@gmail.com wrote: hi How to close cursor in following method? where i have to add cur.close()? Cursor getData() { SQLiteDatabase sdb=this.getWritableDatabase(); Cursor cur = sdb.rawQuery(select * from + manpowerLUTable,null); if (cur != null) { cur.moveToFirst(); } sdb.close(); return cur; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Problem getting string from database
Most likely, your cursor doesn't contain any data rows. Use cursor.getCount (or cursor.moveToNext) to check. 03.08.2011 16:51, André пишет: Any suggestions? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Share sqlite database
Can two application share the same sql database ? Currently I have app1 which created and stores data in a database on the tablet. Now I wish to create app2 which will have it's own database but I also would like it to read from app1's database is this possible ?? IF so, what needs to be set up ? 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] Share sqlite database
On Wed, Aug 3, 2011 at 8:04 AM, New Developer secur...@isscp.com wrote: IF so, what needs to be set up ? I believe this is what ContentProviders are for. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android -- the forgotten real fragmentation
Well, that's a absolutely not true. I have had at least 10 users with this problem. One guy actually wrote to me today who tried going back to Froyo from Gingerbread and couldn't open his database. I also created a database in a cyogenmod emulator session and the database shows up as corrupt when trying to open it from a normal Android command line SQLite session. It's easy enough for you to try if you don't believe me. On Aug 3, 7:01 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 3, 2011 at 6:53 AM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Aug 3, 2011 at 2:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote: For example, if the user moves to a phone with an older version of Android, I can support that older version of the platform just fine, but the user is Sh*t-out-of-Luck trying to move their database over and they cannot open their newer SQLite database on an older version of SQLite. Got any examples? AFAIK, the SQLite file format has not changed in some years. http://www.sqlite.org/formatchng.html According to the SQLite folks, there hasn't been an on-disk file format change since 2006. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy Android Training in NYC:http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
Hi all! I have view plaincopy to clipboardprint? public class SMK extends ActivityGroup implements OnClickListener { ... @Override public void onClick(View v) { switch (v.getId()) { case R.id.praktisk: Intent intent = new Intent(getApplicationContext(), Praktisk.class); replaceContentView(Praktisk, intent, Intent.FLAG_ACTIVITY_CLEAR_TOP); break;... public void replaceContentView(String id, Intent newIntent) { View view = getLocalActivityManager().startActivity(id, newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)).getDecorView(); this.setContentView(view); } and in my Praktisk activity view plaincopy to clipboardprint? tilbage.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getApplicationContext(), SMK.class); SMK parentActivity = (SMK) getParent(); parentActivity.replaceContentView(SMK, intent, Intent.FLAG_ACTIVITY_CLEAR_TOP ); } }); But if I click 4 times I get java.lang.StackOverflowError. Can anyone help me? Thank you in advance! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Maths App
Hi, Please be so kind as to remove your *Disclaimer:* from future posts, it is unwarranted in a forum such as this. Thanks Regards On Aug 3, 6:58 pm, Gaurav Agarwal gaurav.agar...@wissenways.com wrote: Hi An app which throws out mathematics problem to user may be useful to all variety of students but the problem in all maths problem you need some rough space like a scribbling pad to reach to a solution. I figured out FingerPaint may be a solution but that limits space but scrolling cannot be add to it. gaurav On Wed, Aug 3, 2011 at 6:01 AM, TreKing treking...@gmail.com wrote: On Tue, Aug 2, 2011 at 9:00 AM, Gaurav Agarwal gaurav.aga...@gmail.comwrote: Please suggest. Please explain. --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Many thanks and regards Gaurav Agarwal Founder Wissenways Learnings Pvt. Ltd. Ahmedabad Mobile:+91-99249 60088 Web:www.wissenways.com http://www.wissenways.com * * *Disclaimer:* *The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to gaurav.agar...@wissenways.com and then delete it from your system. We are neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.** * -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
On Wed, Aug 3, 2011 at 8:11 AM, nika-...@ya.ru nika-...@ya.ru wrote: Can anyone help me? Your debugger can! You're likely stuck in an infinite recursive loop. Use your debugger to figure out where and stop it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Converting to xlarge layouts
Great, that's a lot clearer now - many thanks. On Aug 3, 1:52 pm, Peter Stacey peterst6...@gmail.com wrote: Yes, you can have either multiple APKs, or you can have a single APK that delivers its layout based on the version of Android being used. For the multiple APK support of the market, see here: http://android-developers.blogspot.com/2011/07/multiple-apk-support-i... And for the logic behind delivering one layout for xlarge screens vs. smaller sizes, a good app source cose to look at is the Google IO app: http://code.google.com/p/iosched/source/browse/ A good activity to start with is the ActivityHelper.java file in the util directory. Regards, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android Apps Needed for AppStore
We are looking for readily available Android apps that can be put on to our app store. Interested vendors can reach us ASAP on app.st...@smartsky.in -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem getting string from database
Thanks for the quick reply. It says that there is 0 rows when using get count. Is it a problem with the row number I provide it you think? André On Aug 3, 3:01 pm, Kostya Vasilyev kmans...@gmail.com wrote: Most likely, your cursor doesn't contain any data rows. Use cursor.getCount (or cursor.moveToNext) to check. 03.08.2011 16:51, André пишет: Any suggestions? -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AlignParentBottom in RelativeLayout (wrap_content)
I am trying to make a RelativeLayout with an image centered in the bottom, and a line spanning the bottom. The layout should have the height of the image, and fill the width. All of this is in a linear layout with other things in it. See code below for reference. Problem is: As soon as I insert the view (with alignParentBottom) my RelativeLayout fills the entire view (minus what came before it in the LinearLayout). Is this a bug? I can force what I want by setting a specific height to the RelativeLayout (eg. 12dp) but that's not exactly what I want. Any thoughts? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:orientation=vertical android:layout_width=match_parent android:layout_height=match_parent [...] RelativeLayout android:layout_width=match_parent android:layout_height=wrap_content View android:layout_width=match_parent android:layout_height=1px android:layout_alignParentBottom=true / ImageView android:layout_width=wrap_content android:layout_height=wrap_content android:src=@drawable/indicator_current android:layout_centerInParent=true / /RelativeLayout [...] /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] performing a activity on the click of the BT headset button or A2DP (wired) button press
Yes, simply google for headset example and you'll find source code you can modify. On 03/08/2011, Ankit Maheshwari lkoan...@gmail.com wrote: Hi , We see that when we press the button on the A2DP headphone automatically the music player launches , is it possible to fire any other application using it ,or can we control thic clicks action when are application is running . the scenario is that i am using speech recognition i want to put that in sleep mode and as soon as the user click the headset button(bluetooth or A2DP) the voice recognition activity is fired . is it possible ?? any kinda help will be really appreciated . Thnx Ankit -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Payout much smaller than expected
Did anybody else get a payout this morning that was a tiny fraction of what is expected? Checkout shows two payouts coming, but only one was deposited (the much, much smaller one). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Work with AccountAuthenticator on API 7 and earlier
Hi. I have next problem. I work local(without Internet auth) with account manager in my app. I rewrite SimpleSyncAdapter and all works fine in API 8, but in API 7 i have SecurityException with cause: caller uid 10029 is different than the authenticator's uid. Where is problem? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)
I think I know what's causing these errors... the incompatible libssl.so (was the one from ubuntu 11 /usr/lib) that I've changed to the one on the android's /system/lib fixed the incompatible error but since the include of openssl/dsa.h it includes all of the ubuntu openssl instead of some differences that may be causing these undefined reference errors. So I think that if I make a sucessfull build of this android libssl and include the files from the same build these erroes hopefully will go away. But I'm trying to follow the steps from http://source.android.com/source/downloading.html and when I run curl https://android.git.kernel.org/repo ~/bin/repo it can't get the necessary files can I direct download this files in a easier way? like a .tar or something... % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent Left Speed 0 00 00 0 0 0 --:--:-- 0:02:29 --:--:-- 0 curl: (7) Failed to connect to 2001:4f8:1:10:1972:112:1:0: Rede inacessível How do I bypass this step? (I tried with and without proxy and it didn't work) On 3 Ago, 11:26, Nikolay Elenkov nikolay.elen...@gmail.com wrote: On Wed, Aug 3, 2011 at 6:57 PM, rickrvo rick...@hotmail.com wrote: thx! but where can I find envsetup.sh? it's not on my android's ndk nor sdk folders and can't find it on the android openssl package... :| This is out of the scope of this list. Try asking on android-building or android-porting. BTW, envsetup.sh, m, and mm (shell functions) come from the Android open source project (ASOP), they are part of the build environment. You may need to get this to compile your library. Or change your Makefiles, etc. to get it to compile with just the NDK. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android binary disassembling and debugging protection
Here is the gentle answer http://android.amberfog.com/?p=639 What you will find is that the best way to spend your time is to make your application better, to have some kind of authenticated server component (which can hold some of your application logic in a black box), and some more effort to make your application better. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding emulator
Hi, I developed an application using Google API 2.1.Now i want test this application on Samsung Galaxy tab. In AVD manager i created emulator selecting target as Galaxy tab.But in run configurations in Target Tab, galaxy tab emulator is not displaying in the list of emulators.So, please any one tell me what is the mistake. Thanking you, Nageswararao. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Problem getting string from database
Bingo. Cursor data is organized into rows and columns. If there are zero rows, you won't be able to get any data, and it's in fact an error to try - as you'd be asking for data from row 0 out of 0 - exactly as the exception error message says. -- Kostya 03.08.2011 17:23, André пишет: Thanks for the quick reply. It says that there is 0 rows when using get count. Is it a problem with the row number I provide it you think? André -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Hard Crash (Reboot) in 3.2
Do you do public tracking of the bug database, so I can keep an eye on this? On Aug 3, 2011, at 1:16 AM, Dianne Hackborn wrote: Thanks, I've filed a bug. On Tue, Aug 2, 2011 at 10:45 AM, Joshua Smith joshuaesm...@charter.net wrote: Update: We've created a small reproducible test case. Run this code for an hour (usually less) on a XOOM with 3.2 and you will reboot. We haven't gotten lucky enough to get a log, so we cannot be absolutely certain that this reboot is the same one we're hitting, but it probably is. Who do I send this to? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] AlignParentBottom in RelativeLayout (wrap_content)
03.08.2011 17:25, Mark Gjøl пишет: Problem is: As soon as I insert the view (with alignParentBottom) my RelativeLayout fills the entire view (minus what came before it in the LinearLayout). Is this a bug? I can force what I want by setting a specific height to the RelativeLayout (eg. 12dp) but that's not exactly what I want. Yep, it seems that's how it works, even with Android 1.6, 2.0, etc. Any thoughts? Yes, build the layout some other way - such as anchor a view to the top, then add more views with layout_below - as opposed to anchoring a view at the bottom, and placing others with layout_above, as you're probably doing now. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: List View based on Database Cursor Not Showing Full Screen and Scrolling
I thought maybe a picture of what is happening may help. As you can see on the attached image the second entry on the list is only showing the first line. I masked out the lat long and address information on the first entry I have been looking every where to find a solution and cannot. Someone out there has to have some ideas. :-) 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=enattachment: listview_display_problem.JPG
[android-developers] Can anyone explain librank command output?
Can anyone explain librank command output in android? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android CDD/CTS complaince for non telephony devices
Hi, I would like to know if Android is developed to a non telephony device, is there any strict CDD/CTS requirements that has to be complied in order to get Google certification? I am aware of some products such as ta Thanks, 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
[android-developers] Re: Problem getting string from database
When I tried again on the second post instead I get row number 1. So the first post is 0 and the second is 1. So when I read the second one I get the info from the first post. I use this from a context menu to get the row: AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo(); switch(item.getItemId()) { case DELETE_ID: mDbHelper.deleteTask(info.id); fillData(); return true; case EDIT_ID: long l = info.id; addDaily(info.id); return true; } Adding +1 after info.id feels wrong. Is there a better way to do this more exact you think? André On Aug 3, 4:07 pm, Kostya Vasilyev kmans...@gmail.com wrote: Bingo. Cursor data is organized into rows and columns. If there are zero rows, you won't be able to get any data, and it's in fact an error to try - as you'd be asking for data from row 0 out of 0 - exactly as the exception error message says. -- Kostya 03.08.2011 17:23, André пишет: Thanks for the quick reply. It says that there is 0 rows when using get count. Is it a problem with the row number I provide it you think? André -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
No. It doesn't help, cause I'm new in android development and can't understand how I can find it. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)
Are you behind a firewall?... btw this is is not in the scope of this group..Please post in android-platform. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Openssl for Android (libssl.so and libcrypto.so)
nope, I'm on a VM and everything else (web related) works fine, like firefox and git command... I also posted in android-build... should I post this in platform too? On 3 Ago, 15:38, Mike darksk...@gmail.com wrote: Are you behind a firewall?... btw this is is not in the scope of this group..Please post in android-platform. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
On Wed, Aug 3, 2011 at 9:35 AM, nika-...@ya.ru nika-...@ya.ru wrote: No. It doesn't help, cause I'm new in android development and can't understand how I can find it. http://developer.android.com/guide/developing/debugging/index.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Openssl for Android (libssl.so and libcrypto.so)
Just build is fine...:) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AlignParentBottom in RelativeLayout (wrap_content)
On Aug 3, 4:09 pm, Kostya Vasilyev kmans...@gmail.com wrote: 03.08.2011 17:25, Mark Gjøl пишет: Yep, it seems that's how it works, even with Android 1.6, 2.0, etc. Any thoughts? Yes, build the layout some other way - such as anchor a view to the top, then add more views with layout_below - as opposed to anchoring a view at the bottom, and placing others with layout_above, as you're probably doing now. That won't achieve what I want. To achieve the result I want it is important for the bottom line to be placed exactly on the bottom on the image - not below it. So putting it relative to the image won't do it for me. - Mark Gjøl -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
Ok, thank you for your full answer. But there is no information about infinite recursive loop -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Problem getting string from database
Hard to say what's going on in that code, but basically, you want to use the database _id value as much as possible (preferably, always), and not positions within the cursor's result set. Adapters have getItemId - make sure you return the value of your _id column, which is independent of the item's position within the list. This value will be carried into your onContextItemSelected as info.id. -- Kostya 03.08.2011 18:30, André пишет: When I tried again on the second post instead I get row number 1. So the first post is 0 and the second is 1. So when I read the second one I get the info from the first post. -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: AlignParentBottom in RelativeLayout (wrap_content)
Um, android:layout_bottom ? 03.08.2011 18:56, Mark Gjøl пишет: That won't achieve what I want. To achieve the result I want it is important for the bottom line to be placed exactly on the bottom on the image - not below it. So putting it relative to the image won't do it for me. - Mark Gjøl -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: List View based on Database Cursor Not Showing Full Screen and Scrolling
OK, I figured out what is causing the problem but I cannot figure out what the solution is. My problem is being caused by the ScrollView tag in the layout that creates the Tabs. Since ListViews already have scrolling it is messing things up. Once I remove the ScrollView tag from the tab layout the ListView scrolls like normal, however, now the other three tabs do not have scrolling. I tried putting ScrollView in the layouts I use for those tabs but I get an error that forces me to close the app. Anyone know how can I control the scrolling separately for each tab? thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Payout much smaller than expected
It's normal for the payout to come in two parts, one much larger than the other. For example, this month I have one that's about 7% of my Market profit, while the other is about 93%. Don't know why, but it's been like this ever since Google switched to monthly payouts. But if only one has arrived in your account, that's obviously *not* normal. If it doesn't show up in the next day or so, you need to pursue it with Checkout support. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to use Camera setPreviewCallback listener?
Is your activity implementing the Camera.PreviewCallback? As for the file writing stuff I agree that is a pretty intense thing to do several times a second, you might want to reconsider that or create a Thread that does the writing. On Jul 26, 12:01 pm, TurboMan yusufce...@gmail.com wrote: Hi, I have an application which uses Camera preview feature. I can see the camera preview without any problem. But, OOH I need to capture preview frame. I've googled and find out the setPreviewCallback. But my tablet PC doesn't callback this function as follows. I am not sure if I am doing something wrong. Any help is appreciated. In SurfaceHolder.Callback class in surfaceCreated function I have the following code. [Code] mCamera = Camera.open(); try { mCamera.setPreviewCallback(new PreviewCallback() { @Override public void onPreviewFrame(byte[] data, Camera arg1) { FileOutputStream outStream = null; try { outStream = new FileOutputStream(String.format( /sdcard/%d.jpg, System.currentTimeMillis())); outStream.write(data); outStream.close(); Log.d(TAG, onPreviewFrame - wrote bytes: + data.length); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { } Preview.this.invalidate(); } }); mCamera.setPreviewDisplay(holder); } catch (IOException exception) { //} finally { mCamera.release(); mCamera = null; } [/Code] -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android binary disassembling and debugging protection
I inadvertly solved the problem by having the Android have some of the logic and the server having some of the logic to determine which step in the game to advance to, Actually people disassembling the Android code wasn't the problem, I'm developing a location based game (Portals a geocaching game) where I needed to change some display, questions and answers without recompiling the .apk every time I wanted to make some minor change in game play. Another consideration was a consideration for multiple players - both single players justing stepping though the game and the thought of several players involved in one game. Additional discussion at http://tombtalk.net On Aug 3, 10:03 am, lbendlin l...@bendlin.us wrote: Here is the gentle answer http://android.amberfog.com/?p=639 What you will find is that the best way to spend your time is to make your application better, to have some kind of authenticated server component (which can hold some of your application logic in a black box), and some more effort to make your application better. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: ERROR/AndroidRuntime(921): java.lang.StackOverflowError (if you have multiple activities)
On Wed, Aug 3, 2011 at 9:57 AM, nika-...@ya.ru nika-...@ya.ru wrote: But there is no information about infinite recursive loop That is a general programming problem. Google it. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Motion Sensor in Android
Ohh..Because I just watched a really good video http://www.youtube.com/user/crunchfishab it shows that it moves from one image to other image like how kinect does and it runs in Android.. And I wonder what is the technology is called behind it..Does anyone know it? Thanks On Aug 2, 12:05 am, nadam a...@anyro.se wrote: No. However, you usually have accelerometer and compass for detecting motion of the device. Some devices also have gyroscope and front- facing camera that you could experiment with. On 1 Aug, 03:27, ndiiie 90 rnd...@gmail.com wrote: HI guys, this is a random question in my mind. Does Android support for motion sensor like Microsoft Kinect does? Thanks, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Motion Sensor in Android
That video is making use of the front facing camera. Crunchfish sells that api. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Should ContentObserver be wrapped inside a Service?
Hey everyone, I want to have a ContentObserver continuously running. Now I know Android might kill the process anytime it feels like, however, should I register the content observer within a Service of mine or can I use the Application class and register it from there? In my experience it seems that within a Service is better as processes with Services might stick around longer. Is my assumption correct? Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Motion Sensor in Android
The tablet on the video is making use of its front facing camera, Crunchfish sells the api to do that. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Motion Sensor in Android
every thing will be supported there some api which u can use it in ur application and just the thing is u need to search it On Mon, Aug 1, 2011 at 6:57 AM, ndiiie 90 rnd...@gmail.com wrote: HI guys, this is a random question in my mind. Does Android support for motion sensor like Microsoft Kinect does? 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 -- Thanks Regards K. Ajay Kumar 9700188853 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] TabHost with ListViews - Accessing elements With Visitor Pattern
The problem is that I've tryied some of those methods of TabHost class that returns View, and I didn't get any which return my ListView. My point is, each element of the listview contains certains data that I have to colect to do something with them. What I really would like to do is use a Visitor Pattern to do so, because i may have others operations too. I wait for reply regars. --- Em qua, 3/8/11, RobinDroid librain.ro...@gmail.com escreveu: De: RobinDroid librain.ro...@gmail.com Assunto: [android-developers] Re: TabHost with ListViews - Accessing elements Para: Android Developers android-developers@googlegroups.com Data: Quarta-feira, 3 de Agosto de 2011, 4:42 Is that really necessary because your tabhost has view content and on that content you have ure listview? So why not use your tabhost content view for that particular tab. On Aug 3, 4:13 am, Giorgio Torres giorgio.tor...@yahoo.com wrote: Hi, I have a TabHost that hosts 4 ListViews with some elements. I would like to know if it is possible to access those elements from the tabHost object. Exemplifying, i would like something like that: tab(0).getListViewElement(2).findViewById(R.id.name_textview) where tab(0) returns the first tab with a ListView, and getListViewElement(2) returns the 3rd element from that list. After that i can get some view of that row. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Payout much smaller than expected
Yeah. I've been selling in the market for about a year. I'm familiar with the split payments, but this is the first time one has come through and not the other. Yeah. I've been selling in the market for about a year. I'm familiar with the split payments, but this is the first time one has come through and not the other. It could be my bank. Checkout shows both payouts on Aug 2. Between my app getting pushed down in search lately and this (plus the overall payout was $200 less than I was expecting), I'm starting to get paranoid that Google wants me to get out of the Android development business. Jon On Wed, Aug 3, 2011 at 8:11 AM, String sterling.ud...@googlemail.comwrote: It's normal for the payout to come in two parts, one much larger than the other. For example, this month I have one that's about 7% of my Market profit, while the other is about 93%. Don't know why, but it's been like this ever since Google switched to monthly payouts. But if only one has arrived in your account, that's obviously *not* normal. If it doesn't show up in the next day or so, you need to pursue it with Checkout support. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Android -- the forgotten real fragmentation
On Wed, Aug 3, 2011 at 9:08 AM, Zsolt Vasvari zvasv...@gmail.com wrote: Well, that's a absolutely not true. I have had at least 10 users with this problem. One guy actually wrote to me today who tried going back to Froyo from Gingerbread and couldn't open his database. I also created a database in a cyogenmod emulator session and the database shows up as corrupt when trying to open it from a normal Android command line SQLite session. It's easy enough for you to try if you don't believe me. If you are going to make claims about widespread fragmentation, it is up to you to provide proof in the form of a reproducible test case. If you don't want to take the time to supply such proof, that's fine, but then please expect us to be dubious of your claims, until somebody else supplies such a reproducible test case. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Regarding emulator
The Galaxy Tab Emulator can be downloaded straight from the SDK Manager. Go into Available Packages - Third party Add-ons - Samsung Electronics - GALAXY Tab by Samsung Electronics., Android API8, revision 1 On 8/3/11, nageswara rao rajana nagu.raj...@gmail.com wrote: Hi, I developed an application using Google API 2.1.Now i want test this application on Samsung Galaxy tab. In AVD manager i created emulator selecting target as Galaxy tab.But in run configurations in Target Tab, galaxy tab emulator is not displaying in the list of emulators.So, please any one tell me what is the mistake. Thanking you, Nageswararao. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: List View based on Database Cursor Not Showing Full Screen and Scrolling
OK, as usually after I post I end up finding the answer myself. :-) This nugget got me close Your vertical scroll view can only have one child, which means you need to envelop your gallery view and the linear view chart with another linerLayout which then should be enveloped with a scrollView. For me that translated into doing the following in each of the NON ListView tab layouts ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=center_horizontal android:padding=1px ScrollView android:id=@+id/ScrollViewAppInfo android:layout_width=fill_parent android:layout_height=wrap_content LinearLayout android:orientation=vertical android:layout_width=fill_parent android:layout_height=fill_parent android:layout_gravity=left android:padding=1px TextView android:id=@+id/AppInfoDisplay android:layout_width=fill_parent android:layout_height=wrap_content android:gravity=center_horizontal android:text=App Info / /LinearLayout /ScrollView /LinearLayout -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Server certificate validation - HTTPS
Hi, My first post to this list - I think. When calling a payment service (HTTPS) from an Android 2.3 (Google Nexus S) mobile, I got an exception from validation of the server certificate. It is a valid certificate - no problem when calling the same service from an IPhone. It seems to be a well known problem - googling for it, gives a lot of hits and also some suggestions how to solve it. I have tried a couple of them without success. Now I'm asking this forum, and hope somebody will direct me to a working solution. It is OK, if it only works on 2.3, and I really don't need the validation at all. best regards Hardy Henneberg Stacktrace: W/System.err( 9056): javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature. W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 477) W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl $SSLInputStream.init(OpenSSLSocketImpl.java:750) W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java: 692) W/System.err( 9056):at org.apache.http.impl.io.SocketInputBuffer.init(SocketInputBuffer.java: 93) W/System.err( 9056):at org.apache.http.impl.SocketHttpClientConnection.createSessionInputBuffer(SocketHttpClientConnection.java: 83) W/System.err( 9056):at org.apache.http.impl.conn.DefaultClientConnection.createSessionInputBuffer(DefaultClientConnection.java: 170) W/System.err( 9056):at org.apache.http.impl.SocketHttpClientConnection.bind(SocketHttpClientConnection.java: 106) W/System.err( 9056):at org.apache.http.impl.conn.DefaultClientConnection.openCompleted(DefaultClientConnection.java: 129) W/System.err( 9056):at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java: 171) W/System.err( 9056):at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java: 164) W/System.err( 9056):at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java: 119) W/System.err( 9056):at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java: 359) W/System.err( 9056):at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 555) W/System.err( 9056):at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 487) W/System.err( 9056):at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java: 465) W/System.err( 9056):at dk.dba.hood.payment.PayUtil.callRestClient(PayUtil.java:646) W/System.err( 9056):at dk.dba.hood.payment.Cards.newCard(Cards.java: 147) W/System.err( 9056):at dk.dba.hood.payment.Cards.onNewCardClick(Cards.java:85) W/System.err( 9056):at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 9056):at java.lang.reflect.Method.invoke(Method.java: 507) W/System.err( 9056):at android.view.View$1.onClick(View.java:2139) W/System.err( 9056):at android.view.View.performClick(View.java: 2485) W/System.err( 9056):at android.view.View$PerformClick.run(View.java: 9080) W/System.err( 9056):at android.os.Handler.handleCallback(Handler.java:587) W/System.err( 9056):at android.os.Handler.dispatchMessage(Handler.java:92) W/System.err( 9056):at android.os.Looper.loop(Looper.java:130) W/System.err( 9056):at android.app.ActivityThread.main(ActivityThread.java:3683) W/System.err( 9056):at java.lang.reflect.Method.invokeNative(Native Method) W/System.err( 9056):at java.lang.reflect.Method.invoke(Method.java: 507) W/System.err( 9056):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) W/System.err( 9056):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) W/System.err( 9056):at dalvik.system.NativeStart.main(Native Method) W/System.err( 9056): Caused by: java.security.cert.CertificateException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature. W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java: 161) W/System.err( 9056):at dk.dba.hood.payment.EasyX509TrustManager.checkServerTrusted(EasyX509TrustManager.java: 80) W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java: 664) W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method) W/System.err( 9056):at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java: 474) W/System.err( 9056):... 31 more W/System.err( 9056): Caused by: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature. W/System.err(
[android-developers] Re: gTalk not working with bluetooth
So if I want to get gTalk work with bluetooth, is it a right approach to make SipPhone work with CallManager under framework telephony directory and gTalk app register with CallManager? On Aug 2, 3:45 pm, Jing Wang jwangq...@gmail.com wrote: It is good that SIP stack (over Wifi) andgTalkare added to Gingerbread. But so fargTalkaudio is not routed tobluetooth. Meantime, I see SipPhone is added to frameworks/base/telephony/java/ com/android/internal/telephony. But the code is not completed yet. If CallManager manages SipPhone in addition to CDMAPhone and GSMPhone, then supposedlygTalkregistered with CallManager would work withbluetooth. When can we expectgTalkwork withBluetoothHandsfree feature ? Is it NOT too far? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] MediaRecorder video save issue
For several days I have been trying to figure out an obscure problem related to saving video. I have narrowed it down to an issue with MediaRecorder. The problem is when you record many (15-30) videos in a row. What happens is that at some point (10) the BEEP sound that occurs when you start recording (i.e. MediaRecorder.start()) stops. In LogCat there will be an error from AudioFlinger ERROR/AudioTrack: AudioFlinger could not create track, status: -12. Once this has happen you can still record as many videos as you want without problem, BUT if you press the phones volume keys the phone will CRASH. The reason that I think it is related specifically to saving video is that I can comment out all of the video related setup for the MediaRecorder and then record only audio without any problem and nothing else about the code/program is different. I have included code that creates the same issue on my phone (Samsung Captivate running 2.2). Note that my actually video recorder code is different and that this code is simply to share and focus on the MediaRecorder video save issue. If you have experienced a similar issue please respond, if you test this code on your phone and you don't have any problems please let me know as I have started to think it is a phone/firmware issue. If you have code that works and can share please do. Thanks, public class Camcorder extends Activity implements SurfaceHolder.Callback { MediaRecorder mRecorder; SurfaceHolder mHolder; SurfaceView mSurfaceView; String mOutputFileRoot = /sdcard/Avid_; String mOutputFile; String mFileExt = .3gp; Integer cnt = 0; private boolean mRecording = false; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); setContentView(R.layout.camcorder_preview); mSurfaceView = ((SurfaceView)findViewById(R.id.camera_preview)); mHolder = mSurfaceView.getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); } @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_SEARCH) { if (mRecording) { stopRecording(); //finish(); if(mRecorder == null){ initMediaRecorder(); prepareMediaRecorder(); } mRecording = false; } else { mRecording = true; startRecording(); } return true; } return super.onKeyDown(keyCode, event); } public void surfaceCreated(SurfaceHolder holder) { mHolder = holder; initMediaRecorder(); prepareMediaRecorder(); } public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { } public void surfaceDestroyed(SurfaceHolder holder) { if(mHolder != null) mHolder = null; if(mSurfaceView != null) mSurfaceView = null; } public void initMediaRecorder(){ mRecorder = new MediaRecorder(); mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); mRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); mRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); mRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263); mRecorder.setPreviewDisplay(mHolder.getSurface()); mOutputFile = mOutputFileRoot + cnt.toString() + mFileExt; cnt += 1; mRecorder.setOutputFile(mOutputFile); } private void prepareMediaRecorder(){ if (mRecorder != null) { try { mRecorder.prepare(); } catch (IllegalStateException e) { Log.e(IllegalStateException, e.toString()); } catch (IOException e) { Log.e(IOException,
Re: [android-developers] Android -- the forgotten real fragmentation
On Wed, Aug 3, 2011 at 1:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote: There is a lot of FUD about Android fragmenation. The vast majority of the issue mentioned can be dealt with with properly following the guidelines, but there is one issue that I don't know how to deal with: This forgotten issue is the SQLite versioning problem. I keep important user data on the server by design. I really only use sqlite on the device for the convenience of a Cursor and caching subsets of the server data. My same sqlite code seems to work on every phone, never had to create any edge case code with regards to query syntax. -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Payout much smaller than expected
Mine was split into 4% 96% and I only see the smaller one :(. Definitely will be contacting Google Checkout if I don't see the other deposit in a day or two. Bank is ING Direct. -Kevin On Aug 3, 10:56 am, Jon F Hancock jonfhanc...@gmail.com wrote: Yeah. I've been selling in the market for about a year. I'm familiar with the split payments, but this is the first time one has come through and not the other. Yeah. I've been selling in the market for about a year. I'm familiar with the split payments, but this is the first time one has come through and not the other. It could be my bank. Checkout shows both payouts on Aug 2. Between my app getting pushed down in search lately and this (plus the overall payout was $200 less than I was expecting), I'm starting to get paranoid that Google wants me to get out of the Android development business. Jon On Wed, Aug 3, 2011 at 8:11 AM, String sterling.ud...@googlemail.comwrote: It's normal for the payout to come in two parts, one much larger than the other. For example, this month I have one that's about 7% of my Market profit, while the other is about 93%. Don't know why, but it's been like this ever since Google switched to monthly payouts. But if only one has arrived in your account, that's obviously *not* normal. If it doesn't show up in the next day or so, you need to pursue it with Checkout support. String -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Server certificate validation - HTTPS
On Thu, Aug 4, 2011 at 1:06 AM, hhenne hhe...@gmail.com wrote: Hi, My first post to this list - I think. When calling a payment service (HTTPS) from an Android 2.3 (Google Nexus S) mobile, I got an exception from validation of the server certificate. It is a valid certificate - no problem when calling the same service from an IPhone. Valid and trusted are two different things. If the Android trust store doesn't contain the issuer of the certificate, you will get an error. It seems to be a well known problem - googling for it, gives a lot of hits and also some suggestions how to solve it. I have tried a couple of them without success. What have you tried? Basically you need to supply your own trust store containing the issuer of the server certificate (and any other certificates needed to form a full chain, if any) Now I'm asking this forum, and hope somebody will direct me to a working solution. It is OK, if it only works on 2.3, and I really don't need the validation at all. Are you sure you don't need the validation? Is it OK , if the payments go to a third-party server instead of yours/ your partner's? W/System.err( 9056): Caused by: java.security.SignatureException: Signature was not verified This actually sounds like a broken certificate, not a trust problem. Can you post it somewhere? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Refreshing ListView After Home Key is Pressed and Returning to App
Is there a way to refresh a listview when returning to an app after pressing the Home key? I have a list view in a tab. If in that tab when the Home key is pressed the listview item disappear when a user returns to the app. If the user selects another tab and then goes back to the listview tab the items reappear. thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ImageView scaling produces poor results
I have an ImageView control, and if the image in question needs to be scaled down, it seems to be down, the quality of the resulting image is very poor. I have looked for a way to control the scaling (e.g. set it to bicubic), but am unable to find a way to do it. Can someone tell me how to improve the scaling of images? 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