[android-developers] Patch 9 images and .setImageResource

2010-01-02 Thread Jeffrey
I have an image that is applied via setImageResource and it's a patch 9 but it is not stretching correctly. It is stretching the entire image and I can't figure out why. Do I have to set a certain ScaleType? I have tried with CENTER_CROP but it didn't seem to have any efftect so I didn't try the

[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-02 Thread moneytoo
Here's the Market stuff... http://developer.android.com/intl/zh-TW/guide/publishing/publishing.html#marketintent On Jan 2, 8:34 am, dan.x.sheph...@googlemail.com dan.x.sheph...@googlemail.com wrote: Thanks, I've just uploaded a trail version.  Because it was a puzzle game that takes a certain

[android-developers] Re: Patch 9 images and .setImageResource

2010-01-02 Thread Jeffrey
I think I found out why... Apparently there is a difference between whatever.9.png and whatever.9.PNG... On Jan 2, 2:39 am, Jeffrey jeffisagen...@gmail.com wrote: I have an image that is applied via setImageResource and it's a patch 9 but it is not stretching correctly. It is stretching the

[android-developers] problem in reading socket data input stream in android application

2010-01-02 Thread jeetu
I am facing a problem in reading input stream in android application, I am writing successfully in output stream but when i am reading input stream i get a 0 value by available method. I executed same code in j2se successfully in java. my code is as follows: output.writeInt(json.length());

[android-developers] Re: how do you draw a new line?!

2010-01-02 Thread skink
On Jan 2, 12:41 am, schwiz sch...@gmail.com wrote: This is really frustrating, I am trying to get a carriage return drawn in my custom view and nothing is working.  I have tried 'System.getProperty(line.separator)' but that makes it say null and I have tried '\r' and '\n' and those just both

Re: [android-developers] Re: Facing serious problem with static objects

2010-01-02 Thread Alok Kulkarni
Actually i have a seperate class which is instantiated from the Activity which has these static objects which need to be shared throughout the application.Thats why i have them static. Thanks, Alok. On Sat, Jan 2, 2010 at 1:20 PM, Brion Emde brione2...@gmail.com wrote: What is the reason that

[android-developers] Re: Downloader activity

2010-01-02 Thread Steve
Just to give a bit more information, the downloader gets passed the original activity, then creates a new intent with a class name of the main class, and puts the current intent in as an extra field: Intent newIntent = new Intent(); newIntent.setClass(activity, preconditionActivityClazz);

[android-developers] Android SDK Version info

2010-01-02 Thread Raja Nagendra Kumar
Hi, How to get the SDK Version at run time of java program. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com -- 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] Service - how to show its progress in Activity

2010-01-02 Thread fhucho
Hi, I have a service that downloads something from the Internet, it shows progress in notifications and in MyActivity (only when MyActivity is on foreground of course). How should the service post the progress to MyActivity? I know this could be done somehow with IBind but can I just simply do

[android-developers] Re: Android SDK Version info

2010-01-02 Thread moneytoo
Build.VERSION.SDK_INT Take a look here: http://developer.android.com/intl/zh-TW/reference/android/os/Build.VERSION.html On Jan 2, 12:35 pm, Raja Nagendra Kumar nagendra.r...@tejasoft.com wrote: Hi, How to get the SDK Version at run time of java program. Regards, Raja Nagendra Kumar,

[android-developers] Re: How can I get the highest framerate with this quellcode?

2010-01-02 Thread ko5tik
Depending on UI event handling to produce smooth and accurately timed animations is usually bad idea In your code, if you remove delay you are just trashing event pipeline, so UI will (and certainly does) become irresponsive. And if you keep it in, your delays are unpredictable (let me Guess,

[android-developers] Re: When the new activity starts, the data of previous activity is gone.

2010-01-02 Thread android09
Hi Rui Wu, I got the solution of get back to the first activity by pressing previous button without changing data of first activity. Now, the user will enter his credentials. When he click to proceed further, the credential details will directly go to the server and server gives response with the

[android-developers] Having problem to store user's value/credentials in phone with cookie.

2010-01-02 Thread android09
Hi everyone, I got the solution of get back to the first activity by pressing previous button without changing data of first activity. Now, the user will enter his credentials. When he click to proceed further, the credential details will directly go to the server and server gives response with

[android-developers] Re: Any Tips for implementing free versions of applications?

2010-01-02 Thread schwiz
yep its just a simple startActivity with a action_view intent and pass it this market://search?q=pname:package On Jan 2, 3:05 am, moneytoo m...@seznam.cz wrote: Here's the Market stuff...http://developer.android.com/intl/zh-TW/guide/publishing/publishing.h... On Jan 2, 8:34 am,

[android-developers] Re: Having problem to store user's value/credentials in phone with cookie.

2010-01-02 Thread android09
Hi everyone, I found a link regarding to the previous post http://developer.android.com/guide/topics/data/data-storage.html Is it helpful to me regarding the my problem? If yes, how it can be useful to me and how can i get idea that how should i take first step to go forward? If you find any

[android-developers] Supported media Audio/video formats

2010-01-02 Thread Dilli
Hi all How can i get the supported media formats (Audio/video) for a device ( like htc mytouch, droid, adp etc ...) programmatically ? Thank you Dilli -- 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: Android and VOIP

2010-01-02 Thread Ricardo Martins
The problem with sipdroid is that it's tied to pabxes.org. If you want to use on your local sip pbx (asterisk) you can't do it. jotobjects escreveu: Where was the announcement or rumor on VOIP for google voice on android? Also, there are VOIP products using sipdroid that supposedly do this

[android-developers] How does the Google Sync work? API level 3, 4, 5

2010-01-02 Thread androidsdk166
The google sync of Contacts, Calendars, Gmails seems to work differently from the user apps that, dealing with the content providers. I created a app that can add contacts from my own backend server, using the Contacts Content Provider, but the performance is terrible. And, force to set the

[android-developers] Re: Transparent Button

2010-01-02 Thread Kumar Bibek
I guess, the best way to do it, is to write your custom button class. This way, you can also change the clicking background, and other funtionalities. Thanks and Regards, Kumar Bibek On Jan 2, 9:33 am, Sasikumar.S sasikumar.it1...@gmail.com wrote: Thank U On Thu, Dec 31, 2009 at 7:56

[android-developers] Re: Query on releasing to sony app store

2010-01-02 Thread DulcetTone
I'd think checking Build.MANUFACTURER case-insensitively for Sony should tell your app if such a phone is in use. tone On Jan 1, 11:58 am, karthikr karthik.scintill...@gmail.com wrote: Hi Guys, I am planning to submit my application in sony app market. Is there anything that I can do to

[android-developers] Re: How to include 3rd party jar in APK with make in android repo?

2010-01-02 Thread Icy Subdweller
In your .mk file, you have to add a line with the library's pkg name like LOCAL_JAVA_LIBRARIES := com.yourdomain.yourlibpkg and in your project's AndroidManifest.xml file, you have to add a line with the library's pkg name like uses-library android:name=com.yourdomain.yourlibpkg

[android-developers] Android Developers

2010-01-02 Thread rosey
Discuss developing Android applications using the Android framework. Get help with troubleshooting apps, advice on implementation, and strategies for improving your app's speed and user experience For more info; www.123maza.com/construction/ -- You received this message because you are

[android-developers] can not write to sdcard

2010-01-02 Thread BiiG
I've been developing this one app for a few months now with eclipse. I've had no problem writing to the sdcard in the past. Now it just creates an empty file when the following code is used: try { FileWriter fw = new FileWriter(/sdcard/shootme.txt); BufferedWriter out = new BufferedWriter(fw);

[android-developers] SAXParser invalid token exception because of '' inside attribute value

2010-01-02 Thread tlegras
Happy new years :) I am using SAXParser to parse an html page (any better solution?) and have this exception: W/System.err( 1358): org.apache.harmony.xml.ExpatParser $ParseException: At line 1, column 59: not well-formed (invalid token) I have reduced the page to this:

[android-developers] HTC Camera Specific question

2010-01-02 Thread KenM
Hello All I want to design an app to take advantage of a feature specific of a certain camera chip, which I hope is iether already used in an Android phone or soon will be. Then I will find a partner to help with the development but more on that later. It seems it is very difficult to find what

[android-developers] Persisting custom account its contacts in eclair

2010-01-02 Thread Icy Subdweller
On Nov. 13 in the thread Contacts FAQ? (http://groups.google.com/ group/android-developers/browse_thread/thread/58c69a2ea5056a01/ ce7422d7ba3f2283?lnk=gstq=persist+contacts#ce7422d7ba3f2283), Dan Dumont said: To facilitate the discussion around #8, (android.accounts examples) I've started up a

[android-developers] Linkify for twitter hashtags

2010-01-02 Thread whozman
I got the @s linkifying no problem with @([A-Za-z0-9_]+) like this: Pattern atWordMatcher = Pattern.compile(@([A-Za-z0-9_]+));//(\\s|\\A) @(\\w+));//@([A-Za-z0-9_]+));//Pattern.compile(\\b[A-Z]+[a-z0-9]+ [A-Z][A-Za-z0-9]+\\b); String atViewURL =http://twitter.com/;; Linkify.addLinks(textView,

[android-developers] now open all blocked site with our proxy

2010-01-02 Thread alagmy
now open all blocked site with our proxy now if you find any blocked site in your country you open it with this proxy just enter this site and put your site and click browse this is the site http://alagmy.almslol.net -- You received this message because you are subscribed to the Google

[android-developers] [ContactsContract.Data] How do I retrieve the MIMETYPE of an entry?

2010-01-02 Thread sloth
Hey! I'd like to query the contacts and create an RDF model (FOAF to be exact) from the data received. Therefore it would be necessary to know what kind of data I'm dealing with. I'll need the following information about each contact: name, phone number(s), email address(es), IM ID(s) +

[android-developers] watch new movie

2010-01-02 Thread R SIVAKUMAR
MORE INFO : http://123maza.com/786/mishtar/ MORE INFO : http://123maza.com/786/mishtar/ MORE INFO : http://123maza.com/786/mishtar/ MORE INFO : http://123maza.com/786/mishtar/ -- You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] now open all blocked site with our proxy

2010-01-02 Thread love_ram2...@yahoo.com
now open all blocked site with our proxy now if you find any blocked site in your country you open it with this proxy just enter this site and put your site and click browse this is the site http://alagmy.almslol.net/index.php -- You received this message because you are subscribed to the

[android-developers] Is there any issues bugs or upgrade to Android kernal?

2010-01-02 Thread Thisara Rupasinghe
Hi all, I'm quite new to android but i have worked with linux, java and open source technologies. These days im studying for Master in Computer Science and i would like to do a research development in this android kernal as my MSc project. If any one of you can guide me to any issue, bug or any

[android-developers] Re: BroadcastReceiver for incoming Gmail?

2010-01-02 Thread Rames
Hi Gnugu, Is it possible to launch the Gmail application from by code in my application? Thanks, Rames.P. On Nov 29 2009, 2:10 am, gnugu rho...@gmail.com wrote: Here is how: 1. You need to register a content observer (not broadcast receiver)

[android-developers] moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-02 Thread Flo
Hey there! I'm currently working on a component that's retrieving contact information and creating an RDF model (FOAF tbe) from the data provided. I started off with the HelloAndroid example and tried some code in there. Everything worked out fine, so I wanted to put everything in a seperate

[android-developers] installing application

2010-01-02 Thread Naresh
i wonder why android is not able to install applications to the sd card unless they are rooted? i think this is one important feature to be implemented in android. if this feature is not allowed then we as users will not be able to install a lot of applications which maybe is important to us.

[android-developers] adp1 doesn't connect via usb

2010-01-02 Thread Jeff Caldwell
I have an ADP1. When I connect it via a USB cable to either a Debian or an Ubuntu machine, there is no allow notification icon nor does lsusb show the ADP1 as a connected device. I tried a factory reset, which did not alter the behavior. Any ideas? Jeff -- You received this message because

[android-developers] Re: ACTION_DOWN / ACTION_UP timeout on droid

2010-01-02 Thread Mirmathrax
I have the same requirement and this problem is killing my whole control scheme! Anyone have any ideas? On Dec 23 2009, 11:28 am, N4Spd robert.c...@gmail.com wrote: Pre-Droid, if you register a OnTouchListener and press down on a button for longer than 30 seconds, there is NO timeout and

[android-developers] Sending sound in the middle of a conversation

2010-01-02 Thread liron
Hello, I have 2 small questions, 1. given that somebody turned on my application and a new call arrives, is there a way to send a pre-recoreded audio to the other side (i.e. the the caller will hear a pre-recoreded song) ? 2. when a new call arives, after accepting the call is there a way to

[android-developers] How to parse html with saxparser (or other solution)

2010-01-02 Thread tlegras
Happy new year world :) I want to parse an html page downloaded from a web server and have pretty much trouble with that. I am trying with saxparser, is there any better solution? With sax i am trying to preprocess the page to make it xml compliant (replace br with br /), but i still have some

[android-developers] Firewall for android

2010-01-02 Thread Christophe Paoutoff
Hi, I'm going to develop a firewall app on android, and I wouldn't fork any linux scripts to setup Iptables on kernel level. Is there a way through availble Andoid API to block/unblock access network on process level? I mean by controlling I/O network communication within sandbox VM ? Kind Rgrds

[android-developers] Re: Posts to this Android Dev group hacked/intercepted/moved !?!

2010-01-02 Thread tlegras
lucky you, my new thread post has been completly lost. posted Fri, Jan 1, 2010 at 3:12 PM new year 2010 bug?? Thierry. -- 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

[android-developers] Re: BroadcastReceiver for incoming Gmail?

2010-01-02 Thread gnugu
http://www.openintents.org/en/node/121 On Jan 1, 10:43 am, Rames rame...@gmail.com wrote: Hi Gnugu,   Is it possible to launch theGmailapplication from by code in my application? Thanks, Rames.P. On Nov 29 2009, 2:10 am, gnugu rho...@gmail.com wrote: Here is how: 1. You need to

[android-developers] Re: Where can I get adds for my application?

2010-01-02 Thread Kumar Bibek
Well, Admob is a good choice. Also, you can try Adsense API by google. Thanks and Regards, Kumar Bibek On Dec 31 2009, 7:13 pm, Martin google-gro...@digle.de wrote: Hi! I want to write a game for the Market. So where can I get adds for it to earn some money (a page like admob.com for

[android-developers] Re: How to parse html with saxparser (or other solution)

2010-01-02 Thread Kumar Bibek
I guess you need to use a special HTML parse. Since, HTML pages are not well-formed and are not XML compliant, using an XML parser will not serve your purpose. Search for any third party libraries. Thanks and Regards, Kumar Bibek On Jan 2, 8:05 pm, tlegras tleg...@gmail.com wrote: Happy new

[android-developers] Re: Query on releasing to sony app store

2010-01-02 Thread karthikr
I am getting an VerifyError on trying to access android.os.Build.MANUFACTURER on my HTC Magic(Rooted running sense ui) where as on trying to run it on the emulator i get unknown and an error is not thrown. Is it still advisable to continue going ahead with it in my application? Any help on the

[android-developers] Re: Service - how to show its progress in Activity

2010-01-02 Thread Kumar Bibek
If the service is coupled to your UI, I think AsyncTask would be a better solution. Look at the examples for the same. But, if the service is completely separate from the UI, then you have to bind to the service, and then check it's progress. Thanks and Regards, Kumar Bibek On Jan 2, 4:54 pm,

[android-developers] Re: Phone calls recording on 2.0

2010-01-02 Thread appforce.org
Thanks for that! -- 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

[android-developers] Re: Query on releasing to sony app store

2010-01-02 Thread Lance Nanek
Build.MANUFACTURER is only available on Android 1.6 up. You can use reflection or check against the SDK level before using a class that accesses it, however. On Jan 2, 12:04 pm, karthikr karthik.scintill...@gmail.com wrote: I am getting an VerifyError on trying to access

[android-developers] Re: Query on releasing to sony app store

2010-01-02 Thread jotobjects
MANUFACTURER was added in 1.6 - check the API docs. On Jan 2, 9:04 am, karthikr karthik.scintill...@gmail.com wrote: I am getting an VerifyError on trying to access android.os.Build.MANUFACTURER on my HTC Magic(Rooted running sense ui) where as on trying to run it on the emulator i get

[android-developers] Re: Logs from framework.jar

2010-01-02 Thread Michael Scott
Anyone? On 29 Dec 2009, 19:29, Michael Scott gebat.s...@gmail.com wrote: Hi, Why does no logprints from theframework-code (Telephony) show up in logcat? Is there a setting somewhere I should turn on or something? Thanks, Michael -- You received this message because you are subscribed to

[android-developers] Re: Is there any issues bugs or upgrade to Android kernal?

2010-01-02 Thread Lance Nanek
If it has to be something kernel related you might be better off asking in other groups: http://groups.google.com/group/android-platform http://groups.google.com/group/android-kernel If just framework related is OK, I can recall some comments re zipalign and large resource support:

[android-developers] Re: Logs from framework.jar

2010-01-02 Thread jotobjects
Can you provide more detail about the scenario - what are you running on the device, what logging are you expecting, and how are you examining logcat? On Jan 2, 10:10 am, Michael Scott gebat.s...@gmail.com wrote: Anyone? On 29 Dec 2009, 19:29, Michael Scott gebat.s...@gmail.com wrote: Hi,

[android-developers] Re: Best HTTP Request Method

2010-01-02 Thread SizzlingSkizzorsProgrammer
Thanks! After doing a TraceView, I found that most of the processing time is spent in the EntityUtils.toString(entity); portion...any ideas how to speed it up/circumvent this step? On Jan 2, 12:47 am, Brion Emde brione2...@gmail.com wrote: I think that it is automatic. Just be sure to keep your

[android-developers] Re: Logs from framework.jar

2010-01-02 Thread jotobjects
try - logcat -b radio See adb settings here - http://developer.android.com/guide/developing/tools/adb.html#logcat On Jan 2, 10:24 am, jotobjects jotobje...@gmail.com wrote: Can you provide more detail about the scenario - what are you running on the device, what logging are you

Re: [android-developers] Re: How to parse html with saxparser (or other solution)

2010-01-02 Thread Frank Weiss
Check nekohtml. I haven't tried it on Android yet, but used it several times on desktop for screee On Jan 2, 2010 8:36 AM, Kumar Bibek coomar@gmail.com wrote: I guess you need to use a special HTML parse. Since, HTML pages are not well-formed and are not XML compliant, using an XML parser

[android-developers] Issue 1151: RFE: Support install of apps on SD cards

2010-01-02 Thread Thisara Rupasinghe
HI all, When i was looking for research project for my MSC i got to know about issue (Issue 1151: Support install of apps on SD cards), rather upgrade which is there for long time. Therefore i would like to know whetherrandiest park that is someone looking into this currently or that is already

[android-developers] querying ContactsContract: How can I use smth like GROUP BY?

2010-01-02 Thread Flo
Hey there! I'm querying the ContactsContract.Data table like the following: [...] Uri contactsURI = ContactsContract.Data.CONTENT_URI; String[] projection = new String[] { ContactsContract.Data._ID, ContactsContract.Data.CONTACT_ID,

[android-developers] Re: How to parse html with saxparser (or other solution)

2010-01-02 Thread tlegras
ok thanks i am trying nekohtml and currently trying to make it run but with the minimal sample code (so using only provided xercesMinimal.jar) i got this exception in my parse() function: E/AndroidRuntime( 765): Uncaught handler: thread Thread-10 exiting due to uncaught exception

[android-developers] when is onDraw called, how to force it?

2010-01-02 Thread schwiz
I am working on a custom view which has text in it. I have a touch even that opens a dialog to change the text but after the text is updated in memory it still doesn't update in my view until I touch the screen again. I am calling invalidate() in my function to update the value of the text. To

[android-developers] Re: How do I retrieve the MIMETYPE of an entry?

2010-01-02 Thread Flo
Well.. I solved this one in the meantime by simply adding ContactsContract.Data.MIMETYPE to my projection. No idea why I didn't see that this column existed in the first place, even more as I'm using it in my selection. On 1 Jan., 19:53, sloth flo.schw...@gmail.com wrote: Hey! I'd like to

[android-developers] Loading entire Asset folder

2010-01-02 Thread Andrew Huff
I have been trying to figure this out for some time now. Is there any way to load the entire Assets folder instead of having to code it for every single item? Also, once the images are read, is there a way to have another app (already installed on the device) grab that data? The intent is

[android-developers] Re: Loading entire Asset folder

2010-01-02 Thread Andrew Huff
Also I've been thinking something like ContentProvider or PackageManager would be useful for doing this but I'm not exactly sure the best way to implement this On Jan 2, 10:48 am, Andrew Huff 702reco...@gmail.com wrote: I have been trying to figure this out for some time now. Is there any way

[android-developers] Re: Dim Screen - Set to sleep programmatically

2010-01-02 Thread Alex Corbi
nobody? can the power-management third party apps do this? On Dec 24 2009, 1:23 am, Alex Corbi a.co...@gmail.com wrote: Hi there!! A little question about custom Power Management... Is it allow for my app todimthescreenprogrammatically??, the goal would be to send the phone sleeping when a

[android-developers] Need help regarding how to use MINI_THUMB_MAGIC

2010-01-02 Thread CaptainSpam
In an app I'm developing, I have a need to list the images stored on the device in a Gallery widget. In a base sense, I've got that much working; I can get thumbnails of everything via a query on MediaStore.Images.Thumbnails, display them using an ImageAdapter, and get the corresponding image IDs

[android-developers] Java Question about reflection

2010-01-02 Thread Philip
Nothing specifically related to Android: more a java question while struggling making the switch from objective c to java: 1. In Java static methods when implemented in derived classes are hidden, not overridden. If I have a method foo() in class A and B. Execution of: A b = new B(); b.foo() will

[android-developers] Full Android Example using Twitter OAuth with Signpost

2010-01-02 Thread Brion Emde
I have the complete source code for a small working application that performs OAUTH authorization with Twitter, then turns into a micro Twitter client, letting you post tweets to your Twitter stream. You will need to obtain an application key and secret from Twitter, by registering your

[android-developers] SeekBar with Text?

2010-01-02 Thread Stefan
hello, is there a xml attribute to define text below the seekbar for the values? or must i set TextViews below the seekbar? Or is there a other similar widget for that problem?? I want to change km/h values with the seekbar. and the user wants to see, which value they set. Thanks, Stefan --

[android-developers] Re: drag and drop table rows?

2010-01-02 Thread sergej
Yes, it's possible, but you have to handle it by yourself. Just have a look into TouchInterceptor.java class located within Music package of Android sources. I have written my implementation after I learned how android guys did it. On Dec 30 2009, 5:59 am, Sean Neilan sneil...@gmail.com wrote:

[android-developers] Re: Java Question about reflection

2010-01-02 Thread jotobjects
Here is a start... Class barClass = com.example.Bar.class; Method m = barClass.getMethod(foo, ...) // add parameter types to call Object val = m.invoke(null, ...) // add parameter values to call On Jan 2, 12:10 pm, Philip philip.dese...@gmail.com wrote: 2. I am trying to replicate the easy

Re: [android-developers] SAXParser invalid token exception because of '' inside attribute value

2010-01-02 Thread Frank Weiss
There have been a few similar questions. The basic issue is that SAX parsers requires valid XML or XHTML as input. If you have control (or can influence the authors of) the service, make the output valid, which as you well know, means that , , , ', need to be escaped. In PHP, this is easily done

Re: [android-developers] Re: Best HTTP Request Method

2010-01-02 Thread Frank Weiss
You haven't said how big the response content is, which certainly can be a factor. I looked at the EntityUtils.toString() source code in HttpCore 4.0.1 and it is basically using an InputStreamReader to decode the entity into a String, using a 1024 character buffer. Are you sure you want the entity

Re: [android-developers] Re: Java Question about reflection

2010-01-02 Thread Frank Weiss
For your first issue, can you refactor to use singleton Factory instead and make the factory methods non-static? Example: MyFactory factory = MySubclassedFactory.getInstance(); MyWidget = factory.createMyWidget(); Then the createMyWidget method (possibly abstract in MyFactory) can be overridde

Re: [android-developers] moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-02 Thread Dmitri Plotnikov
Could you post the exception stack trace? Thank you, Dmitri On Saturday, January 2, 2010, Flo flo.schw...@gmail.com wrote: Hey there! I'm currently working on a component that's retrieving contact information and creating an RDF model (FOAF tbe) from the data provided. I started off with

Re: [android-developers] moved Code: managedQuery() / getContentResolver() NullPointerException

2010-01-02 Thread Dmitri Plotnikov
Actually, no need for a stack trace. You are manually allocating an activity. This should never be done. It would be best to all the work in the activity allocated by the system. Of course you can delegate the work to a helper object like CPAddressbook, but you will need to pass the parent

[android-developers] How to keep GPS active until more accurate location is provided?

2010-01-02 Thread Doughy
I recently posted this question on stackoverflow (http://tinyurl.com/ yzrofne), but maybe someone here can help me. I am using the location manager's requestLocationUpdates() method to receive an intent to my broadcast receiver periodically. The system is correctly firing the intent to my

[android-developers] Re: Service - how to show its progress in Activity

2010-01-02 Thread Molee
I used to implements the progress of downloading sth in a worker thread, and new a thread when u choose the corresponding option in the menu ( overriding onOptionsItemSelected funciton) yet the UI will be frozen once you choose the download option in the menu Is using asynctask instead the

[android-developers] Re: How to keep GPS active until more accurate location is provided?

2010-01-02 Thread Lance Nanek
Wouldn't you just register for updates with a shorter minTime parameter and then remove that one when you want to go back to the longer one? I've never tried it with intents, but it works fine with listeners: http://groups.google.com/group/android-developers/msg/7c1856b30811e7e8 On Jan 2, 8:43 

[android-developers] Re: Service - how to show its progress in Activity

2010-01-02 Thread Kumar Bibek
AsyncTask gives you more control over how you background work is done. You get callbacks for , progress, completion of action, etc. You would also get some etra hooks, like Pre-execute and Post- execute. http://android-developers.blogspot.com/2009/05/painless-threading.html Thanks and Regards,

[android-developers] get city name by latitude and longitude

2010-01-02 Thread star double
Hi, all I am making a weather widget now , and there is a problem that how can I get some city name after getting latitude and longitude from google map. because I think we can't get weather data if can not get city name . any advice is welcome, thanks a lot ! -- You received this message

[android-developers] Re: Best HTTP Request Method

2010-01-02 Thread SizzlingSkizzorsProgrammer
The response content varies, but it frequently is large(ish), normally up to 64 kb...I could process it as a stream, but what is the best way to parse xml via stream? On Jan 2, 5:38 pm, Frank Weiss fewe...@gmail.com wrote: You haven't said how big the response content is, which certainly can be

[android-developers] Re: Best HTTP Request Method

2010-01-02 Thread SizzlingSkizzorsProgrammer
Thanks, btw...great help! On Jan 2, 5:38 pm, Frank Weiss fewe...@gmail.com wrote: You haven't said how big the response content is, which certainly can be a factor. I looked at the EntityUtils.toString() source code in HttpCore 4.0.1 and it is basically using an InputStreamReader to decode the

Re: [android-developers] Re: Best HTTP Request Method

2010-01-02 Thread Frank Weiss
Here's roughly how I do it, for a GET request: class RSS exends DefaultHandler { StringBuffer sb; ... other variables for collecting the data public void parse(URL url) throws Exception{ SAXParserFactory spf = SAXParserFactory.*newInstance*(); SAXParser parser =

[android-developers] java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper

2010-01-02 Thread Shane
I have a ViewFlipper in my app. When my app is running and the phone goes to sleep it works fine. When I wake the phone up and my app then tries to display again, I get the following error. Any thoughts or suggestions? I can't figure this out :-( 01-02 20:59:22.706:

Re: [android-developers] Re: Is there any issues bugs or upgrade to Android kernal?

2010-01-02 Thread Thisara Rupasinghe
Thanks Lance will try find something there... :) On Sat, Jan 2, 2010 at 11:46 PM, Lance Nanek lna...@gmail.com wrote: If it has to be something kernel related you might be better off asking in other groups: http://groups.google.com/group/android-platform

[android-developers] spawn a thread

2010-01-02 Thread ROHIT
when spawn a thread in Android for certain tasks? -- 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] New in android developement

2010-01-02 Thread ROHIT
Can any one send me some basic information about Android. I have a interview. I really want to work in Android technology, its a new and challenging technology. so i need some help My email address is rohit...@gmail.com 1. Handler and Looper? 2. What is a ContentProvider? How to involve it