Re: [android-developers] How to sync development projects?
Ahh... you're doing exactly the same thing with the synced folder... Go home, do an Update. Go to the airport, do all the changes (to your heart's content :-P) then when you go home, Commit. Exact same process as you do now days, but without losing versioning. It feels like we're not on the same page as to how SVN works... the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). On Sunday, December 16, 2012 7:39:48 PM UTC+2, TreKing wrote: On Sun, Dec 16, 2012 at 11:31 AM, Fred Niggle fred@googlemail.comjavascript: wrote: erm VPN? LOL - yeah. Should have added that does not require a network connection. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
Just another comment to make the point clear - When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... So SVN is in it's core pretty much the exact same thing as what windows Sharedfolders with Available Offline on them. You just get a whole lot of more features when you use SVN (like keeping a history of all the files, being able to share the project with more users and etc) On Monday, December 17, 2012 10:33:17 AM UTC+2, Piren wrote: Ahh... you're doing exactly the same thing with the synced folder... Go home, do an Update. Go to the airport, do all the changes (to your heart's content :-P) then when you go home, Commit. Exact same process as you do now days, but without losing versioning. It feels like we're not on the same page as to how SVN works... the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). On Sunday, December 16, 2012 7:39:48 PM UTC+2, TreKing wrote: On Sun, Dec 16, 2012 at 11:31 AM, Fred Niggle fred@googlemail.comwrote: erm VPN? LOL - yeah. Should have added that does not require a network connection. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
On Mon, Dec 17, 2012 at 5:37 PM, Piren gpi...@gmail.com wrote: Just another comment to make the point clear - When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... Interesting and Windows-specific analogy :) Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the 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
Re: [android-developers] give uniform variables an initial value
Code conventions are what they are called - conventions. You dont HAVE to follow them, it's just a guideline so different developers can work together easily. On some occasions, you can actually make some conventions break compilation... the java compiler can be set with flags determining how bad are different warnings. if you decide that even conventions should be errors, the project would not compile. (under eclipse you can see it in Window-Preferences-Java-Compiler-Errors/Warnings). On Sunday, December 16, 2012 8:24:44 PM UTC+2, latimerius wrote: On Sun, Dec 16, 2012 at 10:47 AM, Piren gpi...@gmail.com javascript:wrote: http://www.oracle.com/technetwork/java/javase/documentation/codeconventions-135099.html#367 basically they say the naming is mixed case, so i guess the only issue is that you have an underscore there. I'm only asking as code conventions, however important they might be in some contexts, are a matter of taste and circumstances and their violation does not constitute language non-compliance in languages I'm familiar with. As I don't consider myself a Java expert I was just curious if they really actually made code conventions part of the language definition. I suspected they didn't since I notice my compiler doesn't break compilation for a stray underscore. ;-) you should look out, the java police is out to get you :) Believe me, I'm trying. ;-) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: layout overlays
Either just surround your normal layout with a FrameLayout and then do the hints as the second child (above the first layout, you'd also have to catch all touch events) or just create a new activity on top of it. if the activity has a transparent background in it's theme, it will look like an overlay an none would be the wiser. On Monday, December 17, 2012 1:28:08 AM UTC+2, dashman wrote: i'd like to display an layout that overlays my app. this layout will display a hint - e.g. tap this to get started etc. i would like this layout to be on top of the action bar also - so that users can't click on it or menus until the overlay layout is tapped on (and dismissed). possible? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Asynchronous Http server in android
Hi, I m implementing an asynchronous HTTP server in Android. I am using the code from link http://hc.apache.org/httpcomponents-core-ga/examples.html(Asynchronous HTTP server).. While compiling it I am getting the following error and application crashes: java.lang.IncompatibleClassChangeError:org.apache.http.params.SyncBasicHttpParams in the line HttpParams params = new SyncBasicHttpParams(); Please let me know the cause and how to resolve it? I am using the jars from httpcomponents-core-4.3-alpha1. Thank you! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Confusion InAppBilling V3
you should look at both.. one just shows you exactly what you need for the billing to work, the other is a complete example of how to do an app with in app billing from scratch. On Monday, December 17, 2012 7:47:42 AM UTC+2, Rishabh Agrawal wrote: I am implementing App Billing V3 in My Android app.I have a little confusion in implementation.In Android Developer Website implementation describe with two type. 1st http://developer.android.com/google/play/billing/billing_integrate.html 2nd http://developer.android.com/training/in-app-billing/index.html Problem is which i should use. what the diffrence b/w each other. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
well... he is using shared offline folders now :-P On Monday, December 17, 2012 10:46:04 AM UTC+2, Nikolay Elenkov wrote: On Mon, Dec 17, 2012 at 5:37 PM, Piren gpi...@gmail.com javascript: wrote: Just another comment to make the point clear - When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... Interesting and Windows-specific analogy :) Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the 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
[android-developers] shoeboxed? wtf?
Am i the only one that keeps getting an email from some site named Shoeboxed every time i post to this group? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] about gtalk service and Google's winter cleaning
Hi everyone! Google has announced a winter cleaning recently. http://googleblog.blogspot.jp/2012/12/winter-cleaning.html They only support those for business, government and education use from 20130130. As far as I know, Google sync android devices via C2DM and local Gtalk service. e.g. You may login with your Gmail account in Google play on a PC browser, choose a app and click install. The device which has the same account registered will receive the push from Google and begin the installation. Will this kind of behavior still be available when the winter cleaning is over? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] ListFragment and savedInstanceState, how to preserve state correctly
I'm using a custom ListFragment to load asyncronusly json data and show it. When I click on a row, the fragment is detached and added to the back stack, and a new fragment is loaded to show details about the row selected. When the user press the back button, the listfragment is correctly popped from the back stack, but I've problems to understand if I've to request data from remote server or not (data alredy downloaded and shown). Which's the best practice to do that? What function I've to override to request remote data, save fragment state and attache adapter to the listview? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Bug in Google Play store app - it often closes itself after being launched by third-party app
There is a bug in the Google Play store app, but I wasn't sure where to report it. Definitely not here. Hint: Search for Android bug database and the first result will take you to the right place. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Identifying HTTP Get requests in Android
Hi, Seems like org.apache.http.nio.protocol.HttpAsyncService does not exist in Android. Can anybody suggest me how to make my HTTP Server asynchronous? Any help is appreciated. Thanks in advance! On Friday, December 14, 2012 8:56:05 AM UTC+2, Archana wrote: Hi Kris, Can I use HttpAsyncRequestHandler and HttpAsyncService for my Android app? Can I use the same socket/port in this case? Thanks! On Thursday, December 13, 2012 12:22:57 PM UTC+2, skink wrote: Archana wrote: Hi, when I issue GET, POST requests simultaneously, timeout occurs in Mozilla Poster (as I mentioned below). I need to handle asynchronous requests (non-blocking) as I m using the same socket/port. so follow Kris's advice, he already answered what to do 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
Re: [android-developers] Re: Identifying HTTP Get requests in Android
Archana wrote: Hi, Seems like org.apache.http.nio.protocol.HttpAsyncService does not exist in Android. Can anybody suggest me how to make my HTTP Server asynchronous? Any help is appreciated. Thanks in advance! quoting Kris: But if you insist that your app is special, the common pattern is to have a dedicated thread that handles the connection and forks off worker threads to handle incoming requests, this is the common case. 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
Re: [android-developers] Re: Identifying HTTP Get requests in Android
Hi, Is it like having separate thread for each request(GET/POST/DELETE) ? Can you please explain? I was also thinking of AsyncTask, message queue or multithreading. Thanks! On Monday, December 17, 2012 1:28:25 PM UTC+2, skink wrote: Archana wrote: Hi, Seems like org.apache.http.nio.protocol.HttpAsyncService does not exist in Android. Can anybody suggest me how to make my HTTP Server asynchronous? Any help is appreciated. Thanks in advance! quoting Kris: But if you insist that your app is special, the common pattern is to have a dedicated thread that handles the connection and forks off worker threads to handle incoming requests, this is the common case. 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
Re: [android-developers] Re: Identifying HTTP Get requests in Android
Archana wrote: Hi, Is it like having separate thread for each request(GET/POST/DELETE) ? yes 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
[android-developers] Avoid OutOfMemory Exception using FragmentManager BackStack
I'm developing a native app, using fragments like facebook. I've only 1 activity with a top fixed bar and a fragment container below it. When I navigate into the app, fragments are added to the back stack (like Facebook app), and when I press back button, they are popped rightly. But I noticed that, if I do a deeper navigation (with a lot of fragment into the back stack), the app crashes with an OutOfMemory Exception. How to avoid that? How Facebook app can grant a virtually infinite history into the back stack without crashes? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Asynchronous Http server in android
You probably need to repackage the org.apache.* jars in a new package name with a tool like jarjar, because some clases will be clashing with same class part of Android. You can thank Google for that for putting some Apache classes in the official API while this should have been left separate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.com wrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.comwrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show this problem. Are you using rooted devices? They would allow you to use tcpdump and look at the network traffic.. On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt rgreenw...@google.com wrote: Interesting. Maybe it is an android bug! What kind of traffic are you sending? tcp? udp? On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira gonc...@minkan.netwrote: Got the radio logs... http://pastebin.com/754wJ2jd This seems to be it GSM : [GsmDCT] onReceive: action=com.android.internal.telephony.gprs-data-stall On 14 December 2012 18:25, Robert Greenwalt rgreenw...@google.comwrote: 3319 is fine. It's just the tethering code noting an interface is going away. Can you get radio logs? This is the system log - there are several log buffers. A bugreport (adb bugreport mybug.txt) would get them all. Then you can match the
[android-developers] Re: Asynchronous Http server in android
Hi, Just realized that *org.apache.http.nio *is not available in Android :( Now I am planning to use multi threading for asynchronous behavior. On Monday, December 17, 2012 1:57:16 PM UTC+2, b0b wrote: You probably need to repackage the org.apache.* jars in a new package name with a tool like jarjar, because some clases will be clashing with same class part of Android. You can thank Google for that for putting some Apache classes in the official API while this should have been left separate. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.com wrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show this problem. Are you using rooted devices? They would allow you to use tcpdump and look at the network traffic.. On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt rgreenw...@google.com wrote: Interesting. Maybe it is an android bug! What kind of traffic are you sending? tcp? udp? On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira gonc...@minkan.netwrote: Got the radio logs... http://pastebin.com/754wJ2jd This seems to be it GSM : [GsmDCT] onReceive: action=com.android.internal.telephony.gprs-data-stall On 14 December 2012 18:25, Robert Greenwalt rgreenw...@google.comwrote: 3319 is fine. It's
[android-developers] How to upload to a webserver simple integer variable from android?
How to upload to my webserver a simple integer variable from android?I want send the temperature variable.My server support php.Need permisions from webserver? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: layout overlays
Actually I need a RelativeLayout. Also - my main issue was covering the ActionBar. Beuler? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically selecting Map API version
Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts. So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to - make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine - test for presence of the Google Play Services on the device - give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?) - select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2. Is there anything else I am missing? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically selecting Map API version
On Mon, Dec 17, 2012 at 7:45 AM, lbendlin l...@bendlin.us wrote: Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts. So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to - make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine - test for presence of the Google Play Services on the device - give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?) - select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2. Is there anything else I am missing? Depending upon your distribution mechanism, there's always the none of the above choice (e.g., Kindle Fire), where neither V1 nor V2 are available. Otherwise, I suspect that you're set, though I'm hoping to run my own experiments in this area later on today. With respect to satellite view, V2 has the two-finger swipe for changing your perspective from top-down to on an angle. And if you're planning on using V1 past March 3rd, bear in mind that you will no longer be able to get API keys for V1 at that time, so plan accordingly: http://commonsware.com/blog/2012/12/17/maps-v1-keys-going-going.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 upload to a webserver simple integer variable from android?
You can send the variable you wish in post http request for example and in the server side you can handle it as you wish Le lundi 17 décembre 2012 13:26:18 UTC+1, Antonis Kanaris a écrit : How to upload to my webserver a simple integer variable from android?I want send the temperature variable.My server support php.Need permisions from webserver? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: layout overlays
RelativeLayout, FrameLayout.. same thing. You should probably re-read the information on ActionBar if you want to accomplish what you want.. they explain it clearly how you can handle it in a way that other layouts can use the same area http://developer.android.com/guide/topics/ui/actionbar.html My suggestion to use a second activity to overlay on top of it will be the simplest way. On Monday, December 17, 2012 2:44:15 PM UTC+2, dashman wrote: Actually I need a RelativeLayout. Also - my main issue was covering the ActionBar. Beuler? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] In-app purchase: Connection between merchant console and app?
The merchant console offers two ways to undo an order. You can cancel entire order or you can refund some money, that letter often being disabled or otherwise unavailable on recent purchases. When the developer/seller uses each of these options, what should be the corresponding signal back to the app on the buyer's phone? I ask because it isn't working. My test account app doesn't receive any sort of signal or message back through Google Wallet, Google Play, or the billing service/receiver in my app. I've followed the Dungeons example, naturally, and I have no idea how to get cancel/refund messages back to my app from Google. If I use the test refund sku, my app gets a refund purchase event as expected, but if I use the real skus with a secondary test account, issuing a cancel from the merchant console never triggers any event on the test account's phone. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
Robert, some more information that might be relevant. As I told you, I was using a sim card that connects through our own APN, that restricts access to our servers. Today I decided to try the same scenario with a different SIM, so I plugged a generic 3G sim card, without the APN restrictions. The result was that I no longer had the stall problem... Could any Android background service be failing to connect and giving this outcome? Also, browsing the web I found this issue: http://code.google.com/p/android/issues/detail?id=35856 might it be related? Cheers On 17 December 2012 12:22, Goncalo Oliveira gonc...@minkan.net wrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show
[android-developers] How use and call AsyncTask into my code for upload data?
How use and call AsyncTask into my code for upload data? ListNameValuePair nameValuePairs = new ArrayListNameValuePair(2); //you should put here your temp variable nameValuePairs.add(new BasicNameValuePair(temperature, String.valueOf(30))); HttpPost request = post(http://mysite.com/temperature.php;, nameValuePairs); DefaultHttpClient client = generateHttpClient();HttpResponse httpResponse = client.execute(request); Where: public static DefaultHttpClient generateHttpClient(){ HttpParams params = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(params, TIMEOUT_CONNECTION); HttpConnectionParams.setSoTimeout(params, TIMEOUT_SOCKET); SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme(http, PlainSocketFactory.getSocketFactory(), 80)); try{ KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); trustStore.load(null, null); SSLSocketFactory sf = new EasySSLSocketFactory(trustStore); sf.setHostnameVerifier( SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); registry.register(new Scheme(https, sf, 443)); }catch (Exception e) { e.printStackTrace(); } // params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); ClientConnectionManager cm = new ThreadSafeClientConnManager(params, registry); DefaultHttpClient client = new DefaultHttpClient(cm, params); client.setKeepAliveStrategy(new ConnectionKeepAliveStrategy() { @Override public long getKeepAliveDuration(HttpResponse response, HttpContext context) { return 60; // seconds } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: layout overlays
yes i agree. thanks. On Monday, December 17, 2012 8:32:49 AM UTC-5, Piren wrote: RelativeLayout, FrameLayout.. same thing. You should probably re-read the information on ActionBar if you want to accomplish what you want.. they explain it clearly how you can handle it in a way that other layouts can use the same area http://developer.android.com/guide/topics/ui/actionbar.html My suggestion to use a second activity to overlay on top of it will be the simplest way. On Monday, December 17, 2012 2:44:15 PM UTC+2, dashman wrote: Actually I need a RelativeLayout. Also - my main issue was covering the ActionBar. Beuler? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Oauth2 'Signing In' screen
Thanks Greg. those links look really useful for authenticating to non-Google services but I want to use Google Play Services and the utility methods in GoogleAuthUtil because I'm guessing that users are going to become more familiar with the standard Google authentication dialogs going forwards. I guess this also means they will get used to the black 'Signing in...' screen as well: it just looks odd when it suddenly pops up and then vanishes. Nick On Monday, December 17, 2012 12:36:47 AM UTC-5, Greg Donald wrote: On Sun, Dec 16, 2012 at 10:43 PM, Spiral123 cumi...@gmail.comjavascript: wrote: I'm just in the process of upgrading my apps to use Oauth2 and Google Play services. All seems to be going well except that after authorizing my app Google Play services swaps from the nice white confirmation screen to a full black screen saying 'Signing in... This can take a few minutes'. I know that when you first setup a Google account it is possible to take multiple minutes to do the initial sign on but in my testing this screen appears for typically less than a second. Apart from looking ugly it could be a disconcerting for a user - especially if you are not expecting it. Anyone got any ideas for how I could remove the message or at least substitute it with my own indeterminate progress indicator? I wrote a set of wrapper URLs around OAuth2 so I could more easily customize my interface and the login process on Android. You're not tied to Android just because you want to use OAuth2, it's just a web service that happens to have some hooks in Android. Here are a bunch of the URLs I learned from while writing the wrapper code: http://gregdonald.com/2012/04/25/google-single-sign-on-using-django/ And this was a major help too: https://developers.google.com/oauthplayground/ -- Greg Donald -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mobile network idle sockets disconnected
If you have root you can alter the global settings database (DATA_STALL_ALARM_AGRESSIVE_DELAY_IN_MS, DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS). On Mon, Dec 17, 2012 at 4:22 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show this problem. Are you using rooted devices? They would allow you to use tcpdump and look at the network traffic.. On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt rgreenw...@google.com wrote: Interesting. Maybe it is an android bug! What kind of traffic are you sending? tcp? udp? On Fri, Dec 14, 2012 at 11:23 AM, Goncalo Oliveira gonc...@minkan.net wrote: Got the radio logs...
Re: [android-developers] How to sync development projects?
On Mon, Dec 17, 2012 at 2:33 AM, Piren gpi...@gmail.com wrote: It feels like we're not on the same page as to how SVN works... Apparently not, lol the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. Right ... once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). That's the key point here - I don't want to wait until I've connected to my network to check in my code. Using SVN or any revision control would be pretty pointless if I did a weeks worth of changes between reconnecting to the repo and committing changes. I like to do small, frequent changes and commits as I go along. I sometimes also switch between different branches (new feature branch vs main vs bug fix branches, for example). So how I would commit to the repo or switch to a different branch within it *while disconnected from my home network* without a local offline copy of my entire repo on my laptop? On Mon, Dec 17, 2012 at 2:37 AM, Piren gpi...@gmail.com wrote: When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... I know what an SVN Checkout does. It's the checking back in without access to the real repo that is the problem that I'm trying address. Do you follow me now? On Mon, Dec 17, 2012 at 2:46 AM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the chance. That is pretty much what I'm trying to achieve, though I haven't used GIT. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] GL_REPEAT blues
Any ideas why this line would cause an error? GLES20.glTexParameteri(GL_TEXTURE_EXTERNAL_OES, GLES20.GL_TEXTURE_WRAP_S, GLES20.GL_REPEAT); My video texture is getting clamped, but I want it to repeat for an effect. The error this causes is weird: 12-17 10:22:44.075: E/GLES20TriangleRenderer(22300): glUseProgram: glError 1280 12-17 10:22:44.095: W/dalvikvm(22300): threadid=11: thread exiting with uncaught exception (group=0x40c2e930) 12-17 10:22:44.095: E/AndroidRuntime(22300): FATAL EXCEPTION: GLThread 780 12-17 10:22:44.095: E/AndroidRuntime(22300): java.lang.RuntimeException: glUseProgram: glError 1280 12-17 10:22:44.095: E/AndroidRuntime(22300): at com.example.android.basicglsurfaceview.GLES20TriangleRenderer.checkGlError(GLES20TriangleRenderer.java:324) 12-17 10:22:44.095: E/AndroidRuntime(22300): at com.example.android.basicglsurfaceview.GLES20TriangleRenderer.onDrawFrame(GLES20TriangleRenderer.java:74) 12-17 10:22:44.095: E/AndroidRuntime(22300): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516) 12-17 10:22:44.095: E/AndroidRuntime(22300): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IBM Worklight
*The IBM Worklight Developer Edition is a self-contained, easy-to-install plugin for the Eclipse IDE. While IBM Worklight Enterprise and Consumer Editions consist of separate development environment and server components, the Developer Edition packages them into a single Eclipse download without the need to install database or application servers. This edition is free for evaluation purposes.* [sic] On Monday, December 17, 2012 5:02:48 AM UTC-6, Resurrcting the champ wrote: Dear Geeks, Does anyone hear about IBM Worklight. How could i use it, are there any tutorials about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] shoeboxed? wtf?
On Mon, Dec 17, 2012 at 2:59 AM, Piren gpi...@gmail.com wrote: Am i the only one that keeps getting an email from some site named Shoeboxed every time i post to this group? Nope... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mobile network idle sockets disconnected
Interesting. If you run a test and take a bugreport you whould be able to look at QTAGUID STATS INFO in the bugreport. It shows the packets/bytes sent per app. Take a bugreport first, let your device sit for 10 minutes and take another. The 4th column is the UID of the app and you should be able to figure our who is responsible for the data. R On Mon, Dec 17, 2012 at 7:00 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, some more information that might be relevant. As I told you, I was using a sim card that connects through our own APN, that restricts access to our servers. Today I decided to try the same scenario with a different SIM, so I plugged a generic 3G sim card, without the APN restrictions. The result was that I no longer had the stall problem... Could any Android background service be failing to connect and giving this outcome? Also, browsing the web I found this issue: http://code.google.com/p/android/issues/detail?id=35856 might it be related? Cheers On 17 December 2012 12:22, Goncalo Oliveira gonc...@minkan.net wrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=...
Re: [android-developers] Mobile network idle sockets disconnected
What if I don't have root access? Is there anything else I can do? On 17 December 2012 16:08, Robert Greenwalt rgreenw...@google.com wrote: If you have root you can alter the global settings database (DATA_STALL_ALARM_AGRESSIVE_DELAY_IN_MS, DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS). On Mon, Dec 17, 2012 at 4:22 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show this problem. Are you using rooted devices? They would allow you to use tcpdump and look at the network traffic.. On Fri, Dec 14, 2012 at 11:28 AM, Robert Greenwalt rgreenw...@google.com wrote: Interesting. Maybe it is an android bug! What kind
Re: [android-developers] How to detect input trough the audio jack?
Hello, Yes this is possible. First read here: http://developer.android.com/reference/android/content/Intent.html#ACTION_HEADSET_PLUG code samples are here : http://www.gauntface.co.uk/blog/2010/04/14/using-android-headset-buttons-earphone-buttons/ Hope this help, Fred On 16 December 2012 22:50, Mark Murphy mmur...@commonsware.com wrote: I would assume that AudioRecord would handle that scenario, though I have not tried it: http://developer.android.com/reference/android/media/AudioRecord.html On Sun, Dec 16, 2012 at 5:40 PM, Caio Ricci caiaori...@gmail.com wrote: I've done a lot of research on this, but I still don't understand it completely. I want to use the audio jack to detect if this pedal, ( or any other of these on off pedals) is pressed or not. I tried it on my Linux machine and simply reading the sound card file I was able to see some input. But I don't know how to do that on the device. I assume that it's possible because i see things like the square reader(https://squareup.com/reader) and what i'm aiming for is much simpler than that. I just don't know how to begin. Any suggestions? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 i call class into my activity?
Hello i find this class for upload data...but how i call it from my Activity?On create... public class SimpleHttpPut { public static void main(String[] args) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://www.power7.net/temp.php;); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,30)); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
I am wondering why you are trying to maintain an idle connection? Usually when my apps send data the socket connection is made, then the data is sent, then the socket is closed. This is the normal way of operating. Regards, Fred On 17 December 2012 16:34, Goncalo Oliveira gonc...@minkan.net wrote: What if I don't have root access? Is there anything else I can do? On 17 December 2012 16:08, Robert Greenwalt rgreenw...@google.com wrote: If you have root you can alter the global settings database (DATA_STALL_ALARM_AGRESSIVE_DELAY_IN_MS, DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS). On Mon, Dec 17, 2012 at 4:22 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other
Re: [android-developers] shoeboxed? wtf?
+1, now i filter out emails from that domain :) On 17 December 2012 16:32, TreKing treking...@gmail.com wrote: On Mon, Dec 17, 2012 at 2:59 AM, Piren gpi...@gmail.com wrote: Am i the only one that keeps getting an email from some site named Shoeboxed every time i post to this group? Nope... - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
I don't think so. This is not designed for users to tweak. If you can figure out who is sending data we might be able to do something. R On Mon, Dec 17, 2012 at 8:34 AM, Goncalo Oliveira gonc...@minkan.netwrote: What if I don't have root access? Is there anything else I can do? On 17 December 2012 16:08, Robert Greenwalt rgreenw...@google.com wrote: If you have root you can alter the global settings database (DATA_STALL_ALARM_AGRESSIVE_DELAY_IN_MS, DATA_STALL_ALARM_NON_AGGRESSIVE_DELAY_IN_MS). On Mon, Dec 17, 2012 at 4:22 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of those steps is to tear down and rebuild the connection. That's what you're seeing. I believe UDP packets may get ignored, thus my tcp/udp question. You can see some log lines in the radio log like updateDataStallInfo: OUT send=... that show what' What are you doing in your keepalive pings? Sending a char with no response, or echoing a response back? That could cause the problem because there'd be outgoing traffic but no incoming traffic. If there were NO outgoing the data stall detector shouldn't fire. If you change your keep-alive to send both ways you should be fine. This makes me wonder what your other test device is doing - the one that doesn't show this problem. Are you using rooted
Re: [android-developers] Mobile network idle sockets disconnected
Guess I need a rooted device for that... -- QTAGUID STATS INFO (su root cat /proc/net/xt_qtaguid/stats) -- *** exec(su): Permission denied On 17 December 2012 16:33, Robert Greenwalt rgreenw...@google.com wrote: Interesting. If you run a test and take a bugreport you whould be able to look at QTAGUID STATS INFO in the bugreport. It shows the packets/bytes sent per app. Take a bugreport first, let your device sit for 10 minutes and take another. The 4th column is the UID of the app and you should be able to figure our who is responsible for the data. R On Mon, Dec 17, 2012 at 7:00 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, some more information that might be relevant. As I told you, I was using a sim card that connects through our own APN, that restricts access to our servers. Today I decided to try the same scenario with a different SIM, so I plugged a generic 3G sim card, without the APN restrictions. The result was that I no longer had the stall problem... Could any Android background service be failing to connect and giving this outcome? Also, browsing the web I found this issue: http://code.google.com/p/android/issues/detail?id=35856 might it be related? Cheers On 17 December 2012 12:22, Goncalo Oliveira gonc...@minkan.net wrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since you last received a packet. On Fri, Dec 14, 2012 at 11:49 AM, Robert Greenwalt rgreenw...@google.com wrote: The data stall detector is watching for outgoing packets with no corresponding return. If it sees this for X (6 minute default) it tries a bunch of things and one of
Re: [android-developers] Mobile network idle sockets disconnected
Well, just to recap: You know that android is not supposed to keep an idle connection open for an extended period. Also you have declined the option to use of a heartbeat to keep the connection open. You also know that GCM (C2DM) have a way of keeping in touch. At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it. Best regards, Fred On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote: Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: Identifying HTTP Get requests in Android
On Mon, Dec 17, 2012 at 6:35 AM, Archana ramalingam.arch...@gmail.com wrote: Hi, Is it like having separate thread for each request(GET/POST/DELETE) ? Can you please explain? I was also thinking of AsyncTask, message queue or multithreading. Thanks! Basically, those are all equivalent... AsyncTask is using a thread pool under the hood, a message queue will probably be a key step in using multi threading also. One nice thing about these requests is that handling them typically doesn't involve much cross communication between requests: as long as you can serialize on transactions through shared pieces of the app. E.g., if you have a GET request which grabs some information from a database, you can spawn a thread to get the info from the different tables and amalgamate it. If you subsequently get a DELETE you can delete all the required information. One key thing here will be to think about transactions if you have more complex SQL statements. (Single queries are implicitly wrapped in transactions anyway, by sqlite, iirc...) There is nothing specific to Android here though, kris -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How i call class into my activity?
On Mon, Dec 17, 2012 at 10:36 AM, Antonis Kanaris ant...@in.gr wrote: Hello i find this class for upload data...but how i call it from my Activity? Learn Java and I'm sure you'll be able to figure it out. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mobile network idle sockets disconnected
Fred, Just to clarify, I haven't declined the heartbeat option. I just would like to avoid low timestamps such as every 5 minute. I'm trying to identify what's happening behind the scenes like Robert suggested, as it seems that it's not just my app that throws this stall. I'll post my results as soon as possible. On 17 December 2012 17:03, Fred Niggle fred.nig...@googlemail.com wrote: Well, just to recap: You know that android is not supposed to keep an idle connection open for an extended period. Also you have declined the option to use of a heartbeat to keep the connection open. You also know that GCM (C2DM) have a way of keeping in touch. At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it. Best regards, Fred On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote: Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
You could try using the UI in the Settings Data usage screen, but it's going to be hard to select a small enough time slice. Perhaps if you left it for a while so you had a bigger window to work from. On Mon, Dec 17, 2012 at 9:01 AM, Goncalo Oliveira gonc...@minkan.netwrote: Guess I need a rooted device for that... -- QTAGUID STATS INFO (su root cat /proc/net/xt_qtaguid/stats) -- *** exec(su): Permission denied On 17 December 2012 16:33, Robert Greenwalt rgreenw...@google.com wrote: Interesting. If you run a test and take a bugreport you whould be able to look at QTAGUID STATS INFO in the bugreport. It shows the packets/bytes sent per app. Take a bugreport first, let your device sit for 10 minutes and take another. The 4th column is the UID of the app and you should be able to figure our who is responsible for the data. R On Mon, Dec 17, 2012 at 7:00 AM, Goncalo Oliveira gonc...@minkan.netwrote: Robert, some more information that might be relevant. As I told you, I was using a sim card that connects through our own APN, that restricts access to our servers. Today I decided to try the same scenario with a different SIM, so I plugged a generic 3G sim card, without the APN restrictions. The result was that I no longer had the stall problem... Could any Android background service be failing to connect and giving this outcome? Also, browsing the web I found this issue: http://code.google.com/p/android/issues/detail?id=35856 might it be related? Cheers On 17 December 2012 12:22, Goncalo Oliveira gonc...@minkan.net wrote: Robert, isn't there any way to override the data stall detector behavior? or at least change the default value? On 17 December 2012 12:02, Goncalo Oliveira gonc...@minkan.net wrote: Thanks again for the feedback Robert. I'm sending a heartbeat package but an answer is given. Though, I'm only sending the heartbeat every 30 minutes. Well, currently I'm doing less than that, but only as a workaround for this problem. For the test in case, I'm not even sending data. I'm just connecting and listening. More information that might be relevant - I ran the test again, but this time I'm not even making a connection. I'm just listening to the connectivity changes - I was suspecting someone else was causing this. Turns out that the same behavior occurs, so someone else is causing this? 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.951 374 374 D GSM : [GsmDCT] cleanUpConnection: tearing down 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] DcActiveState msg.what=EVENT_DISCONNECT RefCount=0 12-17 11:50:27.951 374 1486 D GSM : [GsmDC-1] tearDownData radio is on, call deactivateDataCall 12-17 11:50:27.951 374 1486 D RILJ: [1903] DEACTIVATE_DATA_CALL 1 2 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: DISCONNECTING for type default, previous state:CONNECTED 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type mms,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type mms, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(mms): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:mms 12-17 11:50:27.959 374 374 D GSM : [ApnContext] set reason as pdpReset, for type cbs,current state IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] cleanUpConnection: tearDown=true reason=pdpReset 12-17 11:50:27.959 374 374 D GSM : [ApnContext] setState: IDLE for type cbs, previous state:IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] isDataPossible(cbs): possible=true isDataAllowed=true apnTypePossible=true apnContextisEnabled=false apnContextState()=IDLE 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] get active apn string for type:cbs 12-17 11:50:27.959 374 374 D GSM : [GsmDCT] stopNetStatPoll 12-17 11:50:28.006 374 374 D GSM : [GsmDCT] handleMessage msg={ what=270368 when=-1ms arg1=1 } 12-17 11:50:28.576 111 209 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 115 194 D RILClient: processUnsolicited(): resp_id (11010), len(59) 12-17 11:50:28.576 756 784 D RILS: Executing Am broadcast -a android.intent.action.PROXIMITY_CP --es cmd on 12-17 11:50:30.576 374 496 D RILJ: [1903] DEACTIVATE_DATA_CALL Cheers On 14 December 2012 19:58, Robert Greenwalt rgreenw...@google.comwrote: oops.. I truncated a sentence.. updateDataStallInfo logs show what's going on when a stall is detected. In your log you can see that 21 packets have been sent since
Re: [android-developers] Mobile network idle sockets disconnected
I'll try this here as well and see if I can repro the problem on a rooted device. On Mon, Dec 17, 2012 at 9:20 AM, Goncalo Oliveira gonc...@minkan.netwrote: Fred, Just to clarify, I haven't declined the heartbeat option. I just would like to avoid low timestamps such as every 5 minute. I'm trying to identify what's happening behind the scenes like Robert suggested, as it seems that it's not just my app that throws this stall. I'll post my results as soon as possible. On 17 December 2012 17:03, Fred Niggle fred.nig...@googlemail.com wrote: Well, just to recap: You know that android is not supposed to keep an idle connection open for an extended period. Also you have declined the option to use of a heartbeat to keep the connection open. You also know that GCM (C2DM) have a way of keeping in touch. At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it. Best regards, Fred On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote: Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Sent from an Ubuntu Desktop. Ubuntu Speech inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis now available on Google Play, along with Magnetic Door Alarm apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm . -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Gonçalo Oliveira -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How use and call AsyncTask into my code for upload data?
On Mon, Dec 17, 2012 at 9:13 AM, Antonis Kanaris ant...@in.gr wrote: How use and call AsyncTask into my code for upload data? 1 - Read the docs on AsyncTask. 2 - Read the samples on AsyncTask. 3- Try something. 3 - Use Google to get more samples / answers / details if you're stuck. 4 - Retry something. 5 - Ask here with a detailed question and explain clearly what you have tried that is not working. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How i call class into my activity?
SimpleHttpPut.main(new String[]); On Monday, December 17, 2012 10:36:23 AM UTC-6, Antonis Kanaris wrote: Hello i find this class for upload data...but how i call it from my Activity?On create... public class SimpleHttpPut { public static void main(String[] args) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://www.power7.net/temp.php;); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,30)); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How i call class into my activity?
That won't work... You can't call a static method from a non static context.. Kris On Mon, Dec 17, 2012 at 12:28 PM, bob b...@coolfone.comze.com wrote: SimpleHttpPut.main(new String[]); On Monday, December 17, 2012 10:36:23 AM UTC-6, Antonis Kanaris wrote: Hello i find this class for upload data...but how i call it from my Activity?On create... public class SimpleHttpPut { public static void main(String[] args) { HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://www.power7.net/temp.php;); try { ListNameValuePair nameValuePairs = new ArrayListNameValuePair(1); nameValuePairs.add(new BasicNameValuePair(temp,30)); post.setEntity(new UrlEncodedFormEntity(nameValuePairs)); HttpResponse response = client.execute(post); BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); String line = ; while ((line = rd.readLine()) != null) { System.out.println(line); } } catch (IOException e) { e.printStackTrace(); } } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Mobile network idle sockets disconnected
Robert, Kind of a wild guess but... GTalkService? logcat 12-17 17:14:47.212 473 1312 E *GTalkService: connectionClosed: no XMPPConnection - That's strange*! 12-17 17:14:47.220 213 223 E AlarmManagerService: android_server_AlarmManagerService_set to type=2, 4627.14900 12-17 17:14:47.665 292 292 D STATUSBAR-NetworkController: onServiceStateChanged state=0 12-17 17:14:47.673 292 292 W SignalStrength: getGsmLevel=3 12-17 17:14:47.673 292 292 W SignalStrength: getLevel=3 (SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 3) 12-17 17:14:47.673 292 292 D StatusBar.NetworkController: getDataServiceState : NoSuchMethodException 12-17 17:14:47.673 213 988 D STATUSBAR-NotificationService: cancelNotification - pkg:com.android.systemui, id:273, tag:null 12-17 17:14:47.689 3183 3183 D StatusChecker: onReceive : android.intent.action.SERVICE_STATE 12-17 17:14:47.689 3183 3183 D StatusChecker: Service state changed : 0 12-17 17:14:47.689 292 292 D STATUSBAR-NetworkController: onDataConnectionStateChanged: state=2 type=3 radio 12-17 17:15:49.618 371 371 D GSM : [GsmDCT] updateDataStallInfo: OUT sent=12 mSentSinceLastRecv=29 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] onDataStallAlarm: tag=24748 do recovery action=1 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] handleMessage msg={ what=270354 when=-3ms } 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] overall state is CONNECTED 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] doRecovery() cleanup all connections SERVICE com.google.android.gsf/.gtalkservice.service.GTalkService 12-17 17:15:08.158 473 473 D GTalkService: [ReconnectMgr] setInternalNetworkState: type=0, state=CONNECTED 12-17 17:15:08.158 473 473 I GTalkService/c: [AndroidEndpoint@1093684528] connect: acct=100, state=CONNECTING 12-17 17:15:08.168 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] doConnectDelegate: making main connection 12-17 17:15:08.168 473 1312 D Smack: [SSLXMPPConnection@1094231880] create socket connection(mtalk.google.com, 5228) 12-17 17:15:52.215 473 1312 D GTalkService: [AndroidEndpoint@1093684528] doConnect: caught XMPPError connecting to mtalk.google.com:5228.: (502) -- caused by: java.net.ConnectException: failed to connect to mtalk.google.com/173.194.78.188 (port 5228): connect failed: ETIMEDOUT (Connection timed out) 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] handleDoConnectError for 100, error=2, xmppError=null 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] closeConnection for 100, notify=true, xmppConn=null 12-17 17:15:52.216 473 1312 E GTalkService: connectionClosed: no XMPPConnection - That's strange! 12-17 17:15:52.216 473 1312 D GTalkService: [ReconnectMgr] ### report Inet status: online=false, networkType=0 like I said, kind of a wild guess. I'll try to replicate here with another device also (rooted), as in this one I can't get the QTAGUID STATS. Cheers On 17 December 2012 17:24, Robert Greenwalt rgreenw...@google.com wrote: I'll try this here as well and see if I can repro the problem on a rooted device. On Mon, Dec 17, 2012 at 9:20 AM, Goncalo Oliveira gonc...@minkan.netwrote: Fred, Just to clarify, I haven't declined the heartbeat option. I just would like to avoid low timestamps such as every 5 minute. I'm trying to identify what's happening behind the scenes like Robert suggested, as it seems that it's not just my app that throws this stall. I'll post my results as soon as possible. On 17 December 2012 17:03, Fred Niggle fred.nig...@googlemail.comwrote: Well, just to recap: You know that android is not supposed to keep an idle connection open for an extended period. Also you have declined the option to use of a heartbeat to keep the connection open. You also know that GCM (C2DM) have a way of keeping in touch. At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it. Best regards, Fred On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote: Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.com wrote: On Mon, Dec 17, 2012 at 11:37 AM, Fred Niggle fred.nig...@googlemail.com wrote: I am wondering why you are trying to maintain an idle connection? You would do this for any sort of push delivery from the server: standard push notifications, VOIP for incoming calls, etc. So, for example, C2DM used to have this sort of heartbeat logic, and I presume GCM does too. -- Mark Murphy (a Commons Guy) http://commonsware.com |
Re: [android-developers] Mobile network idle sockets disconnected
Can't get QTAGUID STATS INFO on samsung. On the other device also fails retrieving that info. I'm going to try to get another device. Meanwhile, I published the whole bugreport output, maybe you can see something that I can't... https://www.dropbox.com/sh/18o32mndge2rrpd/vAeETMVnh6 Cheers On 17 December 2012 17:46, Goncalo Oliveira gonc...@minkan.net wrote: Robert, Kind of a wild guess but... GTalkService? logcat 12-17 17:14:47.212 473 1312 E *GTalkService: connectionClosed: no XMPPConnection - That's strange*! 12-17 17:14:47.220 213 223 E AlarmManagerService: android_server_AlarmManagerService_set to type=2, 4627.14900 12-17 17:14:47.665 292 292 D STATUSBAR-NetworkController: onServiceStateChanged state=0 12-17 17:14:47.673 292 292 W SignalStrength: getGsmLevel=3 12-17 17:14:47.673 292 292 W SignalStrength: getLevel=3 (SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 3) 12-17 17:14:47.673 292 292 D StatusBar.NetworkController: getDataServiceState : NoSuchMethodException 12-17 17:14:47.673 213 988 D STATUSBAR-NotificationService: cancelNotification - pkg:com.android.systemui, id:273, tag:null 12-17 17:14:47.689 3183 3183 D StatusChecker: onReceive : android.intent.action.SERVICE_STATE 12-17 17:14:47.689 3183 3183 D StatusChecker: Service state changed : 0 12-17 17:14:47.689 292 292 D STATUSBAR-NetworkController: onDataConnectionStateChanged: state=2 type=3 radio 12-17 17:15:49.618 371 371 D GSM : [GsmDCT] updateDataStallInfo: OUT sent=12 mSentSinceLastRecv=29 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] onDataStallAlarm: tag=24748 do recovery action=1 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] handleMessage msg={ what=270354 when=-3ms } 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] overall state is CONNECTED 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] doRecovery() cleanup all connections SERVICE com.google.android.gsf/.gtalkservice.service.GTalkService 12-17 17:15:08.158 473 473 D GTalkService: [ReconnectMgr] setInternalNetworkState: type=0, state=CONNECTED 12-17 17:15:08.158 473 473 I GTalkService/c: [AndroidEndpoint@1093684528] connect: acct=100, state=CONNECTING 12-17 17:15:08.168 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] doConnectDelegate: making main connection 12-17 17:15:08.168 473 1312 D Smack: [SSLXMPPConnection@1094231880] create socket connection(mtalk.google.com, 5228) 12-17 17:15:52.215 473 1312 D GTalkService: [AndroidEndpoint@1093684528] doConnect: caught XMPPError connecting to mtalk.google.com:5228.: (502) -- caused by: java.net.ConnectException: failed to connect to mtalk.google.com/173.194.78.188 (port 5228): connect failed: ETIMEDOUT (Connection timed out) 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] handleDoConnectError for 100, error=2, xmppError=null 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] closeConnection for 100, notify=true, xmppConn=null 12-17 17:15:52.216 473 1312 E GTalkService: connectionClosed: no XMPPConnection - That's strange! 12-17 17:15:52.216 473 1312 D GTalkService: [ReconnectMgr] ### report Inet status: online=false, networkType=0 like I said, kind of a wild guess. I'll try to replicate here with another device also (rooted), as in this one I can't get the QTAGUID STATS. Cheers On 17 December 2012 17:24, Robert Greenwalt rgreenw...@google.com wrote: I'll try this here as well and see if I can repro the problem on a rooted device. On Mon, Dec 17, 2012 at 9:20 AM, Goncalo Oliveira gonc...@minkan.netwrote: Fred, Just to clarify, I haven't declined the heartbeat option. I just would like to avoid low timestamps such as every 5 minute. I'm trying to identify what's happening behind the scenes like Robert suggested, as it seems that it's not just my app that throws this stall. I'll post my results as soon as possible. On 17 December 2012 17:03, Fred Niggle fred.nig...@googlemail.comwrote: Well, just to recap: You know that android is not supposed to keep an idle connection open for an extended period. Also you have declined the option to use of a heartbeat to keep the connection open. You also know that GCM (C2DM) have a way of keeping in touch. At this point the main(only?) route to pursue is to look over the GCM libs from google and see how they do it. Best regards, Fred On 17 December 2012 16:49, Goncalo Oliveira gonc...@minkan.net wrote: Fred, I do understand that this is not a standard for most android apps. Therefore, there are a number of scenarios, like Mark pointed out. In this case, the connection is also used for data pushing. Polling would be much simpler, but it does not fit the required scenario. On 17 December 2012 16:43, Mark Murphy mmur...@commonsware.comwrote: On Mon, Dec 17, 2012 at 11:37
Re: [android-developers] Re: How i call class into my activity?
Kristopher Micinski wrote: That won't work... You can't call a static method from a non static context.. Of course you can. It's the other way around you can't. Otherwise you couldn't call, for example, 'Arrays.asList()' or an enum's 'valueOf()'. http://docs.oracle.com/javase/specs/jls/se7/html/jls-15.html#jls-15.12.3 bob wrote: SimpleHttpPut.main(new String[]); -- 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
[android-developers] Re: layout overlays
use popup window it provide action for on click cancel -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Mobile network idle sockets disconnected
It seems we switched our traffic stats strategy recently (JB) and now UDP packets are getting included when they arguably shouldn't be. If your DNS server is disconnected from the internet and can't resolve the mtalk.google.com queries you'll end up with outgoing queries and no responses. This will cause the resets you see every 6 minutes. If the DNS is resolving, then we probably have some other packet slipping out with no return. A couple questions: Is your production environment going to be this isloated? Gtalk is what's providing the GCM channel that many 3rd party apps need. Why aren't you using GCM? It provides a push notification system for apps, and by sharing it you get better battery life and have less development headache. I'm trying to contact the gcm/gtalk team to find out if there's a non-root way to turn off the service, but I'm not hopeful. R On Mon, Dec 17, 2012 at 10:13 AM, Goncalo Oliveira gonc...@minkan.netwrote: Can't get QTAGUID STATS INFO on samsung. On the other device also fails retrieving that info. I'm going to try to get another device. Meanwhile, I published the whole bugreport output, maybe you can see something that I can't... https://www.dropbox.com/sh/18o32mndge2rrpd/vAeETMVnh6 Cheers On 17 December 2012 17:46, Goncalo Oliveira gonc...@minkan.net wrote: Robert, Kind of a wild guess but... GTalkService? logcat 12-17 17:14:47.212 473 1312 E *GTalkService: connectionClosed: no XMPPConnection - That's strange*! 12-17 17:14:47.220 213 223 E AlarmManagerService: android_server_AlarmManagerService_set to type=2, 4627.14900 12-17 17:14:47.665 292 292 D STATUSBAR-NetworkController: onServiceStateChanged state=0 12-17 17:14:47.673 292 292 W SignalStrength: getGsmLevel=3 12-17 17:14:47.673 292 292 W SignalStrength: getLevel=3 (SignalStrength: 99 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 gsm|lte 3) 12-17 17:14:47.673 292 292 D StatusBar.NetworkController: getDataServiceState : NoSuchMethodException 12-17 17:14:47.673 213 988 D STATUSBAR-NotificationService: cancelNotification - pkg:com.android.systemui, id:273, tag:null 12-17 17:14:47.689 3183 3183 D StatusChecker: onReceive : android.intent.action.SERVICE_STATE 12-17 17:14:47.689 3183 3183 D StatusChecker: Service state changed : 0 12-17 17:14:47.689 292 292 D STATUSBAR-NetworkController: onDataConnectionStateChanged: state=2 type=3 radio 12-17 17:15:49.618 371 371 D GSM : [GsmDCT] updateDataStallInfo: OUT sent=12 mSentSinceLastRecv=29 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] onDataStallAlarm: tag=24748 do recovery action=1 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] handleMessage msg={ what=270354 when=-3ms } 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] overall state is CONNECTED 12-17 17:15:49.626 371 371 D GSM : [GsmDCT] doRecovery() cleanup all connections SERVICE com.google.android.gsf/.gtalkservice.service.GTalkService 12-17 17:15:08.158 473 473 D GTalkService: [ReconnectMgr] setInternalNetworkState: type=0, state=CONNECTED 12-17 17:15:08.158 473 473 I GTalkService/c: [AndroidEndpoint@1093684528] connect: acct=100, state=CONNECTING 12-17 17:15:08.168 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] doConnectDelegate: making main connection 12-17 17:15:08.168 473 1312 D Smack: [SSLXMPPConnection@1094231880] create socket connection(mtalk.google.com, 5228) 12-17 17:15:52.215 473 1312 D GTalkService: [AndroidEndpoint@1093684528] doConnect: caught XMPPError connecting to mtalk.google.com:5228.: (502) -- caused by: java.net.ConnectException: failed to connect to mtalk.google.com/173.194.78.188 (port 5228): connect failed: ETIMEDOUT (Connection timed out) 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] handleDoConnectError for 100, error=2, xmppError=null 12-17 17:15:52.215 473 1312 D GTalkService/c: [AndroidEndpoint@1093684528] closeConnection for 100, notify=true, xmppConn=null 12-17 17:15:52.216 473 1312 E GTalkService: connectionClosed: no XMPPConnection - That's strange! 12-17 17:15:52.216 473 1312 D GTalkService: [ReconnectMgr] ### report Inet status: online=false, networkType=0 like I said, kind of a wild guess. I'll try to replicate here with another device also (rooted), as in this one I can't get the QTAGUID STATS. Cheers On 17 December 2012 17:24, Robert Greenwalt rgreenw...@google.comwrote: I'll try this here as well and see if I can repro the problem on a rooted device. On Mon, Dec 17, 2012 at 9:20 AM, Goncalo Oliveira gonc...@minkan.netwrote: Fred, Just to clarify, I haven't declined the heartbeat option. I just would like to avoid low timestamps such as every 5 minute. I'm trying to identify what's happening behind the scenes like Robert suggested, as it seems that it's not just my app that throws this stall. I'll post my
[android-developers] Re: How use and call AsyncTask into my code for upload data?
*Create a subclass of AsyncTask like so:* private class DownloadFilesTask extends AsyncTaskURL, Integer, Long { protected Long doInBackground(URL... urls) { int count = urls.length; long totalSize = 0; for (int i = 0; i count; i++) { totalSize += Downloader.downloadFile(urls[i]); publishProgress((int) ((i / (float) count) * 100)); // Escape early if cancel() is called if (isCancelled()) break; } return totalSize; } protected void onProgressUpdate(Integer... progress) { setProgressPercent(progress[0]); } protected void onPostExecute(Long result) { showDialog(Downloaded + result + bytes); } } *Execute it like so:* new DownloadFilesTask().execute(url1, url2, url3); On Monday, December 17, 2012 9:13:18 AM UTC-6, Antonis Kanaris wrote: How use and call AsyncTask into my code for upload data? ListNameValuePair nameValuePairs = new ArrayListNameValuePair(2); //you should put here your temp variable nameValuePairs.add(new BasicNameValuePair(temperature, String.valueOf(30))); HttpPost request = post(http://mysite.com/temperature.php;, nameValuePairs); DefaultHttpClient client = generateHttpClient();HttpResponse httpResponse = client.execute(request); Where: public static DefaultHttpClient generateHttpClient(){ HttpParams params = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(params, TIMEOUT_CONNECTION); HttpConnectionParams.setSoTimeout(params, TIMEOUT_SOCKET); SchemeRegistry registry = new SchemeRegistry(); registry.register(new Scheme(http, PlainSocketFactory.getSocketFactory(), 80)); try{ KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType()); trustStore.load(null, null); SSLSocketFactory sf = new EasySSLSocketFactory(trustStore); sf.setHostnameVerifier( SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); registry.register(new Scheme(https, sf, 443)); }catch (Exception e) { e.printStackTrace(); } // params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); ClientConnectionManager cm = new ThreadSafeClientConnManager(params, registry); DefaultHttpClient client = new DefaultHttpClient(cm, params); client.setKeepAliveStrategy(new ConnectionKeepAliveStrategy() { @Override public long getKeepAliveDuration(HttpResponse response, HttpContext context) { return 60; // seconds } }); -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically selecting Map API version
Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? On Monday, December 17, 2012 7:55:36 AM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 7:45 AM, lbendlin lu...@bendlin.us javascript: wrote: Our application is using the Google Maps API v1 (and also the static map API due to the limitations of MapView), but it is not the main feature of the app. Most of the time we are running in the background and are bothering the user with audio and toasts. So while I welcome the new Map API v2 overlords I find it a bit curious that Google are trying to pull an Apple and enforce v2 happiness on my users. I would much rather let the users decide by themselves which map version they want. So from what I can understand the v2 documentation so far I have to - make OpenGL ES 2 non-mandatory in the manifest to avoid the app being hidden from the devices that don't have it, but are capable of running v1 just fine - test for presence of the Google Play Services on the device - give the user the choice between map types (is there a substantial difference between v1 satellite view and v2 satellite view?) - select the appropriate activity to start, either a MapActivity for v1, or an activity with a MapFragment for v2. Is there anything else I am missing? Depending upon your distribution mechanism, there's always the none of the above choice (e.g., Kindle Fire), where neither V1 nor V2 are available. Otherwise, I suspect that you're set, though I'm hoping to run my own experiments in this area later on today. With respect to satellite view, V2 has the two-finger swipe for changing your perspective from top-down to on an angle. And if you're planning on using V1 past March 3rd, bear in mind that you will no longer be able to get API keys for V1 at that time, so plan accordingly: http://commonsware.com/blog/2012/12/17/maps-v1-keys-going-going.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Aqui estão alguns sites onde você pode perguntar ou responder dúvidas sobre desenvolvimento de aplicações para Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] Dynamically selecting Map API version
On Mon, Dec 17, 2012 at 5:05 PM, lbendlin l...@bendlin.us wrote: Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? Yes, unless you wish to pirate some software. BTW, I literally just tried doing the backwards-compatibility stuff. In terms of OpenGL ES 2.0 support, we're screwed. Even if the device *has* support, if we have: uses-feature android:glEsVersion=0x0002 android:required=false/ then we blow up when trying to load a SupportMapFragment: 12-17 22:08:18.933: E/AndroidRuntime(7079): Caused by: java.lang.RuntimeException: Google Maps Android API only supports OpenGL ES 2.0 andabove. Please add uses-feature android:glEsVersion=0x0002 android:required=true / into AndroidManifest.xml A bug/feature request was filed by somebody already: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4699 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Nexus 10 and screen size qualifiers
We really need a tool determine how Google Play will filter our screen size qualifiers before we update our APKs. I have two APKs for an app. One is for devices with screens less than 10 in size and one for those of 10 or larger. This has worked fine for a year but now I'm learning that the Nexus 10 is excluded due to it's higher density. If I add two extra qualifiers for the higher density xlarge then 7 devices may get this APK (they did before I solve this a year ago) and and the user gets a cropped display. The APK for smaller screens uses page view displays and the xlarge APK has everything on one landscape screens using fragments. I would like to know in advance if adding the two extra qualifiers are going to break my 7 users. Note that the Supporting Multiple Screens documentation shows 7 to 10 screens overlapping. This was not a problem until these higher density 10 for some reason started appearing even though they only have 1280x800 displays (which should be 160dpi for 10 device). So a tool to help would be much appreciated rather than making our users guinea pigs. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to sync development projects?
Anyone here who can tell the story of I moved from SVN to git and have the consecutive app versioning numbers to prove it? On Monday, December 17, 2012 11:25:29 AM UTC-5, TreKing wrote: On Mon, Dec 17, 2012 at 2:33 AM, Piren gpi...@gmail.com javascript:wrote: It feels like we're not on the same page as to how SVN works... Apparently not, lol the files you Checkout are not stored in the cloud, you dont need any connection to the repository when you're doing doing any actions against the code. when you do a Checkout, you make a local copy of that specific version of the code on your computer (which makes them totally offline). you can do whatever you want without any connection to the SVN repository. Right ... once you want to update your code (what you now call sync it. either sync up to the repository or sync down from it) you just connect to the network and Update/Commit (what you do now with Sync Folder). That's the key point here - I don't want to wait until I've connected to my network to check in my code. Using SVN or any revision control would be pretty pointless if I did a weeks worth of changes between reconnecting to the repo and committing changes. I like to do small, frequent changes and commits as I go along. I sometimes also switch between different branches (new feature branch vs main vs bug fix branches, for example). So how I would commit to the repo or switch to a different branch within it *while disconnected from my home network* without a local offline copy of my entire repo on my laptop? On Mon, Dec 17, 2012 at 2:37 AM, Piren gpi...@gmail.com javascript:wrote: When you Checkout a project from SVN, you basically set up a synced offline folder on your computer with that specific version of the files (usually the latest unless chosen otherwise)... I know what an SVN Checkout does. It's the checking back in without access to the real repo that is the problem that I'm trying address. Do you follow me now? On Mon, Dec 17, 2012 at 2:46 AM, Nikolay Elenkov nikolay...@gmail.comjavascript: wrote: Of course you an simply use git and you can commit as much as you like even when offline, underground, etc. Then push to your repo when you get the chance. That is pretty much what I'm trying to achieve, though I haven't used GIT. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Dynamically selecting Map API version
This gets funner by the minute. I starred the bug. On Monday, December 17, 2012 5:11:46 PM UTC-5, Mark Murphy (a Commons Guy) wrote: On Mon, Dec 17, 2012 at 5:05 PM, lbendlin lu...@bendlin.us javascript: wrote: Thanks Mark. Are they really serious that you need to have a physical device to develop against Map API v2? Really? Yes, unless you wish to pirate some software. BTW, I literally just tried doing the backwards-compatibility stuff. In terms of OpenGL ES 2.0 support, we're screwed. Even if the device *has* support, if we have: uses-feature android:glEsVersion=0x0002 android:required=false/ then we blow up when trying to load a SupportMapFragment: 12-17 22:08:18.933: E/AndroidRuntime(7079): Caused by: java.lang.RuntimeException: Google Maps Android API only supports OpenGL ES 2.0 andabove. Please add uses-feature android:glEsVersion=0x0002 android:required=true / into AndroidManifest.xml A bug/feature request was filed by somebody already: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4699 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.4 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: about gtalk service and Google's winter cleaning
Does Anyone has any info? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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] about gtalk service and Google's winter cleaning
On Mon, Dec 17, 2012 at 6:32 PM, alex kyo kyokanxuj...@gmail.com wrote: e.g. You may login with your Gmail account in Google play on a PC browser, choose a app and click install. The device which has the same account registered will receive the push from Google and begin the installation. Will this kind of behavior still be available when the winter cleaning is over? The sync service is not directly related to C2DM and GCM (the new version), it is meant for non-Android devices. Even if there is some connection it is highly unlikely that they will break their own apps (Play Store, etc.). The Play Store client is self-updating, so you can be pretty sure it will either get updated in time, or they will add an exception for Android devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] about gtalk service and Google's winter cleaning
THX Niko, I read this post http://www.engadget.com/2012/12/14/google-winter-cleaning/ and guess it should be some google-related apps on non-android devices stuff. On Tuesday, December 18, 2012 12:20:02 PM UTC+9, Nikolay Elenkov wrote: On Mon, Dec 17, 2012 at 6:32 PM, alex kyo kyokan...@gmail.comjavascript: wrote: e.g. You may login with your Gmail account in Google play on a PC browser, choose a app and click install. The device which has the same account registered will receive the push from Google and begin the installation. Will this kind of behavior still be available when the winter cleaning is over? The sync service is not directly related to C2DM and GCM (the new version), it is meant for non-Android devices. Even if there is some connection it is highly unlikely that they will break their own apps (Play Store, etc.). The Play Store client is self-updating, so you can be pretty sure it will either get updated in time, or they will add an exception for Android devices. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with AnimationDrawable
Hi, I had the same problem. you can execute a runnable to start your frame animation like this Handler startHandler = new Handler(); startHandler.postDelayed(new Runnable(){ public void run() { //animate animate(); }}, 100); hope it helps you On Tuesday, November 23, 2010 5:34:50 PM UTC+9, Serdel wrote: Hello, I have problems with AnimationDrawable which i use to animate a 'striped' gif file. In fact I have two animations that I want to use in one activity (and they must be used in the same activity). Both animation are build with 7 frames : ?xml version=1.0 encoding=utf-8? animation-list xmlns:android=http://schemas.android.com/apk/res/ android android:id=@+id/analyse android:oneshot=false item android:drawable=@drawable/analyse_frame_0 android:duration=50 / item android:drawable=@drawable/analyse_frame_1 android:duration=50 / item android:drawable=@drawable/analyse_frame_2 android:duration=50 / item android:drawable=@drawable/analyse_frame_3 android:duration=50 / item android:drawable=@drawable/analyse_frame_4 android:duration=50 / item android:drawable=@drawable/analyse_frame_5 android:duration=50 / item android:drawable=@drawable/analyse_frame_6 android:duration=50 / /animation-list The second one is the same, just different files but also 7 frames. In the onCrate() method of my activity I start the first animation and launch a 15 second timer (the idea is that the first animation is playing when the timer ticks). I use the following code: //The onCreate method of the activity class. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.third); setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); layout = (LinearLayout)findViewById(R.id.widget40); analyseImage = (ImageView) findViewById(R.id.ImageView02); analyseImage.setBackgroundResource(R.drawable.analyse_animation); analyseAnimation = (AnimationDrawable) analyseImage.getBackground(); analyseAnimation.start(); MyCount counter = new MyCount(15000,1000);. counter.start(); } Unfortunately this does not work. However when the timer finishes I want to start a second animation and launch a seperate thread. And this works - when I start the animation in the 'onFinish' method of the timer, the animation starts properly: //the onFinish() method of timer. public void onFinish() { layout.setBackgroundResource(R.drawable.id_app4); analyseImage .destroyDrawingCache(); analyseImage .setVisibility(View.GONE); connectImage = (ImageView) findViewById(R.id.ImageView02); connectImage.setBackgroundResource(R.drawable.connect_animation); connectAnimation = (AnimationDrawable) analyseImage.getBackground(); connectAnimation.start(); startThread(connectTh,myConnector); } Unfortunately this does not work so good because it only works when I comment-out the first one - otherwise I get an Exception : 'OutOfMemoryError: bitmap size exceeds VM budget'. As you see I try to release some memory but this does not help. This is a crucial problem, since my application is working in a 'ring' of couple activities. So when I finish the last one it goes back to the first one - it is possible that the activity with animations will be called many times in the life-time of the whole app. So I need to release the memory from the second one as well. So now here are my questions: - why can't I start the first animation instantly after the activity starts and how to do this? - How to release the memory from the animations? Can anyone please help? PS: I am working on Android 1.5 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Problem with AnimationDrawable
Hi, I had the same problem. you can execute a runnable to start your frame animation without using buttons like this Handler startHandler = new Handler(); startHandler.postDelayed(new Runnable(){ public void run() { //animate animate(); }}, 100); hope it helps you -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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: IBM Worklight
what's the difference between it and phonegap ? 2012/12/17 bob b...@coolfone.comze.com *The IBM Worklight Developer Edition is a self-contained, easy-to-install plugin for the Eclipse IDE. While IBM Worklight Enterprise and Consumer Editions consist of separate development environment and server components, the Developer Edition packages them into a single Eclipse download without the need to install database or application servers. This edition is free for evaluation purposes.* [sic] On Monday, December 17, 2012 5:02:48 AM UTC-6, Resurrcting the champ wrote: Dear Geeks, Does anyone hear about IBM Worklight. How could i use it, are there any tutorials about. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en