[android-developers] UTF8-Encoding problem in TextView
Hello Every one How can i UTF8 Font in TexView. Here am getting Font rendering problem in Android TextView.Let me know any one have a solution for this. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: OutofMemory Excepton error in android
Thanks for ur Suggestion. Ooops. I tried it now still same error java.lang.outofMemoryError. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Thu, Mar 14, 2013 at 11:15 AM, Harish hkacho...@gmail.com wrote: Hi Try this code if it helps System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/** output),1024))); FileOutputStream fis = openFileOutput(input, Context.MODE_PRIVATE); fis.write(input.getText().**toString().getBytes()); fis.write(\n.getBytes()); fis.close(); LTProc.main(new String[]{/data/data/com.** samsaadhani.sandhi1/files/skt_**morf.bin,/data/data/com.** samsaadhani.sandhi1/files/**input}); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: OutofMemory Excepton error in android
Thanks to everyone. Am using code which are written by the apertium people. Am just integrating apertium program to my programs. I have increase heap size in emulator some time i did not get any result after that i reduced heap size to middle level at this i got same OOM error. What should i do if i suppose to use apertium in my android application. Let we assume that if it works fine when we increase heap size in emulator,later i will install that app in some android tablet or phone. how can we increase the heap size in such devices. Why am have to use Apertium ? Am developing applications which are related to sanskrit languages.Here we can find what exactly am doing .http://sanskrit.uohyd.ac.in/scl/ (web verison) to android platform convertion Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Thu, Mar 14, 2013 at 1:45 PM, Piren gpi...@gmail.com wrote: Actually even 5K can crash his app... it all depends on what he did before the allocation. Android has a nasty bug of claiming you dont have enough memory even if your heap has more than enough free space if it grew close to its maximum value previously (and dont't forget fragmentation as well, 10MB of free heap doesn't mean you can allocate 10MB). Basically i found that if i get a OOM exception when the allocated size isn't something enormous, it's usually because is misbehaved earlier :) So my suggestion to Karunakar (assuming he can't do random reads on the file and the file isn't really big) is to profile his app and see if he needs to do some fixing up before he gets to the point of reading the file. Other than that, he can always try the big heap flag or just dump everything to native heap. On Thursday, March 14, 2013 7:38:56 AM UTC+2, Kristopher Micinski wrote: how big is the file you're reading..? In general, you can't allocate that much space on Android. To combat this you need to be able to do lazy I/O. But ... are you trying to read in a dictionary (using apertium?). I'd guess this is a few megabytes at least right? Having a megabyte or two on the heap won't necessarily crash your app, but having more than that certainly can! (This of course, depends on the device..) Kris On Thu, Mar 14, 2013 at 12:49 AM, karunakar medamoni kannaia...@gmail.com wrote: Hi Richard Good Morning. As per your mail am attaching my android log file. Please have look at once. I ran the same program from command line and also in eclipse. I got the output , when i try to integrate with android am getting this error. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Wed, Mar 13, 2013 at 10:43 PM, karunakar medamoni kannaia...@gmail.com wrote: Hello Richard Thank u for u reply. I will be back with full stack from LogCat by tomorrow morning. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Wed, Mar 13, 2013 at 6:11 PM, RichardC richard...@googlemail.**com wrote: Can you include the full stack trace from LogCat please. On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote: Hello Every one. This is karunakar working on android project. Am converting apertium based webpage to android app. When i try to run com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file and input file am getting this error. If any help from any one it would be helpful for me. Here am pasting my code please have a look at once. System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/**output; FileOutputStream fis = openFileOutput(input, Context.MODE_PRIVATE); fis.write(input.getText().**toString().getBytes()); fis.write(\n.getBytes()); fis.close(); LTProc.main(new String[]{/data/data/com.**samsaadhani.sandhi1/files/skt_** morf.bin,/data/data/com.**samsaadhani.sandhi1/files/**input}); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-d...@**googlegroups.com To unsubscribe from this group, send email to android-developers+**unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/**group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/**topic/android-developers/feA_** XKu8N1o/unsubscribe?hl=enhttps://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en. To unsubscribe from this group and all its topics, send an email to android-developers+**unsubscr
[android-developers] OutofMemory Excepton error in android
Hello Every one. This is karunakar working on android project. Am converting apertium based webpage to android app. When i try to run com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file and input file am getting this error. If any help from any one it would be helpful for me. Here am pasting my code please have a look at once. System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(/data/data/com.samsaadhani.sandhi1/files/output; FileOutputStream fis = openFileOutput(input, Context.MODE_PRIVATE); fis.write(input.getText().toString().getBytes()); fis.write(\n.getBytes()); fis.close(); LTProc.main(new String[]{/data/data/com.samsaadhani.sandhi1/files/skt_morf.bin,/data/data/com.samsaadhani.sandhi1/files/input}); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: OutofMemory Excepton error in android
Hello Richard Thank u for u reply. I will be back with full stack from LogCat by tomorrow morning. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Wed, Mar 13, 2013 at 6:11 PM, RichardC richard.crit...@googlemail.comwrote: Can you include the full stack trace from LogCat please. On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote: Hello Every one. This is karunakar working on android project. Am converting apertium based webpage to android app. When i try to run com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file and input file am getting this error. If any help from any one it would be helpful for me. Here am pasting my code please have a look at once. System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/** output; FileOutputStream fis = openFileOutput(input, Context.MODE_PRIVATE); fis.write(input.getText().**toString().getBytes()); fis.write(\n.getBytes()); fis.close(); LTProc.main(new String[]{/data/data/com.** samsaadhani.sandhi1/files/skt_**morf.bin,/data/data/com.** samsaadhani.sandhi1/files/**input}); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [android-developers] Re: OutofMemory Excepton error in android
Hi Richard Good Morning. As per your mail am attaching my android log file. Please have look at once. I ran the same program from command line and also in eclipse. I got the output , when i try to integrate with android am getting this error. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Wed, Mar 13, 2013 at 10:43 PM, karunakar medamoni kannaiah.chi...@gmail.com wrote: Hello Richard Thank u for u reply. I will be back with full stack from LogCat by tomorrow morning. Thanks Regards M. Karunakar University of Hyderabad,Hyd, 9491388035. On Wed, Mar 13, 2013 at 6:11 PM, RichardC richard.crit...@googlemail.comwrote: Can you include the full stack trace from LogCat please. On Wednesday, March 13, 2013 11:37:16 AM UTC, karunakar medamoni wrote: Hello Every one. This is karunakar working on android project. Am converting apertium based webpage to android app. When i try to run com.apertium.lttoolbox.LTPorc class with two arguments filename.bin file and input file am getting this error. If any help from any one it would be helpful for me. Here am pasting my code please have a look at once. System.setOut(new PrintStream(new BufferedOutputStream(new FileOutputStream(/data/data/**com.samsaadhani.sandhi1/files/** output; FileOutputStream fis = openFileOutput(input, Context.MODE_PRIVATE); fis.write(input.getText().**toString().getBytes()); fis.write(\n.getBytes()); fis.close(); LTProc.main(new String[]{/data/data/com.** samsaadhani.sandhi1/files/skt_**morf.bin,/data/data/com.** samsaadhani.sandhi1/files/**input}); -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this 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 a topic in the Google Groups Android Developers group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-developers/feA_XKu8N1o/unsubscribe?hl=en . To unsubscribe from this group and all its topics, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. 03-14 04:47:42.618: D/dalvikvm(360): GC_FOR_ALLOC freed 47K, 3% free 6358K/6531K, paused 41ms 03-14 04:47:42.618: I/dalvikvm-heap(360): Grow heap (frag case) to 6.789MB for 513744-byte allocation 03-14 04:47:42.707: D/dalvikvm(360): GC_FOR_ALLOC freed 1K, 3% free 6859K/7047K, paused 55ms 03-14 04:47:42.807: D/dalvikvm(360): GC_CONCURRENT freed 1K, 3% free 6859K/7047K, paused 4ms+2ms 03-14 04:47:43.378: D/szipinf(360): Initializing inflate state 03-14 04:47:43.378: D/szipinf(360): Initializing zlib to inflate 03-14 04:47:51.408: V/TLINE(360): new: android.text.TextLine@4062c768 03-14 04:47:54.797: V/TLINE(360): new: android.text.TextLine@406f4e40 03-14 04:48:04.887: D/dalvikvm(360): GC_CONCURRENT freed 347K, 6% free 7055K/7495K, paused 4ms+3ms 03-14 04:48:05.168: D/dalvikvm(360): GC_CONCURRENT freed 508K, 8% free 7080K/7687K, paused 4ms+4ms 03-14 04:48:05.298: D/dalvikvm(360): GC_FOR_ALLOC freed 225K, 8% free 7105K/7687K, paused 46ms 03-14 04:48:05.558: D/dalvikvm(360): GC_CONCURRENT freed 467K, 8% free 7191K/7751K, paused 7ms+6ms 03-14 04:48:05.757: D/dalvikvm(360): GC_CONCURRENT freed 496K, 8% free 7216K/7815K, paused 8ms+3ms 03-14 04:48:05.988: D/dalvikvm(360): GC_CONCURRENT freed 408K, 7% free 7339K/7879K, paused 4ms+5ms 03-14 04:48:06.258: D/dalvikvm(360): GC_CONCURRENT freed 150K, 4% free 7764K/8007K, paused 5ms+6ms 03-14 04:48:06.528: D/dalvikvm(360): GC_CONCURRENT freed 136K, 3% free 8163K/8391K, paused 9ms+7ms 03-14 04:48:06.847: D/dalvikvm(360): GC_CONCURRENT freed 200K, 4% free 8674K/8967K, paused 4ms+10ms 03-14 04:48:07.208: D/dalvikvm(360): GC_CONCURRENT freed 179K, 4% free 9230K/9543K, paused 3ms+9ms 03-14 04:48:07.617: D/dalvikvm(360): GC_CONCURRENT freed 334K, 5% free 9948K/10375K, paused 10ms+13ms 03-14 04:48:07.757: D/dalvikvm(360
[android-developers] porting webapplication on android platform
hello every one. This is karunakar working as a senior programmer and new to android platform.i have developed one webapplication using perl and cgi. now am trun to port my webapplication to android platform. am totally new to android. can any give the suggestion how can i achieve this. the webapplication is regarding to machine translation system. thanks every one. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en