[android-beginners] What is the use of ACTION_BACKGROUND_DATA_SETTING_CHANGED?

2010-07-05 Thread Samuh
Hi: I was reading the documentation of ConnectivityManager class and came accross this action: ACTION_BACKGROUND_DATA_SETTING_CHANGED. Can anyone please give an example use-case that justifies the use of this constant? Thanks. -- You received this message because you are subscribed to the Goog

[android-beginners] Bitmap questions

2009-12-10 Thread Samuh
I was reading something and came across a few statements that I failed to understand fully: Q1. Bitmap memory is different than heap memory.What could this possible mean? Q2. What is a native Bitmap? Q3. Decoding a 64x64 .png resource will give a 64x64, 32-bit in-memory bitmap.What is a "in-memory

[android-beginners] Re: how to open another application with Intent

2009-12-10 Thread Samuh
Hi, this might help: http://android-developers.blogspot.com/2009/11/integrating-application-with-intents.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29 -- You received this message because you are subscribed to the Google Groups "And

[android-beginners] Re: How to navigate between different screens

2009-12-10 Thread Samuh
Consult development FAQs: http://developer.android.com/guide/appendix/faq/commontasks.html#opennewscreen -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe f

[android-beginners] Re: HTML sanitization

2009-12-07 Thread Samuh
sure will, thanks Eddie! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For

[android-beginners] HTML sanitization

2009-12-03 Thread Samuh
Hi, I am working on a module that fetches RSS feed, parses it and then displays selective data in a ListView. The problem is some of the data received, contain HTML tags and HTML escape sequences which means I can't display what I get as is. I need to sanitize the string of any HTML that it might

[android-beginners] Re: Passing a Hashtable in Intent Extras..

2009-11-13 Thread Samuh
stand. On Nov 13, 4:19 pm, Sean Hodges wrote: > Sorry, I missed this mail, glad to hear you got it working. > > On Fri, Nov 13, 2009 at 11:07 AM, Samuh wrote: > >> The ClassCastException means that the Java Runtime does not like your > >> request to convert a Seri

[android-beginners] Re: Passing a Hashtable in Intent Extras..

2009-11-13 Thread Samuh
instance. " > (http://java.sun.com/j2se/1.4.2/docs/api/) > > On Nov 13, 1:32 am, Samuh wrote: > > > > > I have a Hashtable, which, I need to pass to another activity. Since, > > Hashtable is Serializable, I am doing the following: > > > Hashtable mHashTabl

[android-beginners] Re: Passing a Hashtable in Intent Extras..

2009-11-13 Thread Samuh
*Correction* : the put statement is: intent.putExtra("table",mHashTable); -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to a

[android-beginners] Passing a Hashtable in Intent Extras..

2009-11-13 Thread Samuh
I have a Hashtable, which, I need to pass to another activity. Since, Hashtable is Serializable, I am doing the following: Hashtable mHashTable = new Hashtable(); // load values Intent intent = new Intent(this,SecondActivity.class); intent.put("table",mHashTable); startActivity(intent); In the

[android-beginners] Re: Tutorials: creating 9-patch drawables using SDK tools

2009-11-13 Thread Samuh
ge. > Then just save and drag it into your drawable folder in eclipse. > > - Original Message - > From: "Samuh" > To: "Android Beginners" > Sent: Tuesday, November 10, 2009 7:23 AM > Subject: [android-beginners] Tutorials: creating 9-patch drawab

[android-beginners] Tutorials: creating 9-patch drawables using SDK tools

2009-11-09 Thread Samuh
I am new to the concept of 9-patch drawables. In fact, I happened to stumble upon them by chance.I skimmed through the following: http://developer.android.com/guide/developing/tools/draw9patch.html Now, I need some tutorial that can help me understand how to use the draw9patch tool bundled with th

[android-beginners] Re: Rotate Activity screen

2009-11-09 Thread Samuh
> > I have a related question. What exactly happens when the orientation > changes? It isn't shown on the app lifecycle chart and I can't really > find any reference to it in the documentation. > > Anyone? Tim, You might want to read the series of articles Mr. Mark Murphy posted here: http://www

[android-beginners] Re: taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Samuh
Thank you very much! :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to a

[android-beginners] Re: taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Samuh
Also, sometimes getDrawingCache() returns a Bitmap that returns true for isRecycled() test.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-begin

[android-beginners] taking a screenshot...of whatever is drawn on the view

2009-10-28 Thread Samuh
I am trying to take a screen shot of whatever is drawn on my custom view's canvas. I use the following lines for the same: //enable drawing cache this.setDrawingCacheEnabled(true); // use the drawing on the cache to create a Bitmap Object Bitmap screenshot = Bitmap.createBitmap(this.getDrawingCac

[android-beginners] Measure a view when the canvas is rotated..

2009-10-27 Thread Samuh
I have a custom view which just draws a bitmap and the view is measured as: protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { if(mBitmap != null){ setMeasuredDimension( mBitmap.getWidth()+PADDIN

[android-beginners] Re: Drawing on top of a camera preview

2009-10-22 Thread Samuh
See if the following helps: http://groups.google.com/group/android-developers/browse_thread/thread/d8587b4b2139a85 On Oct 22, 9:18 am, Hack wrote: > Using the camera preview example as a starting point, I've managed to > get my application displaying what my camera is focused on, but I'm > runni

[android-beginners] Re: "unknown socket error " Is anyone know this error??

2009-10-22 Thread Samuh
you get that error if you are sitting behind a proxy... On Oct 22, 11:50 am, GreenRiver wrote: > Althougt i have added " android:name="android.permission.INTERNET" /> " in AndroidManifest.xml > file but still appears error. I got output in textview "Error: Host is > unresolve:www.helloandroid.co

[android-beginners] Correct way to measure a view

2009-10-21 Thread Samuh
I wanted to know if I am doing this right? Or is there something that I am missing? I have created a custom view by extending the View class. The sole purpose of the view is to display a Bitmap on the canvas. The Bitmap to be displayed in View is supplied by the view-containing-activity using a

[android-beginners] Re: What could be the possible reason for this error?

2009-10-21 Thread Samuh
Or is it because I am trying to pass a Bitmap object in onRetainNonConfigurationInstance(..) and exceeding the Transaction data limits ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To

[android-beginners] What could be the possible reason for this error?

2009-10-21 Thread Samuh
I am using Sensor data in my code and I am registering for the same in onStart(..) of my activity. Whenever, there is an orientation change I am getting the following exception: 10-21 18:48:30.096: DEBUG/qemud(558): fdhandler_accept_event: accepting on fd 10 10-21 18:48:30.096: DEBUG/qemud(558):

[android-beginners] Re: Creating sub sampled Bitmap Objects for images on SDcard

2009-10-21 Thread Samuh
e care has been taken to minimise the risk. Any views > stated in this communication are those of the actual sender and not > necessarily those ofRicstonLtd. or its subsidiaries. > > > >   > > > Samuh wrote:I am working on a small program that is supposed to : 1. Display >

[android-beginners] Creating sub sampled Bitmap Objects for images on SDcard

2009-10-21 Thread Samuh
I am working on a small program that is supposed to : 1. Display images on the SD card 2. Get the image chosen by the User and display it on Canvas. 3. Since the image can be large, sub sample it/ scale it or something appropriate I got the first two parts done using the following snippets: 1. B

[android-beginners] Re: Displaying a single oversized image + using zoom features

2009-10-10 Thread Samuh
caveat: I dont know the answer to your question;I would like to participate in this discussion though Here is my guess.. You can try extending a view, put the image on the canvas and then let the view implement horizonal and vertical scroll. On Oct 10, 1:54 am, Lee Jarvis wrote: > I'm writing

[android-beginners] Re: HTTP Connect Problem

2009-10-09 Thread Samuh
If I am interpreting you correctly, you can do something like(pseudo code): //create an instance of HttpClient class HttpClient httpclient = new DefaultHttpClient(); // Prepare a request object HttpGet httpget = new HttpGet(url); // Execute the request HttpResponse response = httpclient.execute

[android-beginners] Re: read phone's number?

2009-10-07 Thread Samuh Varta
Maybe the following could be of some help: http://www.androidsnippets.org/snippets/108/ On Oct 8, 5:04 am, Jeffrey Blattman wrote: > is there a way to read the phone's (current) phone number? i realize > this would require a permission grant at least. > > thanks. > > -- > > -- --~--~-~

[android-beginners] Re: Adding Undo feature in FingerPaint app bundled with APIdemos.

2009-10-07 Thread Samuh Varta
class in the framework that can help me here? Please help. Thanks again! On Oct 7, 9:34 pm, Romain Guy wrote: > save() and restore() are just used to save the state of the Canvas > (translate, scale, etc.) It won't help you for what you want. > > > > > > On Wed, Oc

[android-beginners] Adding Undo feature in FingerPaint app bundled with APIdemos.

2009-10-07 Thread Samuh Varta
I am playing with the FingerPaint application that comes bundled with the API demos package. I was wondering if I could add an "Undo" feature to it, which would allow the user to remove/undo his latest stroke drawing from the canvas. I am not sure of how to achieve this though. I was looking at t