[android-developers] Re: Convert from Byte array to Pdf format

2012-06-08 Thread JK Park
You better use this : File dir = Environment.getExternalStorageDirectory(); String filename = test.pdf; File f = new File(dir, filename); f.createNewFile(); OutputStream outStream = new FileOutputStream(f); ... outStream.close(); -- You received this message because you are subscribed

Re: [android-developers] ExpandableListView advice

2012-06-08 Thread Ash
Thanks for the feedback. I have done more research and optimized the code so that scrolling is lot smoother. On Friday, June 8, 2012 3:27:06 AM UTC+10, TreKing wrote: as soon as I receive an item, I have to immediately add it, sort it and display it. Use a collection data structure that

Re: [android-developers] ExpandableListView advice

2012-06-08 Thread mjagadeeshb...@gmail.com
The same thing I have expanding list view my doubt I solved. Regards Jagadeesh Sent from my HTC - Reply message - From: Ash anan...@gmail.com To: android-developers@googlegroups.com Subject: [android-developers] ExpandableListView advice Date: Fri, Jun 8, 2012 11:51 am Thanks for the

[android-developers] How to resize width fragment

2012-06-08 Thread Huynh Ngoc Bang
Hi everyone! I have layout same as: LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/WHITE android:orientation=horizontal fragment

Re: [android-developers] Re: Can't copy and paste Eclipse(Helios) to Windows

2012-06-08 Thread Live Happy
Some applications, like Skype click-to-call, interferes with the normal copy-paste in Eclipse. If you have this installed, or other recent installed apps, try to uninstall them. I've got a partner that recently had the same problem and solved it this way. On Thu, Jun 7, 2012 at 11:14 AM, David

[android-developers] best practice in extending classes

2012-06-08 Thread marcin kolonko
when i extend internal classes or core classes like View.OnClickListener or ArrayAdapter - do i have to manually take care of all objects inside to prevent memory leaks? like in overriding the onStop() or onDestroy() methods and setting objects to null? thx -- You received this message

[android-developers] sync adapter contact appear in visible group

2012-06-08 Thread Live Happy
my application add contact by sync contact adapter to the phone and the contact are in invisible group didn't appear in the phone list but when i made selction to the phone contact who are in visible group the contact of my application appear in the selection even they are not in the phone

Re: [android-developers] TabHost Problem

2012-06-08 Thread naseem Rafique
Yes, I did check, On Wed, Jun 6, 2012 at 8:40 PM, Justin Anderson magouyaw...@gmail.comwrote: Have you verified that? Have you tried debugging your code to make sure that you are refreshing properly? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware

[android-developers]

2012-06-08 Thread Vijay Krishnan
Hi all, I am using tesseract ocr for converting image to text.while passing the image ,i didn't get recognized text.Any one help on this. Thanks, vijay.k -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: instance count violation

2012-06-08 Thread marcin kolonko
thanks a lot for the answers. i also came up with the solution to ignore this error. :) On Thursday, June 7, 2012 12:39:58 PM UTC+2, marcin kolonko wrote: hi, i have an app with two classes: *SelectItemActivity** extends **AbstractListActivity,* and * AbstractListActivity extends Activity*

[android-developers] Re: best practice in extending classes

2012-06-08 Thread marcin kolonko
as of now, i set all class members to null, but do nothing inside classes i extended, like listeners or adapters or anonymous classes. would that be enough? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: best practice in extending classes

2012-06-08 Thread marcin kolonko
as of now, i set all class members to null, but do nothing inside classes i extended, like listeners or adapters or anonymous classes. would that be enough? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Printing PDF in Android

2012-06-08 Thread Mark Murphy
Android does not have any printing support at this time. On Fri, Jun 8, 2012 at 1:44 AM, RAJESH RAJARAM rajeshrajar...@gmail.com wrote: Hi I have pdf document in my sdcard, I have to print the document from the android mobile. About this i didn't have any idea. Is it possible? This there any

[android-developers] Data interchange with a PHP server

2012-06-08 Thread Francisco M. Marzoa Alonso
Hi there, I need to interchange data between my Android app, written in Java using eclipse, and an Apache HTTP server through some PHP scripts. What is the best way to do so? I do not know if there is some bultin functions yet on API that could make the communication easier than directly using

Re: [android-developers] Printing PDF in Android

2012-06-08 Thread dEEPESH PPM
Android support Google Cloud print facility. please reffer the url https://developers.google.com/cloud-print/docs/android On Fri, Jun 8, 2012 at 3:55 PM, Mark Murphy mmur...@commonsware.com wrote: Android does not have any printing support at this time. On Fri, Jun 8, 2012 at 1:44 AM, RAJESH

[android-developers]

2012-06-08 Thread Vijay Krishnan
Hi all, Could anyone tell me the way to extract text from image in android. Thanks, vijay.k -- 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

Re: [android-developers]

2012-06-08 Thread Mark Murphy
On Fri, Jun 8, 2012 at 9:22 AM, Vijay Krishnan vijay.vijay...@gmail.com wrote:        Could anyone tell me the way to extract text from image in android. The same way you extract text from image anywhere else: use OCR. There is no OCR capability as part of the Android OS, so you will need a

Re: [android-developers]

2012-06-08 Thread Vijay Krishnan
what about tesseract? On Fri, Jun 8, 2012 at 7:01 PM, Mark Murphy mmur...@commonsware.com wrote: On Fri, Jun 8, 2012 at 9:22 AM, Vijay Krishnan vijay.vijay...@gmail.com wrote: Could anyone tell me the way to extract text from image in android. The same way you extract text from

[android-developers] Re: Data interchange with a PHP server

2012-06-08 Thread Chris Mawata
There is an HTTP client on Android. When you talk about parsing strings, what structure do you have? There are facilities for handling JSON and XML. On Friday, June 8, 2012 6:48:22 AM UTC-4, Fran wrote: Hi there, I need to interchange data between my Android app, written in Java using

Re: [android-developers]

2012-06-08 Thread Mark Murphy
On Fri, Jun 8, 2012 at 9:35 AM, Vijay Krishnan vijay.vijay...@gmail.com wrote: what about tesseract? http://en.wikipedia.org/wiki/Tesseract -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android

[android-developers] Re: best practice in extending classes

2012-06-08 Thread Chris Mawata
That should take care of itself. Initially only the Android system has a reference to that object of an internal class type (e.g. and Activity object. That reference is effectively a bridge. (Call it 'refB'). The object of an Android internal type can in turn have references to other objects

Re: [android-developers] Re: Data interchange with a PHP server

2012-06-08 Thread Francisco M. Marzoa Alonso
Hi, For JS it is clear that JSON will be faster, but what is the better choose in Java for Android? I mean, is it JSON parsed faster than XML on Dalvik? And for the authentication I used to use PHP sessions and cookies when developing web pagers. Will be this also the prefered way to do it with

[android-developers] Changing hosts file on an Android device

2012-06-08 Thread Francisco M. Marzoa Alonso
Hi there, When I develop a dynamic web site I used to change the /etc/hosts file on my linux boxes and the equivalent on Windows ones to test the site on different browsers, so I add a line in the way of: 192.168.1.21devel.mysite.com So when I put http://devel.mysite.com on a browser,

Re: [android-developers] Changing hosts file on an Android device

2012-06-08 Thread Kristopher Micinski
On Fri, Jun 8, 2012 at 11:12 AM, Francisco M. Marzoa Alonso fmmar...@gmail.com wrote: Hi there, When I develop a dynamic web site I used to change the /etc/hosts file on my linux boxes and the equivalent on Windows ones to test the site on different browsers, so I add a line in the way of:

[android-developers] device loack/unlock callback at native layer

2012-06-08 Thread shubh
any one have idea about how and where we can get callback for device lock and when it get unlock. at app level using receiver (ACTION_SCREEN_ON, ACTION_SCREEN_OFF) we get handle it but how at native layer. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] device loack/unlock callback at native layer

2012-06-08 Thread shubh
any one have idea about how and where we can get callback for device lock and when it get unlock. at app level using receiver (ACTION_SCREEN_ON, ACTION_SCREEN_OFF) we get handle it but how at native layer. -- You received this message because you are subscribed to the Google Groups Android

RE: [android-developers] Android DPI problems

2012-06-08 Thread Tommy Hartz
If I insert a picture will it come through on these posts? I am so confused as to why this isn't showing up correctly on phones that say they have a normal screen From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn Sent:

Re: [android-developers] Android DPI problems

2012-06-08 Thread RichardC
Post your layout, maybe we can spot something ... On Friday, June 8, 2012 5:09:15 PM UTC+1, Tommy wrote: If I insert a picture will it come through on these posts? I am so confused as to why this isn’t showing up correctly on phones that say they have a “normal” screen *From:*

[android-developers] onTouch, onFling and an ImageButton in a ListView topped with NullPointerExeption

2012-06-08 Thread marcin kolonko
hi, in a row of a *ListView *i have a *TextView *and an *ImageButton* on an *ListView *instance i have a *GestureDetector *and a extended * SimpleOnGestureListener*, on the ImageView instance i have called setFocusable(false). now, the swipe is registered when the start is not on the

[android-developers] Re: Problem with Bluetooth after NFC Handover

2012-06-08 Thread Alex Che
Hi all, Thank you! I followed Vijay's reply to use Java reflection regarding Android Bluetooth Profiles (A2DP and Headset) classes, I use SDK 15 (4.0.3), which still keeps connect() methods hidden. I also tried to follow Raunaque's advice, but no success with RFCOMM socket although I used

Re: [android-developers] Printing PDF in Android

2012-06-08 Thread Carlos A. M. dos Santos
On Fri, Jun 8, 2012 at 2:44 AM, RAJESH RAJARAM rajeshrajar...@gmail.com wrote: Hi I have pdf document in my sdcard, I have to print the document from the android mobile. About this i didn't have any idea. Is it possible? This there any API in Android? and Advise and Idea's please. There are

[android-developers] PNG file won't display in ImageView when src is set programatically

2012-06-08 Thread Melanie Peterson
I have a png file in my res/drawable-ldpi folder. I'm working in Eclipse with the emulator, but I've tried this on my 2.2.1 Android phone and I get the same behavior. I have an ImageView and I want to set the src programatically, based on a database call. If I just put

[android-developers] Re: Eclipse dev/debug on different machine than where Android device is connected?

2012-06-08 Thread JJ
This should help http://stackoverflow.com/questions/2604727/how-can-i-connect-to-android-with-adb-over-tcp On Thursday, June 7, 2012 10:01:31 PM UTC-4, SChaser wrote: Good. But how do I do that? From Eclipse? My normal Eclipse debugging method is simple: 1)Set a breakpoint or two

Re: [android-developers] PNG file won't display in ImageView when src is set programatically

2012-06-08 Thread Harri Smått
On Jun 8, 2012, at 8:38 PM, Melanie Peterson wrote: Context context = getApplicationContext(); int ResID = context.getResources().getIdentifier(imageresource, drawable, com.KnitCard.project); chart.setImageResource(ResID); Is it totally out of question to choose correct resource id

[android-developers] LocalSocketAddress.Namespace.FILESYSTEM (?!)

2012-06-08 Thread androidicus
I'm confused by the FILESYSTEM namespace. According to the docs, in Android's implementation of unix domain sockets these names refer to names in the Linux abstract (non- filesystem) UNIX domain namespace. But then there's a FILESYSTEM namespace, which implies that some of them could be

[android-developers] Enabling accessibility in a WebView

2012-06-08 Thread kj
Hi, I've been taking a look at accessibility in an app I work on. Most things are working well, but I was wondering if there was a way to enable support for TalkBack and KickBack in a WebView on any given activity or fragment. I know that the system Browser app supports screen reading when

[android-developers] Re: Repeat background

2012-06-08 Thread Kristoffer
Den måndagen den 28:e maj 2012 kl. 11:38:01 UTC+2 skrev Kristoffer: Hello. Iam using a small image and repeats it as a background in my app, this is how i do it. bgrepeat.png backgroundrepeat.xml i have them in the drawable folder. This is how the .xml look like. bitmap

Re: [android-developers] How to resize width fragment

2012-06-08 Thread TreKing
On Fri, Jun 8, 2012 at 2:15 AM, Huynh Ngoc Bang hnbang1...@gmail.comwrote: I would like to resize fragment (id = fragMenu) when runing app. What have you tried thus far? - TreKing