[android-developers] How to start the native Camera app in 1.0 SDK?

2008-10-02 Thread Amos
Hi, The MediaStore.ACTION_IMAGE_CAPTURE constant, which was used to start the native Camera application to capture an image, has been removed in the 1.0 SDK. Is there an alternative way to start the native Camera app to take a picture and return it to my calling Activity? Thanks, Amos

[android-developers] Re: Intercept incoming call

2008-10-02 Thread legerb
Is this the same for outgoing calls? They also cannot be interecepted in 1.0? If so, what is the purpose of ACTION_NEW_OUTGOING_CALL? this is from the documentation: It is perfectly acceptable for multiple receivers to process the outgoing call in turn: for example, a parental control application

[android-developers] Re: Intercept incoming call

2008-10-02 Thread hackbod
On Oct 2, 12:17 am, legerb [EMAIL PROTECTED] wrote: Is this the same for outgoing calls? They also cannot be interecepted in 1.0? No, you can intercept outgoing calls, as you quoted from the documentation. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Re: Receiving SMS Messages in 1.0?

2008-10-02 Thread Cristina
Hi Justin, Related to the problem of sending binary sms to port, I have changed that parameter to null, and I send the data message using a port from 5554 emulator to 5556. This seems to work looking to the log files. The problem is that I am not able to receive the SMS data message in the 5556

[android-developers] Modifying data before passing it to a list

2008-10-02 Thread Rohit Mordani
Hi, I have an app that reads Contacts and displays them in a list. I want to modify some of the data before passing it to the list. Is that possible? Here is my applications OnCreate() method public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread mammen
What is the purpose of this? Is it multiple applications? On Oct 2, 1:05 am, DulcetTone [EMAIL PROTECTED] wrote: I have a tree of folders containing the source for a working Android activity I hope to split into a Service and two Activities. How do I accomplish this?  Can I simply add an

[android-developers] Re: How to query for my current location?

2008-10-02 Thread danielbr
In SDK 1.0 the LocationManager is always reporting the gps provider as disabled: LocationManager lm = this.getSystemService(Context.LOCATION_SERVICE); boolean gpsEnabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER); // gpsEnabled == false According to the Javadocs this value implies

[android-developers] Re: How to query for my current location?

2008-10-02 Thread danielbr
In SDK 1.0 the LocationManager is always reporting the gps provider as disabled: LocationManager lm = this.getSystemService(Context.LOCATION_SERVICE); boolean gpsEnabled = lm.isProviderEnabled(LocationManager.GPS_PROVIDER); // gpsEnabled == false According to the Javadocs this value implies

[android-developers] Algorithm writen in C

2008-10-02 Thread [EMAIL PROTECTED]
Hello buddies!! I'm involved in a biometric project. I need to write an app for Android that must use an algorithm writen in C language. This C code is very complex and for this reason translating this code into java is not an option. The idea is to develop the main application in java code and

[android-developers] How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani
Hi, I am accessing Contacts data and passing that into a list. I want to modify the data that I get from the database and then pass it to the list view. Is there a way to do that ? This is what my OnCreate() looks like. public void onCreate(Bundle savedInstanceState) {

[android-developers] HELP!! the code will not compile and I can't find anybody with the same issue

2008-10-02 Thread Jeff
I have attached screen shots but eclipse keeps saying that Description ResourcePathLocationType The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project HelloAndroid

[android-developers] purpose of the assets folder

2008-10-02 Thread sarwees
I just created my first Android project using Eclipse and it generated a folder called assets. What is the purpose of this folder? sarwees --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: BroadCastReceiver with PhoneStateListener

2008-10-02 Thread e
could u plz forward me complete code.. On Oct 2, 12:32 pm, hackbod [EMAIL PROTECTED] wrote: This is really broken. Please read the documentation on broadcast receivers: http://code.google.com/android/reference/android/content/BroadcastRec... Also, please DO NOT then go and use a

[android-developers] Re: BroadCastReceiver with PhoneStateListener

2008-10-02 Thread e
could u plz forward me complete code On Oct 2, 11:58 am, legerb [EMAIL PROTECTED] wrote: Yep, I've seen the logging entry. I called the emulator through DDMS on eclipse. And here is my xml: manifest xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Bash, C, or Korn Shell?

2008-10-02 Thread Ludwig
If you are after a development tool, running adb shell from the tools directory will give you a shell with a limited amount of functionality. Android applications do not have (for obvious security reasons) shell access. Ludwig 2008/10/2 Bill Zimmerly [EMAIL PROTECTED] Is there a Bash, C, or

[android-developers] Re: Connect to an online SQL database

2008-10-02 Thread Ludwig
IMHO, the conceptually correct way to do this is with a ContentProvider, which exposes a database-like interface and can behind the scenes access any datasource you wish (yes, it can go across the net). 'Just' marshal your requests into a web request and parse the response into something like a

[android-developers] Sending DTMF

2008-10-02 Thread legerb
Is it possible to make a call and then send DTMF sequence in android sdk 1.0? I've seen the ToneGenerator and PhoneNumberUtils classes, but couldn't find an option of sending DTMF... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] PreferenceActivity Refresh Problem

2008-10-02 Thread Amos
I have a PreferenceActivity inflated from xml. One of the preferences launches an intent which opens an activity that clears all the preferences and resets them to the default values. My problem is that when this restore defaults activity returns, the previous preference values still appear on

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-02 Thread Charlie Collins
It's just #038;, or amp; http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML The and the ; delimit the entity. But Chris, your XML in your source example there can't have an ampersand there like that. You need to be using the

[android-developers] Re: Intercept incoming call

2008-10-02 Thread Rimma Sukhovsky
You should call abortBroadcast() in your BroadCastReceiver, after catching the *ACTION_NEW_OUTGOING_CALL intent.* On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote: could u help me out ...how do manag with abortBroadcast()?? On Oct 2, 12:50 pm, legerb [EMAIL PROTECTED] wrote:

[android-developers] I need a favor please from someone who has Real HTC Device (new androind GPhone)....

2008-10-02 Thread Yorgen Valune
Hi, I'm willing to know whether the Monkey application is working on a real Device? i mean I've tried it on the Emulator and it's worked well but since i don't have the Real HTC i can't test it can someone please help me and test it for me? here is the link

[android-developers] Registering and Handling of ContentObserver for Contacts database - handlers first invokation ???

2008-10-02 Thread Yalcin
Hi, I want to check new entries, that made to contacts database. As example the notes column entry in people table. I register a ContentObserver and implement the handler, which is invoked on onChange method of ContactsChangeObserver. hier is a code snipped: +++ ContentObserver myObserver = new

[android-developers] Getting long/lat from locale

2008-10-02 Thread Christian Wiesbauer
Hi, is it possible to get the longitude and latitude coordinates only if you know the country? Is there any function which gives me the values if I pass the current locale? Thanks, Christian Wiesbauer --~--~-~--~~~---~--~~ You received this message because you

[android-developers] Re: Intercept incoming call

2008-10-02 Thread e
how to get *ACTION_NEW_OUTGOING_CALL intent.*??? On Oct 2, 4:26 pm, Rimma Sukhovsky [EMAIL PROTECTED] wrote: You should call abortBroadcast() in your BroadCastReceiver, after catching the *ACTION_NEW_OUTGOING_CALL intent.* On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote: could

[android-developers] How to make an application icon its name invisible in menu list.

2008-10-02 Thread Ashutosh
Do any one knows how to make an application icon its label invisible in menu list ? Please suggest. Thanks Ashutosh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread Mark Murphy
DulcetTone wrote: I have a tree of folders containing the source for a working Android activity I hope to split into a Service and two Activities. How do I accomplish this? Can I simply add an AndroidManifest.xml to each of 3 separate Java packages? The AndroidManifest.xml file is per

[android-developers] Re: How to load html file from sdcard to WebVeiw

2008-10-02 Thread Mark Murphy
Billsen wrote: Is it possible to load html file into WebView? If yes, how? Search this Google Group, or [android-beginners], for recent posts discussing WebView's loadDataWithBaseUrl() method. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20,

[android-developers] Re: Intercept incoming call

2008-10-02 Thread e
how to do catch *ACTION_NEW_OUTGOING_CALL intent.* ? On Oct 2, 4:26 pm, Rimma Sukhovsky [EMAIL PROTECTED] wrote: You should call abortBroadcast() in your BroadCastReceiver, after catching the *ACTION_NEW_OUTGOING_CALL intent.* On Thu, Oct 2, 2008 at 12:19 PM, e [EMAIL PROTECTED] wrote:

[android-developers] Re: I want to know a button's width before it is drawn on the screen! possible?

2008-10-02 Thread erkenbrandroid
Oh yes you're totally right! I just read the documentation for it! :-) Thanks again! Erken On Oct 1, 5:24 pm, Romain Guy [EMAIL PROTECTED] wrote: onWindowFocusedChange works but its pure chance. As I said, you should use the ViewTreeObserver, that's what it's meant for. On Wed, Oct 1,

[android-developers] Re: HELP!! the code will not compile and I can't find anybody with the same issue

2008-10-02 Thread Shraddha
Something very basic seems wrong. Check the path set for Android SDK... (Windows -- preferences -- Android SDK ) this should point to ur SDK. If that is correct and you are still facing the problem, please check if you are creating an Android project (new -- project - Android).. If u select Java

[android-developers] Re: setText() of TextView does not update instantly

2008-10-02 Thread Mark Hansen
Is it running in a thread? I know you can't have visual updates if it's inside or one? On Oct 2, 5:13 am, Urakagi [EMAIL PROTECTED] wrote: Hi, I have a TextView displaying current time in a ListActivity, which will play music. I use a class to update the TextView, but while the MediaPlayer

[android-developers] Re: How to make an application icon its name invisible in menu list.

2008-10-02 Thread MrSnowflake
What menu list you mean? The launcher drawer? That's easy: just dont include this intent-filter: intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter On 2

[android-developers] Re: Algorithm writen in C

2008-10-02 Thread MrSnowflake
It's not officially supported to use C code from android. But you could look around for JNI and android on the net. On 2 okt, 11:49, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello buddies!! I'm involved in a biometric project. I need to write an app for Android that must use an algorithm

[android-developers] Re: Geocoder. getFromLocationName - no results [forwardGeocode(): no feature in GLocation]

2008-10-02 Thread Rafael Fernandes
hey guys, any takers on this one? cheers, On Oct 1, 11:48 am, Rafael Fernandes [EMAIL PROTECTED] wrote: Hey guys, I'm trying to run this Geocoder map query here but no success at all... it always returns null... if I go to Emulator's Map app and search the same thing I got the desired

[android-developers] Re: Is it possible to embed links into a textview?

2008-10-02 Thread David
Right. So would I use, say h1.../h1 for very large text? On Oct 1, 4:09 pm, april [EMAIL PROTECTED] wrote: yes, When you create the textview in XML. You need to set a flag: android:autoLink=all. You can use b ,,,/b, just like html page. On Oct 1, 2:56 pm, David [EMAIL PROTECTED] wrote:

[android-developers] Re: Android Emulator and the Tilt Sensors

2008-10-02 Thread Randolpho
Thank you, I will give that a try On Oct 2, 8:23 am, MrSnowflake [EMAIL PROTECTED] wrote: There is a sensor simulator:http://code.google.com/p/openintents/wiki/SensorSimulator But you have to edit your code to accept input from the emulator. The new code is on the same page. On 1 okt,

[android-developers] Re: specs for YCbCr_422_SP pixel format

2008-10-02 Thread Nikkelitous
The second question you asked is relatively easy. There are two because one of them will return raw data ignoring the format (Uncompressed data direct from the camera). The other actually follows the format settings. The first question, however, is more difficult. The only specs I've been able

[android-developers] Re: Algorithm writen in C

2008-10-02 Thread David Given
[EMAIL PROTECTED] wrote: The idea is to develop the main application in java code and this would call to the algorithm somehow, so the algorithm could return a value for the main app. I know there are some libs writen in C/C++ and I'm wondering if I could do so for my project, write my own

[android-developers] Re: save image in Database

2008-10-02 Thread Jake Maui
Try smaller files. I've been able to read/write to my sdcard but have run into a 250 K limit. The emulator gives me an EOF -1 for bigger files for some reason. On Thu, Oct 2, 2008 at 10:28 AM, Nemat [EMAIL PROTECTED] wrote: ok.I have tried to save image in a file.But I couldnt do

[android-developers] Re: ImageButton caching images when using Uri

2008-10-02 Thread Joe Erickson
Sorry to talk t myself on this thread, but in case anyone else runs into this problem in 1.0R1, the current workaround is to set the ImageURI to null and then back to the URI after saving the image. http://code.google.com/p/android/issues/detail?id=925 On Oct 1, 1:02 pm, Joe Erickson [EMAIL

[android-developers] Re: save image in Database

2008-10-02 Thread Joe Erickson
I handled this by saving the image to the ContentProvider android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI and then saving the created URI to the database along with my item. An example of how to do this can be found here:

[android-developers] Re: How to use findViewById(int id) out of onCreate() ?

2008-10-02 Thread MrSnowflake
Indeed seems to no problem at all. On the other hand, doing all findId's in the oncreate and put them in fields of the activity you're working with, would speed up the app. On Oct 1, 11:51 pm, Joey Yandle [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to

[android-developers] Re: purpose of the assets folder

2008-10-02 Thread hackbod
The asset directory is just an unstructured hierarchy of files, allowing you to put anything you want there and later retrieve as raw byte streams. On Oct 1, 9:17 pm, sarwees [EMAIL PROTECTED] wrote: I just created my first Android project using Eclipse and it generated a folder called assets.

[android-developers] Re: Bug with Ellipsize in ListView?

2008-10-02 Thread Mark Hansen
I've went back and verified the text in the ListView is indeed clean. I'm at a loss as to where the empty block is coming from, any other ideas? Perhaps submit as a bug? On Sep 25, 8:40 am, Mark Hansen [EMAIL PROTECTED] wrote: Hrmm.. well what's weird is the API is truncating the string and

[android-developers] Re: OTA Implementation in SDK?

2008-10-02 Thread shashi
Hi , Where can i find the OTA Over the Air Implementation for Andriod. which SDK has OTA support ? Thanking you Advanced . On Aug 19, 7:11 am, Dan Morrill [EMAIL PROTECTED] wrote: Today we're only releasing this SDK.  We'll have more information on topics like this in the near future. We'll

[android-developers] Re: Internet proxy setting in R1.0

2008-10-02 Thread kimmin
Hi Megha.Joshi I have tried but failed. Is there any tip or other way ? On Sep 24, 6:42 am, Megha Joshi [EMAIL PROTECTED] wrote:  To use proxy connection, you must launch the emulator with -http-proxy flag.  Usage:      

[android-developers] Contacts DataBase

2008-10-02 Thread Alexandru Mos
I have 2 questions. Do you know why I can't update the contact phone numbers and how can I read an IM (Instant message) account in the new version of sdk (v 1.0) ? -- Ing. Alexandru Mos --~--~-~--~~~---~--~~ You received this message because you are subscribed

[android-developers] Application

2008-10-02 Thread barrie
Is there any way to make our own android application unremovable or undeleted? That means only read only by phone holder. Thanks Barrie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: PreferenceActivity Refresh Problem

2008-10-02 Thread Ludwig
I have an ugly solution to this.There should be somewhere to force it to reload the preferences and refresh the screen, but just like you I do not know how to do it. (Suggestions?) However, what you can do is to finish the current preferences activity and to restart it in a new activity, like so:

[android-developers] Re: How to have multiple Android projects in one Eclipse Project?

2008-10-02 Thread David Given
DulcetTone wrote: That is the point, basically. Eclipse doesn't work like that, really. But you can go to Project-Properties-Project References to set up dependencies between projects, so they'll get built as a set. That allows you to put your common code in a separate project which your other

[android-developers] Re: Obfuscation in eclipse for Android?

2008-10-02 Thread UBZack
Hi Peli, blindfold: I know it's been a while, but after having put the whole obfuscation task on the back burner, I decided to come back to it yesterday, and I just now, with tips from both of you, I have completed setting up an Ant build script, using ProGuard, that obfuscates my class names

[android-developers] Re: T-Mobile will be restricting voice over internet protocol (VoIP) applications.

2008-10-02 Thread 3,14
Sure I can give the links: http://voipguides.blogspot.com/2008/09/sip-voip-on-tmobile-google-phone-g1.html http://gigaom.com/2008/09/23/voip-skype-3g-roaming-g1-aka-the-google-phone/ http://blog.wired.com/gadgets/2008/09/g1-android-phon.html More over, our company trying to develope SIP client

[android-developers] Re: UnsupportedClassVersionError with 0.9 and Eclipse layout editor

2008-10-02 Thread blake
Note that this same issue is being tracked in another thread: http://groups.google.com/group/android-developers/browse_thread/thread/aa4227c79e2bd171/8fda9f2bea0c9d8e?lnk=gstq=bad+version+number#8fda9f2bea0c9d8e --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: purpose of the assets folder

2008-10-02 Thread Satya Komatineni
Thanks for the reply. Then how does /res/raw directory differ from /assets sub directory? Both seem to host raw files. Satya On Thu, Oct 2, 2008 at 1:15 PM, hackbod [EMAIL PROTECTED] wrote: The asset directory is just an unstructured hierarchy of files, allowing you to put anything you want

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-02 Thread Chris Cicc
Hey Charlie and Brad, Good news! I now have the ampersand being parsed correctly. However the change needed wasn't what we expected. Every time I changed the raw text in the database from the '' character to the escaped 'amp;' or '#038;' it didn't work, it would still break at that first

[android-developers] Re: best performing xml parser for android?

2008-10-02 Thread zl25drexel
the android SDK also has a pull parser implementation, since it's already build-in, i would probably go for that one because i prefer to add as little 3rd party jars as possible. I would be interested in the performance comparison between the android parser vs. woodstox tho. On Sep 29, 8:15 pm,

[android-developers] Re: UnsupportedClassVersionError with 0.9 and Eclipse layout editor

2008-10-02 Thread Charlie Collins
In my case, when I updated to 1.0 this issue disappeared. I am still not exactly sure why it was occurring, but I no longer experience the problem with Droid 1.0 and Eclipse 3.4. On Oct 2, 2:55 pm, blake [EMAIL PROTECTED] wrote: Note that this same issue is being tracked in another thread:

[android-developers] How do I use View(Context context,AttributeSet attrs) constructor??

2008-10-02 Thread kingkung
I'm trying to convert an Xml string into a view by parsing out the attributes into a set, and keep getting the following exception... java.lang.ClassCastException: android.util.XmlPullAttributes is called whenever I attempt to call Xml.asAttributeSet(XmlPullParser parser). Code below:

[android-developers] Re: Download image from server

2008-10-02 Thread Nemat
I have applied the way given in link.I think the problem is in displaying the image?? Do u know the reason behind this JPEG error??? On Oct 1, 7:07 pm, Mark Hansen [EMAIL PROTECTED] wrote: I followed this short tutorial a while back for downloading an image via http, maybe it can point you in

[android-developers] Re: Bash, C, or Korn Shell?

2008-10-02 Thread Bill Zimmerly
Thanks David ... I'll check it out. - Bill On Oct 2, 3:33 pm, David Welton [EMAIL PROTECTED] wrote: If you want a shell from the GUI, you might be able to hack at Hecl to turn it into what you want: http://www.hecl.org(check it out from subversion though). -- David N. Welton

[android-developers] Re: How do I modify data from the database before sending it to a list?

2008-10-02 Thread Rohit Mordani
What do I need to override in that ListAdapter? If you know how to do this can you please elaborate? Thanks Rohit On Oct 2, 6:20 am, MrSnowflake [EMAIL PROTECTED] wrote: Implement your own ListAdapter. On 2 okt, 01:06, Rohit Mordani [EMAIL PROTECTED] wrote: Hi,      I am accessing

[android-developers] Re: How do I modify data from the database before sending it to a list?

2008-10-02 Thread Jeff Hamilton
If you subclass from ResourceCursorAdapter you should only have to implement bindView(), where you copy the data from the Cursor to the views in the list item. See

[android-developers] Re: BitmapFactory decodeFile

2008-10-02 Thread Romain Guy
Just use BitmapFactory.Options and set the value inJustDecodeBounds to true. This will ask BitmapFactory to only decode the size of the image, not the image itself. On Thu, Oct 2, 2008 at 3:41 PM, Gil [EMAIL PROTECTED] wrote: My app need to load a large image from the SD card. I would like to

[android-developers] Adding an IP address for a local host

2008-10-02 Thread abhijit.deb
How can we add an IP address for a hostname in the android environment? Also, how can we import a security certificate into the environment? Thanks for your attention... -Abhijit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: When is R.string etc available?

2008-10-02 Thread plusminus
The second one is the way its meant to be. I don't know the exact reason but its probably similar to the fact why there are no Constructors for Activities, but the onCreate()/onDestroy()/onResume() Lifecycle-Stuff. Regards, plusminus http://anddev.org # Worlds largest Android Development

[android-developers] Re: Testers Needed - Community App Store

2008-10-02 Thread plusminus
... and why should we be using your store rather than the Android Market ? On 2 Okt., 20:39, plusminus [EMAIL PROTECTED] wrote: Will you provide a auto-updating feature for apps? On 2 Okt., 15:27, Al Sutton [EMAIL PROTECTED] wrote: I've put together a quick first pass at an application

[android-developers] Re: IDE Netbeans

2008-10-02 Thread Charlie Collins
I don't think there is an official NB 6.5 and Droid 1.0 module, yet. There is of course Undroid - http://undroid.nolimit.cz/, but I have no idea how up to date or useful it is (I don't personally use NB). You could probably use activityCreator and import your Ant builds though -

[android-developers] Re: Testers Needed - Community App Store

2008-10-02 Thread Shane Isbell
On Thu, Oct 2, 2008 at 5:40 PM, plusminus [EMAIL PROTECTED] wrote: ... and why should we be using your store rather than the Android Market ? On 2 Okt., 20:39, plusminus [EMAIL PROTECTED] wrote: Will you provide a auto-updating feature for apps? I can't comment on the andappstore, but

[android-developers] Re: call WebService

2008-10-02 Thread Charlie Collins
If you search this forum you find a lot of info on this topic. It depends what you mean by webservice, but if you mean SOAP over HTTP, the typical path is to use kSOAP on Android. Anddev.org has some good samples, including a kSOAP one:

[android-developers] Socket HttpURLConnection don't work?

2008-10-02 Thread Jason Proctor
thanks for the response. i'd previously checked the samples included with the SDK for network code and found none. but then it occurred to me to check the manifest anyway for correct permissions syntax. sure enough, i had the uses-permissions inside application when it should have been

[android-developers] Re: purpose of the assets folder

2008-10-02 Thread hackbod
The stuff under /res/raw are resources, so they are looked up by resource IDs, can be references from other resources, can be localized etc all of the same ways you do with other resources. The stuff under assets is just a raw hierarchy of files and directories, with no other capabilities. On

[android-developers] Re: Activity Lifecycle

2008-10-02 Thread hackbod
Um... you should fix your program. :) You can't really rely on onDestroy() for this. For example, if the user presses home to get out of your app, the activity will not be destroyed. And if the user flips the lid while your activity is running, the current instance will be destroyed and a new

[android-developers] Re: Application

2008-10-02 Thread hackbod
Nope. That is not a nice thing to do to the user. :) On Oct 2, 10:50 am, barrie [EMAIL PROTECTED] wrote: Is there any way to make our own android application unremovable or undeleted? That means only read only by phone holder. Thanks Barrie

[android-developers] OpenGL ES documentation/tutorial suggestions

2008-10-02 Thread Nikkelitous
The documentation for OpenGL ES inside of Android is obviously lacking -- it's completely void of any text. Now, this is apparently not that big of a deal as it's essentially a clone of J2ME's OpenGL ES, however, I've never used that and am wondering what's a good way to get started in learning

[android-developers] Re: call WebService

2008-10-02 Thread Cezar Augustus Signori
Well, you can use the following code (and later put JSON libs to handle the response) String res=; HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost(http://10.1.1.3:8080/AllertWS/ AllertWSService); try { post.setHeader(Content-Type, text/xml);

[android-developers] Rotating an image using Drawable

2008-10-02 Thread Jason Proctor
i don't know whether this is what you're looking for, but Lunar Lander has an example of drawing a rotated Drawable. hth create image using the bitmap then use the Matrix and its preScle func.. and paasing this as a parameter u can create another bitmap.. like

[android-developers] Re: specs for YCbCr_422_SP pixel format

2008-10-02 Thread walterc
On Oct 2, 11:49 pm, Nikkelitous [EMAIL PROTECTED] wrote: The second question you asked is relatively easy.  There are two because one of them will return raw data ignoring the format (Uncompressed data direct from the camera).  The other actually follows the format settings. that's what i

[android-developers] How many threads can be created or how to avoid thread leak

2008-10-02 Thread Jo
HI, I am developing a chat application. Everytime a user clicks a button a thread needs to handle it as text message needs to be sent over network. so, I am creating a new thread each time when the user clicks on button. I wish only 1 thread handles all the messages to be sent. But,

[android-developers] Synchronization issue:plz help

2008-10-02 Thread Sudha
Hi all I am facing one issue with Listactivity and progressDialogue. I have a class extending ListActivity. and in onListItemClick() when I am clicking one item it should display the dialogue box and then do teh calculation and tehn dismiss teh dialogye I have writen the code like

[android-developers] Re: onCreateOptionsMenu not called

2008-10-02 Thread Jason Parekh
Are you overriding either onCreatePanelView or onCreatePanelMenu? If so, try commenting that out and seeing the behavior. jason On Fri, Sep 26, 2008 at 12:33 PM, Teo [EMAIL PROTECTED] wrote: I just tried with the same project on another computer where i installed SDK 1.0 clean, same

[android-developers] Re: OpenGL ES documentation/tutorial suggestions

2008-10-02 Thread Steve Oldmeadow
I would recommend the book Mobile 3D Graphics with OpenGL ES and M3G by Karri Pulli and others. You may not be interested in the M3G stuff but the book is worth it for the introductory 3D and OpenGL ES coverage. This book was also recommended by the developer of the Oolong 3D engine for the