[android-developers] android system freeze while playing audio
Hi all, I am having a android based device. it is connected to a display monitor through hdmi. when we are playing a audio file and listening the audio through hdmi tv audio port. the whole system is getting hanged (no traces coming out on console.). Please help me what way we can find the reason for system hang in android device. Regards, -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/1c231ef6-725d-4aab-9794-53d08c22d1a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] changing contents of apk and rezipping?
I think the problem is the required files in the right places what are the required files and how do we know that they are in the right place On Tuesday, December 15, 2009 5:40:38 PM UTC-5, Dianne Hackborn wrote: An .apk is just a zip file. As long as you end up with a correctly signed zip with the required files in the right places, you can do whatever you want with it. On Tue, Dec 15, 2009 at 2:22 PM, Bob bshum...@yahoo.com javascript:wrote: Hi, Is it possible to change the contents of the resources packaged with an apk and get it to work? I tried unzipping the apks contents, performing the changes I wanted, rezipping, and then using the zipalign tool on my modified apk but when I try to install I get the error 'MyPackage.apk' does not contain AndroidManifest.xml when I try to install. Is there a way around this? Thanks, Bob -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hac...@android.com javascript: Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Tethering two android phones
On Thu, May 10, 2012 at 12:35 PM, Robert Greenwalt rgreenw...@google.comwrote: On Thu, May 10, 2012 at 9:23 AM, Devin dwwke...@gmail.com wrote: On Thursday, May 10, 2012 11:08:20 AM UTC-4, Robert Greenwalt wrote: Could you use wifi? They will both be given addresses via dhcp and will be able to see each other. Finding the other guy is a problem, but you're going to have that in any situation. Finding the other guy or finding you, whatever works :) He's the only other person I've found searching around that's had the same problem. You might be able to use a service discovery protocol like bonjour for this. I think usb tether uses unroutable addresses and considers the two links as separate networks. wifi treats them as on the same network. That's fine I plan on putting each phone on a different subnet and routing between them (for now at least). I'd like to have pairs of addresses like this PCPhone 192.168.1.1, 192.168.1.2 192.168.2.1, 192.168.2.2 192.168.3.1, 192.168.3.2 192.168.4.1, 192.168.4.2 192.168.5.1, 192.168.5.2 etc In a tethering situation the phone is the dhcp server and the PC contacts us for an ip address. That architecture doesn't really work for me for obvious reasons. Although it makes total sense for the common use case (one phone, one pc tethered together) since you don't have to assume that the PC is running a DHCP server. The addresses used are hardcoded in the tethering code and you won't be able to change it without rebuilding and flashing devices. Not necessarily true, I use commands like the one below to change the phones IP. adb -s myphoneserial shell 'echo 1 /sys/class/usb_composite/rndis/enable' adb -s myphoneserial shell 'ip route add myphoneaddress dev usb0; ip link set usb0 up' for each phone, it works just like I want it to, like in the table I made earlier. I do a few other things (like PC side setup and ip addr del 192.168.42.129 dev usb0) to set up the network but those two lines (especially the first one) are key for me. It could be moved into a user visible setting but the extra complexity in settings and the percentage of users who would like it just didn't lead us down that path. That makes sense though I think hardcoding anything is, in general, bad practice. I think you (you meaning Google) should add this functionality in, I think you're going to see a lot more requests like mine in the next year or so. It doesn't even have to be in the Settings menu on the phones IMO, maybe just a config file somewhere. Basically, I'd like to be able to change the default IP address without having to rebuild anything. Each phone has a usb0 interface, the PC has interfaces usb0, usb1, usb2, usb3, usb4, etc. I plan on making a network of many ( 10, 100) phones, eventually I'll have more than PC too. Most users also appreciate the convenience of wireless when using phones also.. don't tie them down! Not me! :) I specifically want to make a usb network of devices. lol.. to each their own.. heh, I'm not crazy I swear. One more question: it seems that Android phones really like 192.168.42.129 as their address when they're put in tethering mode. I grepped the entire FS on my phone for this string and it seems that this address is hard coded and can't be changed without rebuilding some part of Android, is this right? I believe I found the address in a dex file somewhere under /cache. I'm really sure how those dex files are created (run time, build time, something else??) As I said above these addresses are baked into java code and can't really be altered without making a new image. I don't know about the problem you might face trying to patch the dex files. R On Wed, May 9, 2012 at 7:57 AM, Devin wrote: John-Marc, I'm trying to do the same thing and I'm running into the same problem, any updates? Thanks, Devin On Thursday, February 2, 2012 1:45:04 PM UTC-5, John-Marc Desmarais wrote: Hi, Does anyone know of a method to tether two phones via USB so that one phone can communicate with the other using an intermediate PC? Or, a method to change the default gateway given when tethering on one of the phones from 192.168.42.129 to something else. It seems that if I connect two android phones to the PC both are given the same gateway address, it is possible to send/receive data from one phone to the other? is there an address on the other side of the gateway address that can be used? Can I configure the address on one of the phones so that the gateway addresses are unique? Thanks, John-Marc Desmarais On Thursday, May 10, 2012 11:08:20 AM UTC-4, Robert Greenwalt wrote: Could you use wifi? They will both be given addresses via dhcp and will be able to see each other. Finding the other guy is a problem, but you're going to have that in any situation. I think usb tether uses unroutable addresses and considers the two links as
[android-developers] connecting to mysql database
Hi Im trying to connect to a mysql database which is on localhost. i get the error: Error in http connection org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2 refused The code is: package com.test.poll; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.widget.Toast; public class Poll extends Activity { InputStream is; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String result = ; //the year data to send ArrayListNameValuePair nameValuePairs = new ArrayListNameValuePair(); nameValuePairs.add(new BasicNameValuePair(year,1990)); //http post try{ HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(http://10.0.2.2/ android/getAllPeopleBornAfter.php); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = httpclient.execute(httppost); HttpEntity entity = response.getEntity(); is = entity.getContent(); Log.e(log_tag, connection success ); Toast.makeText(getApplicationContext(), pass, Toast.LENGTH_SHORT).show(); }catch(Exception e){ Log.e(log_tag, Error in http connection +e.toString()); Toast.makeText(getApplicationContext(), failed+e.toString(), Toast.LENGTH_SHORT).show(); } //convert response to string try{ BufferedReader reader = new BufferedReader(new InputStreamReader(is,iso-8859-1),8); StringBuilder sb = new StringBuilder(); String line = null; while ((line = reader.readLine()) != null) { sb.append(line + \n); Toast.makeText(getApplicationContext(), pass, Toast.LENGTH_SHORT).show(); } is.close(); result=sb.toString(); }catch(Exception e){ Log.e(log_tag, Error converting result +e.toString()); Toast.makeText(getApplicationContext(), failed+e.toString(), Toast.LENGTH_SHORT).show(); } //parse json data try{ JSONArray jArray = new JSONArray(result); for(int i=0;ijArray.length();i++){ JSONObject json_data = jArray.getJSONObject(i); Log.i(log_tag,id: +json_data.getInt(id)+ , name: +json_data.getString(name) + , sex: +json_data.getInt(sex)+ , birthyear: +json_data.getInt(birthyear) ); Toast.makeText(getApplicationContext(), pass, Toast.LENGTH_SHORT).show(); } }catch(JSONException e){ Log.e(log_tag, Error parsing data +e.toString()); Toast.makeText(getApplicationContext(), failed+e.toString(), Toast.LENGTH_SHORT).show(); } } } I have a php script to connect to the database but the app isn't getting that far. Is the url string right? I have seen to use 10.0.2.2 instead of localhostbut its not working for me... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] android application which communicates with one central database?
Hi Im new to android development. The application I would like to write needs to have one database on a server, which all instances of the application needs to communicate with simply. So there will be no database on each android, just an ability to send info to the central database. Can anyone point me to tutorials or resources on this sort of development? A lot of the tutorials i looked at just seem to have native databases on each android... Thanks Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] WebKit source
Hi, Where can I find the source for the version of WebKit that is supplied with Honeycomb (specifically version 3.2)? The source code available from webkit.org has only empty android directories, and there is no source code available at https://android.git.kernel.org/ I understand that honeycomb itself is not open source, but according to the licensing terms of WebKit Google is supposed to make the source for their port available. Peter Kelly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Cursor in EditText not visible
I'm running into the same issue and I also set my backgroundColor of my EditText to be white. Did you happen to find any solutions to this? On Jun 30, 10:59 pm, CrazzyAndroidians nithin@gmail.com wrote: Hi, I am having a strange issue where the cursor in the EditText is not visible but I can type and can do all stuff with the editText. The scenario is I am giving background image to the editText and and setting the textColor to white. The focus is there, then only we can type. I put cursorVisible=true and tried with lot of trial and error methods to make the cursor visible but of no use. From this I came to know, if we can color the cursor other than the default color, it will be better. Anybody else have this issue earlier 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: Can onMeasure be skipped when adding a View to a ViewGroup?
Thanks Dianne. I was looking for more guidance toward the best practices for handling this so not to deviate from the intentions of your team and consequently do something that would break in future releases or in situations that I didn't expect. I implemented a quick and dirty fix that allows me to handle this on existing layout managers by overriding onMeasure. Code is posted over on stackoverflow: http://stackoverflow.com/questions/6298827/can-onmeasure-be-skipped-when-adding-a-view-to-a-viewgroup-solved. On Jun 9, 4:24 pm, Dianne Hackborn hack...@android.com wrote: You will need to write your own layout manager. On Thu, Jun 9, 2011 at 1:34 PM, Kelly Merrell kmerr...@mercuryintermedia.com wrote: I have a RelativeLayout where I am adding views dynamically as the user scrolls vertically or horizontally. I have rolled my own ViewRecycler since there is potentially thousands of views that could compose the whole of what can be scrolled, but I only show 30 or so at any time. Think a zoomed in view of a calendar. I am running into performance problems when I add the views that are about to be seen, onMeasure is called on the RelativeLayout cascading down to onMeasure getting called on all of it's child views. I already have the calculated size of how big the RelativeLayout will ever be and have set that on it's LayoutParameters, so measuring the ViewGroup isn't necessary, nor is re-measuring the Views that have already been added with their final size and the newly added view has no bearing on those views. Is there a recommended way to bypass these onMeasure calls or at least onMeasure calling measureChildren? Also posted this on stackoverflow with example code to demonstrate the undesired behavior: http://stackoverflow.com/questions/6298827/can-onmeasure-be-skipped-w... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Can onMeasure be skipped when adding a View to a ViewGroup?
I have a RelativeLayout where I am adding views dynamically as the user scrolls vertically or horizontally. I have rolled my own ViewRecycler since there is potentially thousands of views that could compose the whole of what can be scrolled, but I only show 30 or so at any time. Think a zoomed in view of a calendar. I am running into performance problems when I add the views that are about to be seen, onMeasure is called on the RelativeLayout cascading down to onMeasure getting called on all of it's child views. I already have the calculated size of how big the RelativeLayout will ever be and have set that on it's LayoutParameters, so measuring the ViewGroup isn't necessary, nor is re-measuring the Views that have already been added with their final size and the newly added view has no bearing on those views. Is there a recommended way to bypass these onMeasure calls or at least onMeasure calling measureChildren? Also posted this on stackoverflow with example code to demonstrate the undesired behavior: http://stackoverflow.com/questions/6298827/can-onmeasure-be-skipped-when-adding-a-view-to-a-viewgroup -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] StackView example as a non-widget application
I see that there is sample code in the Android SDK for using StackView as a widget here: http://developer.android.com/resources/samples/StackWidget/index.html Does anyone know of any samples for using StackView in a non-widget application (i.e. inside an Activity and populating it with drawables instead of from Remote resources)? Thank you very much, -Kelly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Fragment transactions, transitions and the back stack
Thanks for the clarification Dianne. Is there a chance that these types of improvements/fixes could be released in updates to the compatibility lib faster than the platform releases? This would allow us to adopt the changes much faster than waiting for the full release. On Mar 22, 5:41 pm, Dianne Hackborn hack...@android.com wrote: Sorry custom animations are broken when popping the back stack. This will be fixed in a future release. Until then, you just won't be able to do this -- you will need to either stick with the standard transitions, or manually add/remove the fragments yourself. On Tue, Mar 22, 2011 at 3:32 PM, Kelly Merrell kmerr...@mercuryintermedia.com wrote: Related bug report here: http://code.google.com/p/android/issues/detail?id=15623colspec=ID%20... On Mar 16, 9:54 am, Kelly Merrell kmerr...@mercuryintermedia.com wrote: Hi All, I am having trouble using or understanding how popping FragmentTransactions off of the back stack handles the custom animations. Specifically, I expect it to call the out animation, but it doesn't seem to. I have a simple method to handle a fragment transaction (FragmentTransaction) where I add a fragment and apply a custom transition so that it will fade-in/fade-out. I am also adding this to the back stack so that the user can undo that transaction with the back button, essentially navigating to the state before the fragment was added. Everything works great moving forward, but when the user clicks the back button, the transition animations do not reverse. What I expected was that when the fragment got removed, it would use the fade out animation. Instead it seems to pop out (without animation) and then the container seems to fade in. I'm not sure that this is exactly what is happening, but the fragment is definitely not fading out. Here is the method that handles the transaction: protected void changeFragment() { FragmentTransaction ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.add(R.id.fragment_container, new TestFragment()); ft.addToBackStack(null); ft.commit(); } My application uses the compatibility library to add fragment support, but I assume this to be applicable to Honeycomb (android-11) as well. Does anyone know if I am just doing something wrong here or if I am just expecting too much? Ideally, I would like to animate the fragments similarly to how Gmail (on the Xoom) does in regards to moving forward by clicking a message and then back by using the back button. Preferably not having to override the back button functionality and keep up with my own fragment state since I could have several transactions that I would want to back out of and I am not a fan of re-inventing wheels. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Re: Fragment transactions, transitions and the back stack
Related bug report here: http://code.google.com/p/android/issues/detail?id=15623colspec=ID%20Type%20Status%20Owner%20Summary%20Stars On Mar 16, 9:54 am, Kelly Merrell kmerr...@mercuryintermedia.com wrote: Hi All, I am having trouble using or understanding how popping FragmentTransactions off of the back stack handles the custom animations. Specifically, I expect it to call the out animation, but it doesn't seem to. I have a simple method to handle a fragment transaction (FragmentTransaction) where I add a fragment and apply a custom transition so that it will fade-in/fade-out. I am also adding this to the back stack so that the user can undo that transaction with the back button, essentially navigating to the state before the fragment was added. Everything works great moving forward, but when the user clicks the back button, the transition animations do not reverse. What I expected was that when the fragment got removed, it would use the fade out animation. Instead it seems to pop out (without animation) and then the container seems to fade in. I'm not sure that this is exactly what is happening, but the fragment is definitely not fading out. Here is the method that handles the transaction: protected void changeFragment() { FragmentTransaction ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.add(R.id.fragment_container, new TestFragment()); ft.addToBackStack(null); ft.commit(); } My application uses the compatibility library to add fragment support, but I assume this to be applicable to Honeycomb (android-11) as well. Does anyone know if I am just doing something wrong here or if I am just expecting too much? Ideally, I would like to animate the fragments similarly to how Gmail (on the Xoom) does in regards to moving forward by clicking a message and then back by using the back button. Preferably not having to override the back button functionality and keep up with my own fragment state since I could have several transactions that I would want to back out of and I am not a fan of re-inventing wheels. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Fragment transactions, transitions and the back stack
Hi All, I am having trouble using or understanding how popping FragmentTransactions off of the back stack handles the custom animations. Specifically, I expect it to call the out animation, but it doesn't seem to. I have a simple method to handle a fragment transaction (FragmentTransaction) where I add a fragment and apply a custom transition so that it will fade-in/fade-out. I am also adding this to the back stack so that the user can undo that transaction with the back button, essentially navigating to the state before the fragment was added. Everything works great moving forward, but when the user clicks the back button, the transition animations do not reverse. What I expected was that when the fragment got removed, it would use the fade out animation. Instead it seems to pop out (without animation) and then the container seems to fade in. I'm not sure that this is exactly what is happening, but the fragment is definitely not fading out. Here is the method that handles the transaction: protected void changeFragment() { FragmentTransaction ft = fm.beginTransaction(); ft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out); ft.add(R.id.fragment_container, new TestFragment()); ft.addToBackStack(null); ft.commit(); } My application uses the compatibility library to add fragment support, but I assume this to be applicable to Honeycomb (android-11) as well. Does anyone know if I am just doing something wrong here or if I am just expecting too much? Ideally, I would like to animate the fragments similarly to how Gmail (on the Xoom) does in regards to moving forward by clicking a message and then back by using the back button. Preferably not having to override the back button functionality and keep up with my own fragment state since I could have several transactions that I would want to back out of and I am not a fan of re-inventing wheels. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 Determine Which Dialog Was Dismissed
what is brittle about it as your current approach looks 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] JOB OPPORTUNITY
Hi - My name is Kelly Hamilton and I am an IT Recruiter. We have an EXCELLENT opportunity for Android Developers. The position is located in San Diego, CA and is a long-term contract. I would like to speak with anyone who is interested in finding out more about this opportunity. Please email me at kelly.hamil...@pyramidci.com. I look forward to speaking with you! - Kelly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 capacitive is capacitive?
Capacitive touch screens actually report ellipses (I think all of them behave this way), which can be interpreted in a number of algorithms. What you will get is likely processed a few times. Cheers On May 9, 5:43 pm, mjpatey mjpa...@gmail.com wrote: This is a strange question... Is the capacitive touch feature of a Motorola Droid (or any other Android-based touchscreen device) able to detect and report a value for the level of capacitance of a given finger touch, or does Android simply report I just received a touch at (x, y)? Thanks in advance for answering my goofy question. :-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Neighbouring Cell info - Clarification needed
LAC (Local Area Code) is specific to area, like mine is 415 (San Francisco). The Cell ID is the ID of the cell tower. If only one network uses this tower, it's specific to that network. On May 9, 10:06 pm, Vinay S s.vinay@gmail.com wrote: Hi, Thanks for the reply. Actually, I am looking for a different information. When I request for getNeighbouringCellInfo() it gives a set of values. I would like to know, if the Cell Id and the LAC given by this function is belonging to the same operator? Does the phone has the capability to return the Cell Id of different operators around the place..? Regards, VInay On May 8, 7:36 am, Renam seure...@gmail.com wrote: take a look at:http://en.wikipedia.org/wiki/Mobile_Network_Code I think that what you need. Vinay S wrote: Hi, I need one clarification regarding the NeighbouringCellInfo. When i query for the getNeighbouringCellInfo() method, it returns me with 5-6 values. Sample response is below: 06 05 2010 23:59:19.643 Neighbouring Cell Info : Cell Info [1] : Cell Id :20438 RSSI :-67 LAC :6012] Cell Info [2] : Cell Id :22058 RSSI :-69 LAC :6012] Cell Info [3] : Cell Id :22567 RSSI :-69 LAC :6010] Cell Info [4] : Cell Id :22259 RSSI :-69 LAC :6012] Cell Info [5] : Cell Id :22428 RSSI :-67 LAC :6012] Cell Info [6] : Cell Id :7 RSSI :85 LAC :0] My Question is, where these Cell Id and LAC given are specific to the SIM operator or is it from all providers in this area? If it is from multiple operators.., how can I distinguish them? Any kind of info regarding this will be useful. Thanks and Regards, Vinay -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 athttp://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 athttp://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] Showing a progress dialog while waiting for video buffering
I'm currently using VideoView to play videos in my app and I would like to display a progress dialog (indeterminate) while the video buffers. Currently I am showing the progress onCreate and then hiding it in my onPreparedListener. This is fine for playing from the beginning, but often I will want to use seekTo() to start/resume at a specific point in the video. I have tried calling progress.hide() from my onSeekCompletionListener, but that is closing the progress too early and the user gets a blank screen for several seconds before the video starts playing since the video isn't buffered to that point yet. Is there some way that I can find out when the video has buffered enough for the user to watch the video from an arbitrary point? This seems like a common need, but I haven't found any help via search. Am I missing something obvious here? Any/all help is appreciated. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Developing a C++ static library for use with Java on the Android
The two-libs example uses a shared library that wraps the static one, exactly as desired. I'm currently doing the same thing in my project :-) On Apr 28, 11:51 pm, FrankG frankgru...@googlemail.com wrote: Hello Kelly, I would not say this can be so easy at the end. Josh says he want to use a static library, but with JNI he need to use a dynamic one or at least a dynamic lib which wraps the static one. And even with this wrapper he can run into linker problems not finding all symbols. It can be a nightmare at the end, but it depends from the complexity of his C++ stuff. Good luck ! Frank On 28 Apr., 19:41, Kelly senor...@gmail.com wrote: Download the android NDK and see how they use libraries. Just reverse engineer their very simple JNI projects and you can build yours no problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group athttp://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: Developing a C++ static library for use with Java on the Android
Download the android NDK and see how they use libraries. Just reverse engineer their very simple JNI projects and you can build yours no problem. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Checking for font support at runtime?
Hi, have an application that is going to be shipping on devices with varying font support in several different locales. Some of them will have the standard Android fonts on them (supporting Latin, Cyrillic, Chinese characters, etc.), and others will have extended font support (Thai, Hindi, others). My application displays text in languages that aren't guaranteed to be supported by Android's native fonts on all the devices it will ship on. (This is outside of the normal translated string resources). So I would like to know if it's possible to interrogate font support for a given language at runtime. In other words, given a string of text, can I interrogate something in the Android API that tells me whether there's a font available to display the text? I can get the Unicode block for a given string of characters easily enough. Given that information, I would think I could get a list of fonts in Android, and see if there's support for my Unicode block in the available fonts. Is that possible? Any insights greatly appreciated. Thanks, Kelly -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] Re: Device Seeding Program for Top Android Market Developers
I signed up as soon as I knew it was legit. Google, thanks very much! On Mar 2, 7:14 pm, Seni Sangrujee sangru...@gmail.com wrote: On Mar 2, 5:04 pm, mscwd01 mscw...@gmail.com wrote: Can I get an idea of how many people have submitted their details? I submitted my info. The signup form is similar to what they used for the Android Developer Lab registration:https://sites.google.com/site/androiddevlabs/register -seni -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] YouTube video encoding for Android devices
Hi, I've noticed that, in general, videos played through Android's YouTube player seem to look a lot better than videos I stream from other mobile-video sites (e.g. m.break.com). It's not that there's anything wrong with those, but I'm curious about how they're achieving the frame rate, clarity, and lack of pixellation I see on YouTube videos on Android. Does anyone here have any insights into that, or might be able to suggest a group where an inquiry like this is more appropriate? Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Payment options for Android Market
Hello, Not long ago, I read a post at http://androidcommunity.com/google-to-expand-android-market-payment-choices-20090716/ about coming updates to the Android Market. These updates had to do with expanded options for billing beyond the current ones (free vs. paid). I was wondering if anyone had any idea when these additional options will be available. Google Checkout has a new capability for monthly subscriptions, which is in beta. I assume the updates to Android Market will take place once the new Google Checkout feature is out of beta. I also assume the time table for this particular feature coming out of beta will be shorter than the beta period for, say, Gmail. Any insights are appreciated. Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Droid Translate
Hello, I've been playing around with GWT this week, and wrote a small app to translate strings.xml files into other languages. It's pretty basic, but I thought I'd make it known in case anyone here had any use for such a thing. http://fognl.com/droid-translate Thanks, Kelly Schrock Fognl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Which android's version can support file transfer through bluetooth?
Which android's version can support file transfer through bluetooth? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Some questions about Bluetooth A2DP.
I have got the code of Android 1.5,But i haven't downloaded in the phone. During read the code,I have some question about the A2DP. 1) The bluetooth earphone have connected with the phone,How does it switch to A2DP channel when we play mp3 ? Auto-switch or Depending on events from application? 2) If we are enjoying the music at that time have a incoming call, What does it work in this situation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] For Bluetooth File Transfer What I can do?
Android 1.0 can't support file transfer.If I want to do by myself what I can do? It seems don't have OBEX protocol. who knows? Please give me reply. 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] How to wake up the screen?
Hello, I need to cause the display to light up programmatically. Is there an established way of doing this? Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 wake up the screen?
My wording here wasn't the clearest. I meant to say: I need to programmatically cause the display to light up. Is there a way to do this? I can get notifications when something else causes it to happen, but I need to initiate the process. Thanks. On Feb 18, 12:31 pm, kelly kellyschr...@gmail.com wrote: Hello, I need to cause the display to light up programmatically. Is there an established way of doing this? Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 wake up the screen?
Al, That works perfectly. Thanks. On Feb 18, 2:02 pm, Al alcapw...@googlemail.com wrote: You can use a wakelock via the PowerManager. On Feb 18, 7:53 pm, kelly kellyschr...@gmail.com wrote: My wording here wasn't the clearest. I meant to say: I need to programmatically cause the display to light up. Is there a way to do this? I can get notifications when something else causes it to happen, but I need to initiate the process. Thanks. On Feb 18, 12:31 pm, kelly kellyschr...@gmail.com wrote: Hello, I need to cause the display to light up programmatically. Is there an established way of doing this? Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Does Android Browser support right menu - open with ?
To right-click something, be sure you use the rightmost finger on the hand you're using to click. For example, if you normally use the index finger of your right hand to click something, use your right pinky instead. If you normally use your left index finger, use your left thumb to right-click. Kidding... There is no such thing as right click on a touch screen. Long clicking is as close as you'll get. On Jan 22, 2:16 am, Guolong liuguolong...@gmail.com wrote: Hello, I want to implement the following scenario: when user browses a web page and right-click a link, then user can choose to open the link with a different Application (except Browser). Is it possible 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] Encrypted email
I was wondering if anyone is working on the encrypting of text messages. Just at the point of storage. Maybe only encrypting threads for specific people. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator
You might try just using java.io.File, which works well for me: File file = new File(/whatever/path/to/file.txt); try { InputStream in = new FileInputStream(file); ... } catch(Exception ex) { ... } I've noticed in the documentation that openFileInput() is supposed to be what you use, but I haven't determined if the above is not okay, and if not, why not. I'm doing this in several places, and it has never caused a problem. On Dec 10, 9:41 am, Chandrakar Aravind-rqj386 [EMAIL PROTECTED] wrote: Hi Mark, Thanks for reply, is there any methods to read non-local file (file present outside my application specific area). Arvind -Original Message- From: android-developers@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Murphy Sent: Wednesday, December 10, 2008 7:52 PM To: android-developers@googlegroups.com Subject: [android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator Chandrakar Aravind-rqj386 wrote: I am trying to read non-local txt file, but I am getting error: java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator You probably don't have a file at /data/testing.txt. My code is like that: FileInputStream _orifile_ = openFileInput(/data//_samplefile_._txt_); openFileInput() accepts relative paths only. No leading slashes are allowed. openFileInput() represents files stored in an application-specific storage area. getFilesDir() will tell you where this is, IIRC. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting error when trying to read file : java.lang.IllegalArgumentException: File /data/testing.txt contains a path separator
Ah, that makes sense. What I'm doing with the java.io.File approach is reading/writing to/from areas on the sd card. On Dec 10, 10:38 am, Mark Murphy [EMAIL PROTECTED] wrote: kelly wrote: You might try just using java.io.File, which works well for me: File file = new File(/whatever/path/to/file.txt); try { InputStream in = new FileInputStream(file); ... } catch(Exception ex) { ... } That works, so long as you have read access to whatever it is you're trying to read. And, so long as you are able to put files wherever it is you're trying to read them from. I've noticed in the documentation that openFileInput() is supposed to be what you use, but I haven't determined if the above is not okay, and if not, why not. I'm doing this in several places, and it has never caused a problem. openFileInput() gives you a storage spot unique to your application in the on-board flash. It is not for use for, say, accessing /sdcard. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Overlay, like in the Pictures application
Hello, The pictures application displays a set of left/right arrows in what I think is an overlay, allowing a user to switch between pictures. I need to create something similar, but I'm not sure how to do it. Can anyone give me a general idea of how this is done? Thanks, Kelly --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---