[android-developers] Re: How to compile APK using different constant
Jonathan S wrote: That wouldn't work because getResources need Context. I gave an example to use inside an Activity. So the Context instance is 'this'. So yes, it should work. You have to call it in a function like public static boolean isGoogleMarket(Context context) { context.getResources().getBoolean(R.bool.forMarket) We're already inside an Activity in my scenario, so that isn't necessary. Admittedly I should have been explicit about my assumption that the call is from within an Activity instance. My first suggestion of a static variable was crap. R.bool.forMarket is a constants too. Sorry? Lew wrote: You probably should go for a resource-based approach. private static final boolean FOR_GOOGLE_MARKET = R.bool.forMarket; etc. Sorry, this is crap. I should have said: private final boolean FOR_GOOGLE_MARKET = getResources().getBoolean(R.bool.forMarket); or similar. -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Map of the building and drawing Route from Source to Destination
Hi, I am working on a navigation project, wherein the strangers/visually impaired people can navigate themselves without anyone's help. I am using WiFi routers. I have uploaded floormap of the building on cloud sever. My app will prompt for destination address. Since the person is Blind/stranger, its the speech input. We are converting to text. I have used API for Speech to Text conversion. Based on the current location and destination address, my android app will provide directions to the persons. When I try to retrieve the current location from the cloud server, I am getting the information in JSON format. I wrote a small program to get the current location using android programming and I am succesfully getting the same by sending information to the server. As soon as I request to the server, the server is sending the info is JSON format. Now, my next step is to draw the map as the stranger can see through which way he is going. I am struck here. How can I draw the map which can correlate to the lat and lon values of the floor map present on the cloud server? How to draw the route from the current location to the destination location within the building? Triangulation algorithm is running on the server. Can you please suggest me how to proceed? I am in desperate need of help. Any help is highly appreciated. Thanks in advance. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to compile APK using different constant
Changing a value implies that it's not correct to implement these as constants. that's not true in all circumstances... Sometimes you'd want specific code to not even compile and be present in the APK. Using constants and replacing their values in the build script makes it very easy to create multiple APKs (which is something event a single market supports) with specific code bases (in his case, why the hell would he need code that meant to work with Samsung's market in the Google market build?). I think the biggest example is app logging and debug information code - No point of using a dynamic variable for those, that code is useless and sometimes it event affects performance. Java is missing the #if fun of C :) On Sunday, April 7, 2013 10:27:14 PM UTC+3, Lew wrote: Giuseppe wrote: I have a Consant.java file that manage few static variable for different store: static private boolean isForGoogleMarket = true; static private boolean isForOperaMarket = false; static private boolean isForTStoreMarket = false; static private boolean isForAmazonMarket = false; static private boolean isForSamsungMarket = false; static private boolean isForAndroidPitMarket = false; When I compile the APK for each market, I need to change the value of the const above. Changing a value implies that it's not correct to implement these as constants. You probably should go for a resource-based approach. private static final boolean FOR_GOOGLE_MARKET = R.bool.forMarket; etc. The real question is how you're determining what your market is in the first place. Tell us that, please. I am looking for a solution to build each apk for each market changing the constant automatically. Probably Marven config can be the solution, but I really don't know how to do Android comes with built-in tools to manage app variations between markets. They're called resources. http://developer.android.com/guide/topics/resources/index.html -- Lew -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to compile APK using different constant
a quick solution public static final String currentMarket= Google; // change this when you compile or load it using property file static private final boolean isForGoogleMarket ; static private final boolean isForOperaMarket; static private final boolean isForTStoreMarket; static private final boolean isForAmazonMarket; static private final boolean isForSamsungMarket; static private final boolean isForAndroidPitMarket; static{ isForGoogleMarket = currentMarket.contains(Google); isForOperaMarket = currentMarket.contains(Opera); isForTStoreMarket=currentMarket.contains(TStore); isForAmazonMarket=currentMarket.contains(Amazon); isForSamsungMarket=currentMarket.contains(Samsung); isForAndroidPitMarket=currentMarket.contains(AndroidPit); } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Map of the building and drawing Route from Source to Destination
Hi, Android Google Maps Version 2 has support to draw map tiles from alternate sources. You just need to provide your floor map as a pyramid of map tiles, typically 256x256 pixels. The map tiles then are accessed (from your cloud server) based on lat, lon zoom level. You can position that map view based on the user's location. See https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/model/TileOverlay etc and search in stackoverflow for additional help eg http://stackoverflow.com/questions/13695393/open-street-maps-with-android-google-maps-api-v2 I won't discuss how you can get directions indoors particularly if that involves changing floor levels. But you can draw lines, polygons etc with Android Google Maps Version 2 as well. For vision impaired I'd also suggest providing Text to Speed audio directions. Regards On Monday, April 8, 2013 4:48:52 PM UTC+10, wrote: Hi, I am working on a navigation project, wherein the strangers/visually impaired people can navigate themselves without anyone's help. I am using WiFi routers. I have uploaded floormap of the building on cloud sever. My app will prompt for destination address. Since the person is Blind/stranger, its the speech input. We are converting to text. I have used API for Speech to Text conversion. Based on the current location and destination address, my android app will provide directions to the persons. When I try to retrieve the current location from the cloud server, I am getting the information in JSON format. I wrote a small program to get the current location using android programming and I am succesfully getting the same by sending information to the server. As soon as I request to the server, the server is sending the info is JSON format. Now, my next step is to draw the map as the stranger can see through which way he is going. I am struck here. How can I draw the map which can correlate to the lat and lon values of the floor map present on the cloud server? How to draw the route from the current location to the destination location within the building? Triangulation algorithm is running on the server. Can you please suggest me how to proceed? I am in desperate need of help. Any help is highly appreciated. Thanks in advance. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: [Socket/Client-Server communication ] how to verify if url and port is working fine
Hi, Try your using your browser. Regards On Sunday, April 7, 2013 5:29:23 PM UTC+10, A N K ! T wrote: Problem is can not able to write/read data to server. Want to verify if url and portNo is working so it can be confirmed that error is in code. basically i have inetAddress = 38.92.76.143 port 99 and data e_device = Test. Can anybody tell me how can i verify this data by sending a request manually, may be creating like a webURL or via any tool. kind of helpful, Thanks, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to compile APK using different constant
Probably my question was wrong! I need to build differents APK for each market. the only change that I need, is the boolean value. I am trying to do it with ANT but I don't have too much knowledge for a good build.xml -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to compile APK using different constant
This certainly can be done with ant, by hacking on the build scripts. In my app, I'm including different additional source folders depending on what market I'm building for. The rest of the app's code uses abstract base classes, whose concrete subclasses are implemented in those additional folders (and instantiated using factories). I understand that the upcoming Gradle based build system should make it easier. -- K 2013/4/8 Giuseppe porcelli.giuse...@gmail.com: Probably my question was wrong! I need to build differents APK for each market. the only change that I need, is the boolean value. I am trying to do it with ANT but I don't have too much knowledge for a good build.xml -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: HttpURLConnection on Galaxy Nexus 4.2
Note that this can open the door to this bug https://code.google.com/p/android/issues/detail?id=29509 which can cause https sockets to close when using network data. Quite a big one for my project so may have to try bypassing the proxy or reverting to HttpClient... On Tuesday, 27 November 2012 10:40:28 UTC, Fritjof wrote: This appears to have solved the problem for me: if (Build.VERSION.SDK != null Integer.parseInt(Build.VERSION.SDK) 13) { urlConnection.setRequestProperty(Connection, close); //disables connection reuse } On Friday, November 23, 2012 11:34:12 AM UTC+1, b0b wrote: On Friday, 23 November 2012 11:23:45 UTC+1, Ryan Bateman wrote: That's not right You are right. What I said was for DELETE requests. Of course POST requests have a body. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] How to disable the broadcasting of the SSID of the mobile hotspot (tethering)
Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to compile APK using different constant
target name=mybuild depends=init echo file=src/${package.dir}/MarketInfo.java message=package ${package.name};${line.separator} / echo file=src/${package.dir}/MarketInfo.java append=true message=public final class MarketInfo {${line.separator} / echo file=src/${package.dir}/MarketInfo.java append=true message= public static String CURRENT_MARKET=quot;${market}quot;;${line.separator} / echo file=src/${package.dir}/MarketInfo.java append=true message=}${line.separator} / / /target And in your code static private final boolean isForGoogleMarket ; static private final boolean isForOperaMarket; static private final boolean isForTStoreMarket; static private final boolean isForAmazonMarket; static private final boolean isForSamsungMarket; static private final boolean isForAndroidPitMarket; static{ isForGoogleMarket = MarketInfo.CURRENT_MARKET.contains(Google); isForOperaMarket = MarketInfo.CURRENT_MARKET.contains(Opera); isForTStoreMarket=MarketInfo.CURRENT_MARKET.contains(TStore); isForAmazonMarket=MarketInfo.CURRENT_MARKET.contains(Amazon); isForSamsungMarket=MarketInfo.CURRENT_MARKET.contains(Samsung); isForAndroidPitMarket=currentMarket.contains(AndroidPit); } -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Access web service over SSL with client certificate (KSOAP)
Thanks Ranuka... I'll try. mbarbiero Em sábado, 6 de abril de 2013 09h51min29s UTC-3, android developer escreveu: try these http://blog.callistaenterprise.se/2011/11/24/creating-self-signed- certificates-for-uhttp://blog.callistaenterprise.se/2011/11/24/creating-self-signed-certificates-for-use-on-android/ se-on-android/http://blog.callistaenterprise.se/2011/11/24/creating-self-signed-certificates-for-use-on-android/ http://blog.callistaenterprise.se/2011/11/24/android -tlsssl-mutual-authentication/ Thanks Regards, Renuka On Sat, Apr 6, 2013 at 5:48 PM, mbarbiero marco.b...@gmail.comjavascript: wrote: Dear developers... I need to access a very secure web service that requires authentication with server *AND client certificates*. The big problem (to me) is *how to define client certificate in the SSL packet*. I use o Ksoap but don't found documentation about SSL and certificates. Any idea? -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Invitation to use Google Talk
--- You've been invited by vaibs malviya to use Google Talk. If you already have a Google account, login to Gmail and accept this chat invitation: http://mail.google.com/mail/b-cb6b2fe41c-274f775403-J5ZdIgvXeh9HiZk2qRUmHfKzxYI To sign up for a Google account and get started with Google Talk, you can visit: http://mail.google.com/mail/a-cb6b2fe41c-274f775403-J5ZdIgvXeh9HiZk2qRUmHfKzxYI?pc=en-rf---a Learn more at: http://www.google.com/intl/en/landing/accounts/ Thanks, The Google Team -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers]
Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re:
I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i(KeyBoard ,Inside the Edit Text); . } }); What else is in the OnEditorActionListener? Thanks. On Monday, April 8, 2013 9:02:36 AM UTC-5, vani wrote: Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers]regarding bluetooth auto-pairing urgernt
If you use this function, it does not require user input: *createInsecureRfcommSocketToServiceRecord*(UUID uuid) Thanks. On Saturday, April 6, 2013 9:05:02 AM UTC-5, akash roy wrote: can anyone tell me is auto pairing possible using bluetooth android i mean to say no user interrupt is required. * * -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] How to disable the broadcasting of the SSID of the mobile hotspot (tethering)
I don't think this is currently possible from the UI. I'm not sure if the drivers support this either. Note that if you are using the hotspot (ie, connected) sniffers can easily find the ssid. Most people don't turn on tethering and leave it unused for long periods as it will reduce battery life. R On Mon, Apr 8, 2013 at 4:30 AM, Frank mobile.app.wri...@gmail.com wrote: Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Bizarre launch behavior for a standard launchMode Activity
I appreciate everyone's efforts in making suggestions, but this has clearly stumped everyone, both here and on Stack Overflow. Is there a support/bugs forum read by actual Google/Android engineers I can ask a question like this on?Or is there a any documentation on the internal steps taken *between* startActivity and when the target activity Life Cycle steps begin? Right now I feel like launching an activity in Android is like putting a message in a bottle and throwing it in the ocean - IF it arrives at the other end then great. But if it doesn't then there's no visibility or control over why. We can try different bottles - whiskey bottles or ketchup bottles - or low tide or high tide - but it seems like it's all guesswork. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Bizarre launch behavior for a standard launchMode Activity
plnelson wrote: I appreciate everyone's efforts in making suggestions, but this has clearly stumped everyone, both here and on Stack Overflow. Is there a support/bugs forum read by actual Google/Android engineers I can ask a question like this on?Or is there a any documentation on the internal steps taken *between* startActivity and when the target activity Life Cycle steps begin? Right now I feel like launching an activity in Android is like putting a message in a bottle and throwing it in the ocean - IF it arrives at the other end then great. But if it doesn't then there's no visibility or control over why. We can try different bottles - whiskey bottles or ketchup bottles - or low tide or high tide - but it seems like it's all guesswork. btw did you try to start you activity using intent filter with an action? just to make sure if it makes any difference... pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: [Socket/Client-Server communication ] how to verify if url and port is working fine
Depending on what you want to test, there many different tools. Here are some suggestions based on what I've used in the past. Testing that the server works, try a browser as described above for really basic yes/no test. If the data isn't HTML or JSON/XML, you might just use wireshark to see what the traffic looks like. Having verified the server side, the HttpURLConnection on the handset is the next place to check. What response code do you get when accessing the server? 200? 400-series error?. Just as asked above, can you get there by mobile browser? No real magic, debugging is just divide and conquer. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Bizarre launch behavior for a standard launchMode Activity
I have to admit: I haven't followed your whole discussion because you've given a very small amount of sample code. I see that you're trying to launch with an intent, but don't see why it could include problems. So if you want a comprehensive answer, please make up a small sample project and put it somewhere: I'll try to investigate. Given what you've said, I can try to shine some light with the information I know up to this point. You think that this code is weird: (in onCreate, or some main thread method..) ctx.startActivity(intent); Thread.sleep(2000); ctx.startActivity(intent); //!! investigating a weird bug I would suspect that this would only fire a single intent: intents will not start until that method has returned (message processing will happen on that thread), and identical intents will be identified. However, it *is* strange that if you only call startActivity once you don't get anything happening. I don't know if this just a simple mistake, or something going on in the framework (I want to say a simple mistake, just because as the platform gets older that code has fewer bugs..). However, if you can create a reproducible project, I'd be happy to try to find out what's going on. Kris On Mon, Apr 8, 2013 at 11:28 AM, plnelson pna...@gmail.com wrote: I appreciate everyone's efforts in making suggestions, but this has clearly stumped everyone, both here and on Stack Overflow. Is there a support/bugs forum read by actual Google/Android engineers I can ask a question like this on?Or is there a any documentation on the internal steps taken between startActivity and when the target activity Life Cycle steps begin? Right now I feel like launching an activity in Android is like putting a message in a bottle and throwing it in the ocean - IF it arrives at the other end then great. But if it doesn't then there's no visibility or control over why. We can try different bottles - whiskey bottles or ketchup bottles - or low tide or high tide - but it seems like it's all guesswork. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: How to disable the broadcasting of the SSID of the mobile hotspot (tethering)
I seem to have this option on my phone: https://lh6.googleusercontent.com/-HiZRiqLG0rI/UWMK-ruIjCI/AWU/k6eN9qQs8Q4/s1600/lghotspot.jpg Thanks. On Monday, April 8, 2013 6:30:00 AM UTC-5, Frank wrote: Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: How to disable the broadcasting of the SSID of the mobile hotspot (tethering)
I'll submit a feature request for this. On Mon, Apr 8, 2013 at 11:23 AM, bob b...@coolfone.comze.com wrote: I seem to have this option on my phone: https://lh6.googleusercontent.com/-HiZRiqLG0rI/UWMK-ruIjCI/AWU/k6eN9qQs8Q4/s1600/lghotspot.jpg Thanks. On Monday, April 8, 2013 6:30:00 AM UTC-5, Frank wrote: Hi all, Is it possible to disable the broadcasting of the SSID of the mobile hotspot (tethering)? I didn't see any device support this features. And i want to add this feature to hide the hotspot ssid. So other don't know a hotspot is being used. Thanks advanced. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: LocationManager with 3G
Someone? On Thursday, April 4, 2013 6:27:39 PM UTC-3, Diego Nunes wrote: Good afternoon. I have an application that retrieves the location from the Provider network, the problem is that the location is no longer being recovered ( not happening in onLocationChange) when using 3G, Wi-Fi using is functioning normally. Does anyone know what can be? locationManager = (LocationManager) getSystemService (LOCATION_SERVICE); locationManager.requestLocationUpdates (LocationManager.NETWORK_PROVIDER, 3000, 0, this); Thank you. -- http://about.me/dnassuncao Diêgo Nunes Assunção Give Peace a Chance -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Control Nikon camera with MTP API
Is it posible to control my camera (Nikon D70) with the MTP API? The camera supports the PTP protocol and a can read some camera information: mtpDevice.open(connection); tv.setText(mtpDevice.getDeviceInfo().getModel()); But how to control 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Bizarre launch behavior for a standard launchMode Activity
Coming up with a simplified example will be hard because it's a large industrial app with many activities and operates as a remote control for a manufacturing process under the control of a PC which sends commands to it asynchronously. But I did get an important clue today: I reported that in LogCat all I got was an intent: starting .. and then nothing.But what I found out was that if I switched to another screen in the app the Activity would start, even if it was minutes later. *Here's what's going on*: these Activities are being launched by intents in a separate NON-Activity class that receives communication from the PC. They need a Context to start an Activity (ctx in the above code) and if the Context is not the one for the activity currently on the screen then nothing happens until that Activity comes to the fore. So I either need a way to get the context of the Activity currently on the screen, or a way to start an Activity that will run regardless of the activity currently on the screen. I can do the latter by setting the launchMode of DGraphActivity to singleInstance but I can't use singleInstance because DGraphActivity needs to fire off other activities and use onActivityResult to collect their results and you can't uses onActivityResult in a singleInstance. With a launchMode of standard I've tried using intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); without success. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: Bizarre launch behavior for a standard launchMode Activity
OK, I've solved my problem by getting the context of the current top activity ( or at least the last one to get an *onResume()* ) and using that as my context (ctx).Now, no matter what Activity is on the screen, when the command comes in from the PC to display graphics it launches right away, even as a standard launchMode Activity. Thank you to everyone who offered suggestions or took time to read this thread. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Loading Images Using HttpURLConnection Concurrently
It should not cause a 400 error, since the 400 error is caused by bad syntax. Specifying HTTPS is not bad syntax, and it should handle the exact same URL as HTTP (only the scheme being different). But do you know that the server you are using conforms well to the HTTP 1.1 spec? On Saturday, April 6, 2013 6:27:58 AM UTC-7, Alex Fu wrote: If possible, I would rather not. I'm using my own server to serve up data so for the HTTPS bit, I used a self signed certificate. Not sure if that's something that would cause the 400 error. On Sat, Apr 6, 2013 at 2:55 AM, Harri Smått har...@gmail.comjavascript: wrote: Hi, Is it possible for you to share an example of an image URL you're using? -- H On Apr 6, 2013, at 5:59 AM, Alex Fu alex@gmail.com javascript: wrote: I tested HTTPS and I'm getting a 400 Bad Request error when using mobile data. On WiFi, everything goes through smoothly... wth. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@googlegroups.comjavascript: To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com javascript: For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/zf4czg611ZU/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com javascript:. For more options, visit https://groups.google.com/groups/opt_out. -- Alex Fu -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Re: Android 4.2 introduced SELinux enabled by default on kernel. am I right?
First of all, DroidMaster, this looks like you copied it verbatim from another website forum. Such crossposting is not always welcomed. Secondly, ignore the lmgtfy.com links, since he did not even give you the right set of keywords for useful Google queries. Thirdly, there seems to be some confusion on the part of the original poster (presumably you, but who knows?): SELinux is NOT a version of Linux, nor a competitor to Linux. It is a security component included with some distributions of Linux. I have had it in Fedora for quite some time now, I usually turn it off, since the default policies delivered with Fedora updates are such crap. You can also set a mode where SELinux only advises when a process does an access forbidden by policy instead of actually blocking it. http://www.revsys.com/writings/quicktips/turn-off-selinux.html gives examples of how to do this in Fedora, but it is not exactly clear how to translate that info to the Android Linux environment. Then again, the third of Lew's lmgtfy.com links is the only one with a good set of keywords. If you do more reading at the sites that turns up, I think you will find the answer for the Android Linux environment. On Friday, April 5, 2013 4:02:43 PM UTC-7, DroidMaster wrote: Dear Expert, 1. As I have understood correctly, Android 4.2 introduced SELinux enabled by default on kernel. am I right. 2. There are some of the apps might not work correctly. Do you know what kind of app is not working? 3. Is there anyway to disable it ? I check on VZW Galaxy Nexus - build JDQ39 - I am not sure what is the Linux version - Either SELinux or Linux. 4. What is the benefit of using SELinux vs Linux? 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re:
HI, Nothing else is in the code.It just returns true if the user clicks done or else it returns false.I referred the link which i sent in the previous mail. On Mon, Apr 8, 2013 at 8:08 PM, bob b...@coolfone.comze.com wrote: I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i(KeyBoard ,Inside the Edit Text); . } }); What else is in the OnEditorActionListener? Thanks. On Monday, April 8, 2013 9:02:36 AM UTC-5, vani wrote: Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/**questions/7683154/android-** softkeyboard-enter-the-**numeric-value-into-edittext-**very-slowhttp://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re:
HI, I have only put the below code: class DoneOnEditorActionListener implements OnEditorActionListener { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { Log.v(*, Clicked); return true; } return false; }} On Tue, Apr 9, 2013 at 11:14 AM, vani reddy vani.reddy.bl...@gmail.comwrote: HI, Nothing else is in the code.It just returns true if the user clicks done or else it returns false.I referred the link which i sent in the previous mail. On Mon, Apr 8, 2013 at 8:08 PM, bob b...@coolfone.comze.com wrote: I would definitely suspect this code: txtQty.setOnEditorActionListener( new OnEditorActionListener() { public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { Log.i(KeyBoard ,Inside the Edit Text); . } }); What else is in the OnEditorActionListener? Thanks. On Monday, April 8, 2013 9:02:36 AM UTC-5, vani wrote: Hi friends, I have 2 edittext fields where I need to enter text.While entering in the soft keyboard it is too slow ,keyboard pauses for 2 seconds after clicking on any character. I dont have any background threads running also. I referred this link http://stackoverflow.com/**questions/7683154/android-** softkeyboard-enter-the-**numeric-value-into-edittext-**very-slowhttp://stackoverflow.com/questions/7683154/android-softkeyboard-enter-the-numeric-value-into-edittext-very-slow . Any clues? Please respond . -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- Regards, Vani Reddy -- Regards, Vani Reddy -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.