Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread karunakar medamoni
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

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Kristopher Micinski
Throwing a line of code isn't going to stop your library from attempting to buffer a huge file... Kris On Thu, Mar 14, 2013 at 1:59 AM, karunakar medamoni kannaiah.chi...@gmail.com wrote: Thanks for ur Suggestion. Ooops. I tried it now still same error java.lang.outofMemoryError. Thanks

[android-developers] Flickr Photo upload error

2013-03-14 Thread cgttester gold
public void sendPost() { String title = posttitle.getText().toString(); String body = poststring.getText().toString(); HttpPost hpost = new HttpPost(http://api.tumblr.com/v2/blog/; + blogname.getText().toString() + .tumblr.com/post?api_key= + token); ListNameValuePair

[android-developers] File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
I have a file called Start and extending FragmentActivity, this file is listed in manifest file still showing File not found exception any clue please - 1. Here is error code 03-14 13:06:49.074: W/dalvikvm(25684): threadid=1: thread exiting with uncaught exception (group=0x40eb8258) 03-14

[android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
you're not defining the activity correctly in the manifest... the activity name field needs a fully classified path to the class or should start with a period to fill in the package declared in the manifest. see: http://developer.android.com/guide/topics/manifest/activity-element.html On

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
Piren, Thanks But i test all 3 posibility like - com.playcez.start .start start but result is same. :( any clue further.. :) On Thu, Mar 14, 2013 at 1:35 PM, Piren gpi...@gmail.com wrote: you're not defining the activity correctly in the manifest... the activity name field needs a fully

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Piren
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,

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
Are you sure your package is defined properly? Where you put your file matters... On Thursday, March 14, 2013 10:09:42 AM UTC+2, RKJ (Android developer) wrote: Piren, Thanks But i test all 3 posibility like - com.playcez.start .start start but result is same. :( any clue

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread skink
Rakesh Jha wrote: Piren, Thanks But i test all 3 posibility like - com.playcez.start .start start but result is same. :( any clue further.. :) try .Start pskink -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
Yes Piren, application android:allowBackup=true android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity android:name=com.playcez.Start android:label=@string/app_name

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
just to be clear: in the manifest the manifest tag needs to say manifest ...package=com.playcez.start ... then your source directory needs to be ../src/playcez/Start.java And then the activity can have the name as .Start P.S - You should probably add another level to the package

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
Thanks PSKink, I tested all three probability as i mentioned com.playcez.Start Start .Start but not getting any clue. On Thu, Mar 14, 2013 at 1:51 PM, skink psk...@gmail.com wrote: Rakesh Jha wrote: Piren, Thanks But i test all 3 posibility like - com.playcez.start .start

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
No, Package is only package=com.playcez manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.playcez android:versionCode=1 android:versionName=1.0 Start is a FragmentActivity inside this package.. On Thu, Mar 14, 2013 at 1:53 PM, Piren gpi...@gmail.com

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
grrr... made a mistake: manifest ...package=com.playcez ... :-) Also, didn't notice what skink noticed - .Start is correct, capitalization matters On Thursday, March 14, 2013 10:23:47 AM UTC+2, Piren wrote: just to be clear: in the manifest the manifest tag needs to say manifest

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
Sorry skpink Piren, I used capital .Start, but here by mistake i written small, i'm using capital S . like - application android:allowBackup=true android:icon=@drawable/ic_launcher android:label=@string/app_name android:theme=@style/AppTheme activity

[android-developers] ad-hoc in android

2013-03-14 Thread dreamtale
How to implement for entering an ad-hoc network in not rooted android device, i didn't find any solution in the official developer site, so is there an workaround to achieve this :) -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
is the file structure is correct (app/src/com/playcez/Start.java) (which i got wrong before as well lol.. i always forget the com) Also, your activity code doesn't have the package declared in it... it should say package com.playcez; at the top On Thursday, March 14, 2013 10:23:30 AM UTC+2,

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Rakesh Jha
yes, correct Piren, 1. Activity class package com.playcez; is mentioned. 2. and Start.java is in correct package name Basically this project is working in different box(laptop), and i'm trying to import this project, since 2-3 i'm getting error and not getting any clue. :( On Thu, Mar 14, 2013

Re: [android-developers] Re: File not found exception, while listed in manifest.xml file

2013-03-14 Thread Piren
try the various suggestions offered here: http://stackoverflow.com/questions/4820554/android-unable-to-instantiate-activity-classnotfoundexception Also since you said you imported the project... i'd give it a second go. delete it all, copy the entire app folder again, go into eclipse an import

[android-developers] How I can load doc/xlsx/pdf files into WebView?

2013-03-14 Thread Archana
How I can load doc/xlsx/pdf files into WebView? I am getting data as base64 format. Please suggest me how to display this? -- -- 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: Enumerate sd cards

2013-03-14 Thread Anthony Prieur
I'm using this : http://renzhi.ca/2012/02/03/how-to-list-all-sd-cards-on-android/ Le jeudi 7 mars 2013 05:29:26 UTC+1, yve...@gmail.com a écrit : I am trying to develop an app which has a feature like FTP. So, at the beginning, I want to enumerate all sd card storages on the device, and ask

Re: [android-developers] How I can load doc/xlsx/pdf files into WebView?

2013-03-14 Thread vinay kumar
Append your pdf/xml/doc url to http://docs.google.com/gview?embedded=trueurl=+your file link and then try to load in webview. Hope this helps you. On Thu, Mar 14, 2013 at 3:34 PM, Archana archana.14n...@gmail.com wrote: How I can load doc/xlsx/pdf files into WebView? I am getting data as

Re: [android-developers] How I can load doc/xlsx/pdf files into WebView?

2013-03-14 Thread Archana
Hello Vinay, Thanks for your reply, But I am getting file as base64 data. Its not pointing me to any url. So in that case how can I set URL here? On Thursday, March 14, 2013 2:43:07 PM UTC+4, Vinay Kumar wrote: Append your pdf/xml/doc url to

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread karunakar medamoni
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

[android-developers] Bar code Generator

2013-03-14 Thread Arun Kumar K
Hi I want to generate a bar code for euro symbol and rupee symbol.Now i m using zxing library.How can i solve this problem -- *Thanks Regards* *K.Arun Kumar* -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

Re: [android-developers] How I can load doc/xlsx/pdf files into WebView?

2013-03-14 Thread vinay kumar
I am not clear with this But I am getting file as base64 data could you please elaborate it more, if possible can you provide me a link. On Thu, Mar 14, 2013 at 4:47 PM, Archana archana.14n...@gmail.com wrote: Hello Vinay, Thanks for your reply, But I am getting file as base64 data. Its not

[android-developers] Google+ integration

2013-03-14 Thread srikanth
Dear all, Please help me How to post image and text through our android application using google+ integration as like face book integration.. -- -- 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: OutofMemory Excepton error in android

2013-03-14 Thread Piren
it depends on how much heap you defined for the emulator. if it didnt crash with 24mb, you're pretty much safe for 99% of the devices out there (i think even 48mb will cover most devices out there) Otherwise, if you can't figure out a way to reduce your memory allocations, just set the

[android-developers] Re: How I can load doc/xlsx/pdf files into WebView?

2013-03-14 Thread Piren
see the reply you got on stackoverflow, since it already told you exactly what you can do (i'm assuming it's you since the wording is the same) http://stackoverflow.com/questions/15279577/docx-pdf-etc-and-webview On Thursday, March 14, 2013 12:04:42 PM UTC+2, Archana wrote: How I can load

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Kristopher Micinski
On Thu, Mar 14, 2013 at 4:15 AM, 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

[android-developers] RESTful webservice with auth for mobile application

2013-03-14 Thread SoMa
I have developed many stateless RESTful webservices for a mobile application in Java and they are working very well. *For example:* - h t t p://.../api/coupon - h t t p://.../api/coupon/{id} - ... Now, I have to extend these services because I have to send different data back to

Re: [android-developers] RESTful webservice with auth for mobile application

2013-03-14 Thread Kristopher Micinski
This is what is typically done. Except one thing: I wouldn't ask for the user's Facebook credentials in your app. (At the very least that's unprofessional.) Instead, I'd try to request it from the Facebook app (if they have it installed).

Re: [android-developers] RESTful webservice with auth for mobile application

2013-03-14 Thread SoMa
This tutorial is good for client side (mobile). But I am developing services on server side (backend). How can I link together this client side logon function with my restful web service (with auth) on server side? On Friday, March 15, 2013 1:15:17 AM UTC+11, Kristopher Micinski wrote:

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Piren
As far as i know it's actually a bug in android, as the allocation issue is in the JVM, not the kernel. Do notice that i wasn't talking about fragmentation or reaching the heap size limit... If your heap size is 23.9MB with 100% of it free (thus, plenty of room), i.e 0MB utilization with

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Kristopher Micinski
Is that really the case? I haven't seen any Dalvik bug reports on this, could you manage to point one out, or at least a post / example backing this up..? Kris On Thu, Mar 14, 2013 at 10:43 AM, Piren gpi...@gmail.com wrote: As far as i know it's actually a bug in android, as the allocation

Re: [android-developers] RESTful webservice with auth for mobile application

2013-03-14 Thread Kristopher Micinski
That's not the kind of information this group provides, I'd look elsewhere for how you *use* the token. (E.g., Facebook presumably also has information about this too..) Kris On Thu, Mar 14, 2013 at 10:41 AM, SoMa arnold.somo...@gmail.com wrote: This tutorial is good for client side (mobile).

[android-developers] Google Analytics for Mobile discussion - avg time to uninstall?

2013-03-14 Thread Anuj Goyal
How many developers have started using the new capabilities in Google Analytics (v2) for Mobile? I would like to be able to better track the avg time a user uses my app before uninstalling or non-usage (e.g. no sessions for more than 4 weeks). I have decent daily engagement for about 2-3 weeks

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Piren
There's quite a big discussion of this bug somewhere hidden in the bug reports, i've come across the issue myself and found its rather easy to replicate. basically just write a loop that allocate a whole boat load of memory. run it till it poops on you then limit it to do a bit less

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Mark Murphy
On Thu, Mar 14, 2013 at 12:28 PM, Piren gpi...@gmail.com wrote: There's quite a big discussion of this bug somewhere hidden in the bug reports, i've come across the issue myself and found its rather easy to replicate. basically just write a loop that allocate a whole boat load of memory. run

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Piren
What you're saying is true under some conditions (as i stated, i'm aware of fragmentation)... but i think it will take quite a horrible alignment of stars for it to fail because of the reason you stated... in my tests i wasn't allocating huge chunks, barely 100K or so... i truly doubt every

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Rajesh Kumar
Try bufferreader to read chunk of bytes at a time as suggested by android .define buffer size On 14 Mar 2013 13:46, 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

Re: [android-developers] Re: OutofMemory Excepton error in android

2013-03-14 Thread Piren
How about this test: - Figure out the biggest allowable heap for the device - Start a fresh app that tries to allocate one big ass object that will expand the heap to it's maximum size within a minimal distance of it - GC that object and make sure the Free Heap has that big ass object space back

[android-developers] Re: image issue while view it as base64 in android mobile2.3

2013-03-14 Thread bob
I would try storing the image as a BLOB instead of base64. Thanks. On Wednesday, March 13, 2013 11:17:24 PM UTC-5, senthil kumar wrote: Hi, Using phone and javascript in our application. we want to see the image as base64 from the sqlite db. In some mobile all the image(i.e 4 or

[android-developers] Nested dialogs

2013-03-14 Thread Rich
I have a search results screen with a complex set of filters that I'm in the process of building out. I'm giving the user a filter icon in the ActionBar that will pop up a dialog with filter options. I feel that this is pretty standard. I don't want the user to feel like they're navigating

[android-developers] ERROR_NOT_MARKET_MANAGED with draft app

2013-03-14 Thread Patrick
Hello, I have uploaded an app with LVL in draft state on the developer console. I have set LICENSED for the license test response in the console. But when I test my app, I always get ERROR_NOT_MARKET_MANAGED. The version code is the same for both uploaded and tested apps. Please can you tell me

[android-developers] How to set Google Analytics (v2) API key programmatically?

2013-03-14 Thread user123
I can't find how to do this. There's this documentation: https://developers.google.com/analytics/devguides/collection/android/v2/advanced - it shows this method: gaInstance.getTracker(trackingId) I tried this: GoogleAnalytics gaInstance = GoogleAnalytics.getInstance(context); Tracker

[android-developers] Re: Can this variable become null?

2013-03-14 Thread user123
What is the problem with singleton? It works very well. I use it to hold global state, for example, translations. They are fetched at the start of the app, and updated each screen launch (if necessary). This holds the translations in memory and I can get them from any activity using simple

Re: [android-developers] How to remove black topbar on activity animation?

2013-03-14 Thread user123
Ok, thanks. I ended just doing the animation very fast... such that the user doesn't have time to think about it ;) Am Dienstag, 14. August 2012 08:12:17 UTC+2 schrieb Dianne Hackborn: I assume you mean the part of your window that is normally behind the status bar? If so, there is no

Re: [android-developers] Re: Can this variable become null?

2013-03-14 Thread Mark Murphy
On Thu, Mar 14, 2013 at 7:00 PM, user123 ivanschu...@gmail.com wrote: What is the problem with singleton? http://stackoverflow.com/questions/7026507/why-are-static-variables-considered-evil http://stackoverflow.com/questions/137975/what-is-so-bad-about-singletons And, since they don't seem to

Re: [android-developers] Re: Can this variable become null?

2013-03-14 Thread Kostya Vasilyev
I really think everyone should stop using the Android Framework, since it has more than a handful of singletons. http://developer.android.com/develop/index.html#q=singleton This is despite research that conclusively proves singletons causing baldness in males and infertility in women. Oh the

Re: [android-developers] Re: Can this variable become null?

2013-03-14 Thread Kristopher Micinski
I guess the bigger problem that in Android static data members cannot be statically checked to be alive. By this I mean: you should try to get as much static checking as possible, and if you're using statics you don't have any ability to properly check this. Moreover, in Android it's a fact of

Re: [android-developers] bluetooth file transfer failure

2013-03-14 Thread Indicator Veritatis
In order to answer your question, we need to see the code where you create and set mmInstream, too. For all we know, you might have forgotten to connect it to any stream, On Wednesday, March 13, 2013 9:28:08 PM UTC-7, akash roy wrote: here i am trying to send a file over bluetooth but its

Re: [android-developers] bluetooth file transfer failure

2013-03-14 Thread Lew
Indicator Veritatis wrote: In order to answer your question, we need to see the code where you create and set mmInstream, too. For all we know, you might have forgotten to connect it to any stream, Follow this advice: http://sscce.org/ akash roy wrote: here i am trying to send a

Re: [android-developers] Re: Can this variable become null?

2013-03-14 Thread Lew
Kristopher Micinski wrote: I guess the bigger problem that in Android static data members cannot be statically checked to be alive. By this I mean: you should try to get as much static checking as possible, and if you're using statics you don't have any ability to properly check this.