[android-developers] Re: Reduced Performance with HttpUrlConnection on my device - Samsung S7, Android 6.0.1

2016-09-29 Thread Red Lobster
, 2016 at 3:58:29 PM UTC+5:30, Red Lobster wrote: > > Hi, > Since last few days I am experiencing the performance delays with my app. > When I investigated in detail, I found that my connection to the server and > fetching the data is taking longer [10 sec]. > > I also found

[android-developers] Reduced Performance with HttpUrlConnection on my device - Samsung S7, Android 6.0.1

2016-09-26 Thread Red Lobster
Hi, Since last few days I am experiencing the performance delays with my app. When I investigated in detail, I found that my connection to the server and fetching the data is taking longer [10 sec]. I also found out that this problem is occurring on my device only [samsung s7] which has

[android-developers] getLoaderManager().restartLoader works unstably

2013-05-29 Thread Red Planet
super.onContextItemSelected(item); } } **The result.** I don't have any errors in log but sometimes the list view isn't refreshed. The application is on GitHub https://github.com/Red-Planet/Sandbox_Android, ActionBarSherlock https://github.com/Red-Planet/ActionBarSherlock is used

[android-developers] Stop all the threads in ExecutorService

2013-01-19 Thread Red Planet
Hello. I have to stop all the threads from an ExecutorService object. I used the example from http://developer.android.com/reference/java/util/concurrent/ExecutorService.html#awaitTermination(long, java.util.concurrent.TimeUnit) and only 1 out if 15 threads was terminated. Why? Is it a

[android-developers] Stop all the threads from ExecutorService

2013-01-19 Thread Red Planet
Hello. I have to stop all the threads from an ExecutorService object. I used the example from http://developer.android.com/reference/java/util/concurrent/ExecutorService.html#awaitTermination(long, java.util.concurrent.TimeUnit) and only 1 out if 15 threads was terminated. Why? Is it a

[android-developers] Re: Writing files in UTF-8

2012-03-30 Thread Remote Red
But the question marks in the in the file i attached are because google groups did not get it right the document... Locally it works and I can send it through mail without issues. Sorry but I find it hard to believe that when Google offers us a platform to discuss development and offers the

[android-developers] Re: Writing files in UTF-8

2012-03-30 Thread Remote Red
.put(0, (byte) 0xEF) .put(1, (byte) 0xBB) .put(2, (byte) 0xBF) However when the file is created and I open it with either notepad++ or excel the first characters are  not show, the file always starts with * artdate* . Any idea how to work around this? You are using put(). Those three

[android-developers] Re: Writing files in UTF-8

2012-03-30 Thread Remote Red
Looping? byte[] bom = {(byte)0xEF, (byte)0xBB, (byte)0xBF }; byte[] byteResult = Charset.forName(UTF-8).encode(result.toString()).array(); fos = new FileOutputStream(file); fos.write(bom); fos.write(byteResult); Doesn't this work? -- You received this message because you

[android-developers] Re: Writing files in UTF-8

2012-03-29 Thread Remote Red
    out = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(file), UTF-8     )); Why are you using FileOutputStream AND OutputStreamWriter AND BufferedWriter?     out.write(result.toString()); What is the type of result? How did you put content in it? You are not checking

[android-developers] Re: Writing files in UTF-8

2012-03-29 Thread Remote Red
On 29 mrt, 13:03, Dirk Vranckaert dirkvrancka...@gmail.com wrote: Why are you using FileOutputStream AND OutputStreamWriter AND BufferedWriter? I need the OutputStreamWriter to specify the encoding, Ok. But then why also a BufferedWriter? The result is a CSV file, Sorry but you did not

[android-developers] Re: Writing files in UTF-8

2012-03-29 Thread Remote Red
Just a thougth: does the produced file have a BOM (Byte Order Mark) as the first bytes? If not you have to write them yourself. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Writing files in UTF-8

2012-03-29 Thread Remote Red
I've added out.write('\ufeff'); to write the Byte Order Mark That is not the bom for utf-8. You wrote the bom for UTF-16. http://en.wikipedia.org/wiki/Byte_order_mark The bom for utf-8 is 0xEF, 0xBB, 0xBF. ... and you can see in the attachment the export now works fine! :) Those attachment

[android-developers] Re: Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-13 Thread Remote Red
On 12 mrt, 15:06, Mark Murphy mmur...@commonsware.com wrote: Correct, but that is the portion of on-board flash that Acer designated as external storage. Very strange that this is possible. My understanding of external was/ is that that would be the sdCard. But maybe b0b points out how I have

[android-developers] Re: Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-13 Thread Remote Red
On 12 mrt, 15:06, Mark Murphy mmur...@commonsware.com wrote: Bear in mind that your app may not have rights to write to this mount point. That would be realy silly as it is my tablet and my sdcard. What else would I do with a sdcard like reading and writing? -- You received this message

[android-developers] Re: Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-13 Thread Remote Red
On 13 mrt, 12:24, Mark Murphy mmur...@commonsware.com wrote: The firmware may have rights that SDK applications do not. As I'm quite new to Android programming I had not even tested this. Fear enclosed my mood. Luckily my app can write to the microSD card. Now I don't have to throw it out the

[android-developers] Tablet Acer Iconica A100 and Environment.getExternalStorageDirectory();

2012-03-12 Thread Remote Red
The tablet Acer Iconica A100 returns for Environment.getExternalStorageDirectory() /mnt/sdcard Actually that is intern memory as the microSD card is mounted as /mnt/external_sd I would like my app to find the microSD card. What are my options? -- You received this message because you are

[android-developers] SQLite and SQL injection

2012-03-08 Thread Red Planet
Hi! How can I protect my queries if I like to use rawQuery method? For example, I wrote a query String query = SELECT + DbHelper.TABLE_WORDS + . + DbHelper.WORDS_WORD + , + DbHelper.TABLE_TRANS + . + DbHelper.TRANS_WORD + FROM + DbHelper.TABLE_WORDS + INNER JOIN +

[android-developers] Re: How to format a String in an email so Outlook will print the line breaks?

2012-03-06 Thread Remote Red
Did you try \r\n already? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com

[android-developers] Re: Android how to send the hex code out?

2012-03-06 Thread Remote Red
0xfa? If you tell me how you send out the f and the a then I tell you how to do that with the 0 and the x. ;-). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

[android-developers] Re: How to format a String in an email so Outlook will print the line breaks?

2012-03-06 Thread Remote Red
So if you read that mail with a real mail reader -like Thunderbird- all is ok? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send

[android-developers] Re: HOw to extract only number

2012-03-06 Thread Remote Red
str=txt.getText().toString(); int space1=str.indexOf( ); if ( space1 0 ) s=str.substring(0, space1); else s= str; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: HTTP POST to Web Server running on Android Device

2012-03-04 Thread Remote Red
line=POST / HTTP/1.1 line=Content-Length: 23 No you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown. You did not see that because the catch does nothing. Add a Log.i

[android-developers] Re: HTTP POST to Web Server running on Android Device

2012-03-04 Thread Remote Red
line=POST / HTTP/1.1 line=Content-Length: 23 No, you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown which you did not see because the catch statement is empty. Add a

[android-developers] Re: HTTP POST to Web Server running on Android Device

2012-03-04 Thread Remote Red
line=POST / HTTP/1.1 line=Content-Length: 23 No, you would see: line=POST / HTTP/1.1 line=Content-Length: 23 line=0 if a null was returned. But a null is never returned. Still your loop ends as instead an exception is trown which you did not see because the catch statement is empty. Add a

[android-developers] Does android support EAP-SIM authentica​tion for WIFI?

2012-02-07 Thread mask red
if yes, which version,2.​3, 3.0 or 4.0? if not,when will supprot this function? if l wan to do EAP-SIM authentication on nexus, how should i do? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] Re: Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-27 Thread Glorious Red Leader
. On Sep 24, 5:05 pm, Glorious Red Leader arturothebur...@gmail.com wrote: I have not seen this error on the Droid Bionic, Motorola Photon 4g, HTC Evo 3d, or the Thunderbolt - only on the Sprint Samsung Galaxy sII Epic Touch 4G (android 2.3.4). This sample application will throw a leaked

[android-developers] Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-26 Thread Glorious Red Leader
I have not seen this error on the Droid Bionic, Motorola Photon 4g, HTC Evo 3d, or the Thunderbolt - only on the Sprint Samsung Galaxy sII Epic Touch 4G (android 2.3.4). This sample application will throw a leaked IntentReceiver error by following these steps: - Somehow aquire a Sprint Samsung

Re: [android-developers] Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-26 Thread Glorious Red Leader
(this, ActivityTwo.class); startActivity(intent); } I also tried creating the menu and submenu programatically - still getting the error. On Mon, Sep 26, 2011 at 1:48 PM, Mark Murphy mmur...@commonsware.com wrote: On Sat, Sep 24, 2011 at 8:05 PM, Glorious Red Leader arturothebur...@gmail.com wrote

Re: [android-developers] Activity has leaked IntentReceiver - Are you missing a call to unregisterReceiver() - Sprint Samsung Galaxy s2 (Android 2.3.4)

2011-09-26 Thread Glorious Red Leader
Mark thanks for taking the time to help. Going to contact the samsung people. On Mon, Sep 26, 2011 at 4:20 PM, Mark Murphy mmur...@commonsware.com wrote: It's probably a device-specific bug, given the rest of your testing. On Mon, Sep 26, 2011 at 7:17 PM, Glorious Red Leader arturothebur

[android-developers] Excluding specific .xml files from being built by Android.mk

2011-01-28 Thread red
Hello, I wish to be able to exclude a few named xml files from being included in the resulting .apk file. Specifically, the Makefile I *think* I need to edit is: /frameworks/base/core/res/Android.mk The resulting package file is /out/target/product/camden/system/ framework/framework-res.apk I

[android-developers] Re: Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-21 Thread wayne mcfadden- Red Droid
Thanks a bunch Xavier. That worked I now can see the map in the 1.5 toolkit. A few notes on what I did: 1. Regenerate the certificate using the new location for the 1.5 environment. 2. Regenerate the key: I used the html file that comes with the 1.5 documentation rather than the going to the

[android-developers] Map view not displaying tiles in 1.5 but it's fine in 1.1

2009-04-20 Thread wayne mcfadden- Red Droid
I'm debugging an application in 1.5 and my map view is not showing the tiles. My overlays show up fine. The tiles show correctly if I run the appication in 1.1. (so the key that i'm using there is fine in the xml) So this looks like it may be a map key problem. I'm trying to use the same

[android-developers] Re: maps api and 1.5

2009-04-19 Thread wayne mcfadden- Red Droid
Hi Guys, The problem I think was that while trying to get this running and trying different configs, I imported the maps.jar via the class path. All you need to do is set the build target to be the Google APIs like the responses above say. Once I removed the jar from the class path, the app

[android-developers] maps api and 1.5

2009-04-18 Thread wayne mcfadden- Red Droid
Sorry guys, originally i posted to discussion which is the wrong place. I'm migrating over an application from 1.1 to 1.5 and it uses the Google maps. I got through most of the class path issues resolved I think but when launching the application I get the following message. 04-18

[android-developers] Re: upgrade issues and other market problems for developers

2009-03-01 Thread wayne mcfadden- Red Droid
I have this problem too. Hopefully google will fix the problem and remove the one star rankings caused by the download issue. This is obviosly going to affect everyone who publishes to the marketplace so just balance it out. On Feb 28, 2:39 pm, carnivalcom...@gmail.com carnivalcom...@gmail.com

[android-developers] Re: Think twice before turning on the Copy Protection option! -- there's a serious bug in Market

2009-02-27 Thread wayne mcfadden- Red Droid
I'm also having this problem. I have a couple of apps using copy protection though and this is the first one that has run into this problem. I first tried to upload my app via firefox and forgot that that that interface is broken and has been broken for the past 2-3 weeks. So I switched to

[android-developers] Market Place not updating downloads and active users

2009-02-17 Thread wayne mcfadden- Red Droid
I have an application published in marketplace and its not updating the active users/number of downloads on the phone display or the developer console. My other application appears to be fine. Anyone else seeing this? Also when the application was uploaded over the weekend there were issues