[android-developers] Re: Eclipse hangs when launching program file.. AGAIN !

2008-03-26 Thread wonderoid
Anyone found a fix for this yet? --~--~-~--~~~---~--~~ 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

[android-developers] Re: Problem:ActivityManager Error type 3

2008-03-26 Thread Pierre Neihouser
Looks good to me. Could you show me the code in the Layoutandy.java file ? On Wednesday, March 26, 2008, at 06:24AM, "Dagger" <[EMAIL PROTECTED]> wrote: > >This is my android manifest file. > > >http://schemas.android.com/apk/res/android"; >package="LayoutAndy"> > > >

[android-developers] Re: Is there a API implementing a multi-selected list views?

2008-03-26 Thread xingye
I'm trying on it. There is an example already here - layer selection dialog in the maps. If I find the key, I will post it out:) On Mar 25, 11:45 pm, Wei Yongqiang <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to know if there is a API that have implemented a multi-selected > list views. I am d

[android-developers] Re: Is there a API implementing a multi-selected list views?

2008-03-26 Thread Wei Yongqiang
Good news. After your trying, tell us the result. Thanks. Frank On Wed, 2008-03-26 at 02:03 -0700, xingye wrote: > I'm trying on it. There is an example already here - layer selection > dialog in the maps. If I find the key, I will post it out:) > > On Mar 25, 11:45 pm, Wei Yongqiang <[EMAIL PRO

[android-developers] Arabic For Android

2008-03-26 Thread [EMAIL PROTECTED]
Peace be upon you how are you guys, for Arabian Developer I have done a class that do reshape for the Arabic text I hope that it is useful to you here is link for the class http://wm-arabic.cvs.sourceforge.net/wm-arabic/JAVA_Android_Version/ other related useful links http://www.ahmed-essam.c

[android-developers] Question about Activity.onStop()

2008-03-26 Thread babyblue
Suppose Activity A is running. Then I called startActivity() from another process which start Activity B. Then normally A.stop() will be called. But if I write Activity B like this: class B extends Activity{ public void onCreate(Bundle ...){ super.onCreate(...); finish(); } } which

[android-developers] stand-alone notepad content provider insert error

2008-03-26 Thread logisic
played around with the original notepad example. split the code into 2 apps as follows: app NotePad(com.google.android.notepad) contains NoteEditor.java, NotesList.java and TitleEditor.java. app NoteProvider(com.google.provider) contains NotePad.java and NotePadProvider.java. installed the NotePr

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Amos
Hi Raja, I think the following thread provides good info (although it's become a bit long): http://groups.google.com/group/android-developers/browse_thread/thread/9632cb52888ef6db/9287a1a6a24ea577 Assuming you want to pass Objects between Activities in the *same* application (i.e. same process)

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Amos
Here is the sample code for passing Object references between activities: I have a class called ReferencePasser, which wraps a HashMap: import java.util.HashMap; /** * @author Amos * Maps Objects to keys. * The k

[android-developers] URL and socket closing

2008-03-26 Thread michael
Hi, I have a problem about correctly closing the underlying socket after opening and reading an input stream from a URL object. The following code leaves many (i.e. all) sockets open (in the CLOSE_WAIT state, as netstat reports): private void test() { for (int i = 0; i <

[android-developers] Re: Browser is not getting connected to the internet.

2008-03-26 Thread gmh
I'm having the same problem. It must be something really newbie but please, could anyone help us? I'm using eclipse version: 3.3.1.1, android-sdk_m5-rc15_windows, and I don't seem to have any proxy. I need to test a web to see how it looks on android, so I just run any sample proyect (lunar lander

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Diego Torres Milano
If you want to write your own activity implementing those actions, how would you do that ? Implementing a new whole ContactsProvider ? If you only want to replace, say INSERT ? How your new ContactsProvider can coexist with the standard one if you want to extend its functionality ? On Mar 26, 7:3

[android-developers] Android Screen Dimentions

2008-03-26 Thread Greg
What are the Android Screen dimensions can any body tell me ? --~--~-~--~~~---~--~~ 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 unsu

[android-developers] How to associate my App with a file extension in the Browser

2008-03-26 Thread Amos
Hi, I would like to implement the following scenario: When a user browses a web page with Browser and clicks a link with a special file extension (which is unique to my application, such as "www.mysite.com/somefile.xxx"), that file will be downloaded and then my application launched to view the

[android-developers] Re: Polling internet, battery life Suggestion / Question?

2008-03-26 Thread Peli
Your idea sounds very useful. Indeed, it could be an idea that would fit well into our project "OpenIntents". I already suggested it as an idea in our project group: http://groups.google.com/group/openintents/browse_frm/thread/7f34fe99bd23c25 linking back to this discussion here, so feel free to a

[android-developers] Re: Question regarding MapActivity / MapView

2008-03-26 Thread goro
It just doesn't work. I see the directory and the files in the file explorer and when i browse with the adb shell, but android doesn't see the 'test' folder as a location provider, although it has exactly the same files as the 'gps' folder. I tried another trick. I've removed the files in the gps

[android-developers] Re: Two emulators the same machine

2008-03-26 Thread Raja Nagendra Kumar
We see there are bugs in -d option..It is accepting any random device name too and attaching it self to first found device. adb -d dd logcat is accepted - as dd does not exist it should report the issue.. In the interest of other developers the -d takes value 1 to 16 and not the names which gets

[android-developers] bug in onListItemClick call for the emulator with skin HVGA-L

2008-03-26 Thread Raja Nagendra Kumar
For the sub activities running on the mulator with skin -skin HVGA-L, aListView or its selected item is coming as null. This could be a proable bug on this skin. protected void onListItemClick(final ListView aListView, final View aView,

[android-developers] ImageView - Translate Pixels from View to Bitmap

2008-03-26 Thread [EMAIL PROTECTED]
How can I translate a view x,y pixel to a x,y pixel in the Bitmap? --~--~-~--~~~---~--~~ 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] Re: New AndroidGL Tutorials Posted

2008-03-26 Thread simo
Thank you, a perfect timing :-) --~--~-~--~~~---~--~~ 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

[android-developers] adb push doesn't work

2008-03-26 Thread goro
Hi All, I have the following probelem. when I type adb push in the console nothing happens: # push "C:/Dokumente und Einstellungen/goro.GORO-6AF7A985DB/Desktop/ gps2 /data/m isc/location/gps2 gives me a new line with '>' as a cursor. If I type adb push instead of simple push i have the same '>'.

[android-developers] ListActivity Focus Colors

2008-03-26 Thread Kevin Wu
Hello all, Sometimes when I post to an old thread, I feel like it doesn't get any more attention on the discussion boards. I am trying to change the focus/selected/pressed colors of my ListActivity and I've almost got it figured out. Everything works as expected except when I press DPAD_CENTER (o

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Raja Nagendra Kumar
Hi Amos, Thank you for the code libary to put and get java object refereces across the components (i.e activities). Based on hackbod comments, I am still not confused, why one has to do so much for passing references, it is my intent is to pass them by refence and the underllaying framework should

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-26 Thread kaiping
Thanks for the idea. I have confirmed that the file is named transaction_edit.xml. On Mar 26, 3:54 am, "Dan U." <[EMAIL PROTECTED]> wrote: > Well, he needs to have the filename be transaction_edit.xml. Not sure > if it is. > > On Mar 25, 5:29 am, Rick Genter <[EMAIL PROTECTED]> wrote: > > > Don'

[android-developers] Re: Two emulators the same machine

2008-03-26 Thread Diego Torres Milano
You may be interested in this post (http://groups.google.com/group/ android-developers/msg/642de3ec8031178a) too (adb parsing command line options). On Mar 26, 12:38 pm, Raja Nagendra Kumar <[EMAIL PROTECTED]> wrote: > We see there are bugs in -d option..It is accepting any random device > name t

[android-developers] Re: adb logcat -f out.log doesn't work?

2008-03-26 Thread Raja Nagendra Kumar
Hi, May be there are big issues in the arguments checking in sdk tools. adb logcat APP_FILTER_TAG or emulator -logcat APP_FILTER_TAG does not seem to work as expected. I am still seeing all the log messages which are of different tag than APP_FILTER_TAG. Regards, Raja Nagendra Kumar, C.T.O www

[android-developers] Call unblockContact(contact)

2008-03-26 Thread David HK
I have tested android-sdk_m5-rc15_windows\samples\ApiDemos\src\com \google\android\samples\app\GTalkDataMessageSender.java I have two gmail accounts: [EMAIL PROTECTED](on emulator A) ,[EMAIL PROTECTED](on emulator B) At first,I sent message from A to B,it doesn't work. Then I went to the web gm

[android-developers] "What is Android?" diagram in docs.

2008-03-26 Thread szeldon
Hi, My question is a little silly one, but I wonder why on diagram at http://code.google.com/android/what-is-android.html the Android Runtime layer is not between Application Framework and Libraries? Is this because Android Runtime uses kernel's functionality for threading and low-level memory ma

[android-developers] Re: adb push doesn't work

2008-03-26 Thread goro
Probelm solved. I have tries push from whithin the adb console instead of from the windows shell On 26 Mrz., 14:03, goro <[EMAIL PROTECTED]> wrote: > Hi All, > I have the following probelem. when I type adb push in the console > nothing happens: > > # push "C:/Dokumente und Einstellungen/goro.GOR

[android-developers] Re: "What is Android?" diagram in docs.

2008-03-26 Thread [EMAIL PROTECTED]
I guess. Runtime is fundamentally "on the side". Think of runtime as the CPU for code written in Java: apps use the runtime directly, java framework libraries use the runtime directly. Diagram would be better if runtime went to top all the way. JNI allows to go directly from application framewor

[android-developers] help- 670 errors :( R cannot be resolved

2008-03-26 Thread hmmmmm
hi im a late comer in adc. im getting a problem while running the api demo in the sample it is generating 670 errors 69 warnings the main error is R cannot be resolved. im not able to find the R.java while creating the project from the given source. im using Eclipse 3.3.1 M5 Windows. i create s

[android-developers] Special Actions for IGTalkSession.sendDataMessage()

2008-03-26 Thread jtaylor
The second parameter for IGTalkSession.sendDataMessage() contains, "the intent object contains the action to be broadcasted by the receiving device's GTalkService" http://code.google.com/android/reference/com/google/android/gtalkservice/IGTalkSession.html#sendDataMessage(java.lang.String,%20andr

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread Dan U.
Was your project created as an Android project? On Mar 26, 7:58 am, hm <[EMAIL PROTECTED]> wrote: > hi > im a late comer in adc. > > im getting a problem while running the api demo in the sample > it is generating 670 errors 69 warnings > > the main error is R cannot be resolved. > im not abl

[android-developers] Re: Null pointer exception when finding views by Id

2008-03-26 Thread Dan U.
Are you sure ALL the findViewById return null? This one does for sure: mDescription = (EditText) findViewById(R.id.account_name); since there is no account_name id in your layout. On Mar 26, 6:19 am, kaiping <[EMAIL PROTECTED]> wrote: > Thanks for the idea. I have confirmed that the file is name

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread hmmmmm
yes offcourse On Mar 26, 10:13 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > Was your project created as an Android project? > > On Mar 26, 7:58 am, hm <[EMAIL PROTECTED]> wrote: > > > hi > > im a late comer in adc. > > > im getting a problem while running the api demo in the sample > > it is gen

[android-developers] File.listRoots() is not "/" exactly

2008-03-26 Thread Derek
Hi, Under Android M5 RC15, File.listRoots() returns a File instance with path = "/" followed by two 0x00 bytes. File name returned is just the two 0x00 bytes. Is it a bug ? Such 0x00 cause a lot of problem when browsing folders and subfolders. Any feedback is welcome. Thanks, Derek. --~--~---

[android-developers] Re: Picture and Buttons for different screen size

2008-03-26 Thread vitvikt
Thanks, Megha > The QVGA-L and QVGA-P modes are not supported in the m5 SDK. Your > application may still use them, but may face some issues with layout. > It is recommended  to use HVGA-L and HVGA-P modes. I used it only for test. Do you know about another emulators with another screen size? >

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread Dan U.
It sounds like something is corrupted. I'd recommend creating a new project and moving everything over to that one. On Mar 26, 9:27 am, hm <[EMAIL PROTECTED]> wrote: > yes offcourse > > On Mar 26, 10:13 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > > > Was your project created as an Android proje

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread hackbod
No, it has nothing to do with writing a contacts provider. The provider is the back-end data; an activity is the user interface. You just write a new activity that operates on the existing content provider. On Mar 26, 3:24 am, Diego Torres Milano <[EMAIL PROTECTED]> wrote: > If you want to writ

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread hmmmmm
thnx dan for your reply I have done several times creating a new projects in eclipse through linking the Api Demo in the sample but every time im sawing this error. :(( what would i do now R.java is an autogenerated file could i make it myself?? could you share your R.java of the Api demo sa

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread hackbod
It is because the process can be killed when your application goes to the background, so the system needs to be able to hold on to any objects in its own process, to be able to return them to you in the event of you being killed and restarted. Note that due to this behavior, the approach suggeste

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-03-26 Thread hackbod
All of Android's file mappings are based on MIME types. As long as your web server is returning the correct MIME type, you can implement an activity that says it knows how to VIEW that MIME type and it will be launched when the user clicks on such a file after downloading it. On Mar 26, 3:34 am,

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Dexter's Brain
ok...Let me tell you what i wanted to doI have a local file that has information about all the contacts on the phone. And my application uses this local file and not the phone book data directly So I wanted that, whenever a new contact is added or an old one is deleted, I should run a pro

[android-developers] Graphics performance

2008-03-26 Thread David Given
Hello, I'm trying to write some highly graphics-intensive code. It's basically rendering into a pixel array (int[]), which I want to slam onto the screen as quickly as possible. What I'm seeing is rather disappointing. What I'm doing is copying the pixel array into a Bitmap object using Bitma

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread Raja Nagendra Kumar
Hackbod, I clearly understand this swapping approach to release the resources and memory. But question is why the framework can't handle this transperently i.e transperently storing the object status of background process it is killing and getting it back with out programmer need to take care of

[android-developers] The difference between selected and focus ?

2008-03-26 Thread Agus
Hi all, What is the difference between a selected view and a focused view? Agus. --~--~-~--~~~---~--~~ 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@go

[android-developers] Telephony API?

2008-03-26 Thread GaryH
All: I have read a number of post about not being able to intercept incoming calls, get the outgoing call in real time, and a number of other phone features which one would expect to be present in an "open" system. Without muddling the waters more than they already are around this issue, my ques

[android-developers] Re: Incoming call data

2008-03-26 Thread GaryH
I think we'll know the real answer as to why the API is incomplete or not exposed once the first few hardware devices are relased and operational. Actions tend to speak volumes and I have nott much credible lip service given to this topic by Google. Would be nice to see a solid response with a tan

[android-developers] Coding conventions

2008-03-26 Thread Dan U.
I'm researching coding conventions for Android. It seems that following standard Java conventions is a good thing. Are there any Android-specific conventions? I already know about the guidelines for performance. I'm more concerned with things like variable naming. I notice a lot of instance variab

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Peli
Could a ContentObserver be registered for cases like these? http://code.google.com/android/reference/android/database/ContentObserver.html http://code.google.com/android/reference/android/content/ContentResolver.html#notifyChange(android.net.Uri,%20android.database.ContentObserver) Peli On Mar 2

[android-developers] Problem with IDs in R.java

2008-03-26 Thread tim.chittka
Hello, I work on a Android project, for which I provided several new view components. Some of those are however rather general, e.g. a slider. I would put these components gladly in a jar to make them available to others. However I have the problem that the components using pngs from the drawable

[android-developers] Re: webservice using ksoap2 in android

2008-03-26 Thread Kasas
If there is no way to put a timeout in the call, u should use a thread to call it, and in the main thread just wait 6 second before check if the webservice call has an answer. Unless it does, you should kill that thread... On Mar 18, 9:12 am, "Florindo Renso" <[EMAIL PROTECTED]> wrote: > Thx :-)

[android-developers] Re: Good example for showing exchanging of data mostly arrays or non premitive data types,objects

2008-03-26 Thread [EMAIL PROTECTED]
How would you want to make it more transparant? If you want to kill activities when they are in the background and restore them when the user wants to see it again you have to save the state of the objects. Saving the state of objects is only possible if you marshal the object. If you only have a

[android-developers] Re: Graphics performance

2008-03-26 Thread [EMAIL PROTECTED]
It think graphic performance is very limited due to the use of an emulator. Real phones will almost certainly have hardware accelerated 2d-graphics (and probably also 3d). On Mar 26, 6:03 pm, David Given <[EMAIL PROTECTED]> wrote: > Hello, > > I'm trying to write some highly graphics-intensive co

[android-developers] How to post a new key event?

2008-03-26 Thread Cheryl Sedota
I am developing an on-screen keyboard activity and need to post a key event to Android. I can't figure out how to do it. I've intercepted some key events to see what Android methods are on the stack, and it seems that I need to call getParent() from my view until I get to the view root (android.

[android-developers] Re: Activity neutral entry point for an Android application?

2008-03-26 Thread Jakob Bjerre Jensen
Hello hackbod, That is exactly, what I was looking for! Thanks! I think, that application code, which is independent of any activity, should be placed some neutral place. Best regards, Jakob Bjerre Jensen On 21 Mar., 20:48, hackbod <[EMAIL PROTECTED]> wrote: > One approach you can take: > > htt

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread jtaylor
Possibly using sync as well. - Juan On Mar 26, 1:42 pm, Peli <[EMAIL PROTECTED]> wrote: > Could a ContentObserver be registered for cases like > these?http://code.google.com/android/reference/android/database/ContentObse...http://code.google.com/android/reference/android/content/ContentResol..

[android-developers] Any Generic Object Pool implementation ?

2008-03-26 Thread Harsh Jain
That ships with android and can be used. Regards, harsh --~--~-~--~~~---~--~~ 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 unsubscri

[android-developers] Re: Graphics performance

2008-03-26 Thread tberthel
My main issues is that the line drawing is usually faster than images on real phones for up to 12 or so lines, but not the emulator. The drawing images and 3d is actually not that bad for fast phones of 2003, but it should be about 8 times faster. 25fps is actually really fast, but like you sa

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread hackbod
You could use a content observer, but this would require your app always running to monitor for changes. I'm not sure of a solution off-hand besides updating your list when your application starts. We deliberately decided to not support having apps launched to be notified when data in a content

[android-developers] loadFromXML causes InvalidPropertiesFormatException

2008-03-26 Thread Anil
properties.loadFromXML(inputStream); throws an InvalidPropertiesFormatException I think the file is correct because it works fine in J2SE. http://code.google.com/android/reference/java/util/Properties.html config file guest my.com 60 Furthermore, I print out the exception bu

[android-developers] Re: Coding conventions

2008-03-26 Thread Rui Martins
Some people use "m" as prefix for all class fields. "m" stands for "member" variable or field. I don't like this specific convention, and I don't use it, and if I'm not mistaken, this is not a java recomended convention. If we really need to make obvious in some specific situation, that somethin

[android-developers] Re: How to post a new key event?

2008-03-26 Thread Rui Martins
Is your keyboard event handle, "onKeyDown(...) method, returning the correct values when they process a specific key ? Do you call the super.onKeyDown(...) and return it's result, when you don't process a key that you don't recognize ? Does commenting the onKeyDown(...) method make the EditText

[android-developers] Re: ImageView - Translate Pixels from View to Bitmap

2008-03-26 Thread Rui Martins
You probably have to find out the relative/absolute position of the view to it's parent(s). I I'm not mistaken there is a method that returns exactly that. Can't remember which, check the docs for "View". If you have applyed some sort of transformation (rotate, translate, etc...) you will need to

[android-developers] Re: Graphics performance

2008-03-26 Thread Rui Martins
There is a Static Method (createBitmap(...)) that knows how to build a Bitmap from a int buffer (32bits per pixel, ARGB), check that out, maybe it's faster. Haven't check it out against setPixel. // for M3 Bitmap.createBitmap( colorBuf, w, h, false ); // for M5, you need to replace the false wit

[android-developers] Re: How to post a new key event?

2008-03-26 Thread Cheryl Sedota
Hi, I am not trying to listen for the "onKeyDown" event in my keyboard view class or keyboard activity - I want the EditText control that is in the same viewgroup as my keyboard view to listen for and respond to it. Do I have to explicitly set EditText views as focusable? I wouldn't think so bec

[android-developers] Pass data (bundle) to an activity instance?

2008-03-26 Thread [EMAIL PROTECTED]
Is there an easy way to pass data (a bundle) to an activity instance? thanks --~--~-~--~~~---~--~~ 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@googleg

[android-developers] Re: Telephony API?

2008-03-26 Thread ajsinclair
Definitely a feature of interest and would be good to see what the direction is for Android and if it will become a powerful development platform like Symbian as currently it appears to be a lot more like a J2ME. On Mar 27, 4:17 am, GaryH <[EMAIL PROTECTED]> wrote: > All: > > I have read a number

[android-developers] Re: Pass data (bundle) to an activity instance?

2008-03-26 Thread Dan U.
In your Intent there is a putExtras On Mar 26, 2:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there an easy way to pass data (a bundle) to an activity instance? > > thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

[android-developers] Re: loadFromXML causes InvalidPropertiesFormatException

2008-03-26 Thread Dan U.
I wonder if this would have to do with the xml bug where you can't retreive a NamedNodeMap of all attributes. On Mar 26, 1:40 pm, Anil <[EMAIL PROTECTED]> wrote: > properties.loadFromXML(inputStream); > throws an InvalidPropertiesFormatException > > I think the file is correct bec

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-03-26 Thread Amos
Thanks for your reply, Dianne! I'll register my Activity like you specified. But how will I be able to access the downloaded file. Will it be downloaded to a temp location and have global read permission set on it? How will the file's path be passed to me using the Intent sent by the browser? M

[android-developers] Re: Pass data (bundle) to an activity instance?

2008-03-26 Thread Charlie Collins
And if you need more than primitive types, and need to pass data only between apps within in application (not between applications), then you can extend the Application object, or use a statics, search around the forum for passing user defined objects. On Mar 26, 6:28 pm, "Dan U." <[EMAIL PROTECT

[android-developers] Problems with getCurrentLocation("gps")

2008-03-26 Thread Markus
Hello out there, I'm trying to develop an android application which uses GPS for that I implemented following way to get my location: m_locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location = m_locationManager.getCurrentLocation("gps"); But everytime the

[android-developers] Re: help- 670 errors :( R cannot be resolved

2008-03-26 Thread Charlie Collins
R.java is generated using the aapt tool. If the Eclipse plugin is giving you problems generating this automatically (likely because you have something corrupted or misconfigured), then try doing it manually on the command line. http://code.google.com/android/reference/aapt.html On Mar 26, 12:55

[android-developers] Re: Passing an array between activities

2008-03-26 Thread Charlie Collins
http://groups.google.com/group/android-developers/browse_thread/thread/9632cb52888ef6db Easier to extend Activity, or static fields. You can serialize into a Bundle, as you state, but if you need to pass data within an app like that, it's a lot faster/easier to use the other aforementioned appro

[android-developers] Re: Passing an array between activities

2008-03-26 Thread hackbod
There are a number of known issues right now with this aspect of the system, that will be fixed in an upcoming SDK: - Application-defined Parcelable and Serializable classes don't work when used in the Intent given to startActivity(). (They should work in Bundles in other places.) - We original

[android-developers] Re: Problems with getCurrentLocation("gps")

2008-03-26 Thread Dan U.
The name of the permissions is wrong. Try this: On Mar 26, 4:26 pm, Markus <[EMAIL PROTECTED]> wrote: > Hello out there, > I'm trying to develop an android application which uses GPS for that I > implemented following way to get my location: > m_locationManager = > (LocationManager)get

[android-developers] Re: Special Actions for IGTalkSession.sendDataMessage()

2008-03-26 Thread jtaylor
This is obviously an Intent defined by the App. android.intent.action.SAMPLE_GTALK_DATA_MESSAGE in the AndroidManifest is not a standard broadcast intent. "There are a variety of standard Intent action and category constants defined in the Intent class, but applications can also define their own.

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Peli
> You could use a content observer, but this would require your app > always running to monitor for changes. So one could probably write a lightweight background service that uses a content observer to constantly monitor for changes, and notifies the starting app only of those fields that have ch

[android-developers] Canvas.drawArc

2008-03-26 Thread Kenny
Hi, Has anyone successfully use the drawArc function? or is that part of the SDK not ready yet? Kenny --~--~-~--~~~---~--~~ 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: PackageManager.installPackage() ?

2008-03-26 Thread Ben Dodson
Extremely unlikely is better than no chance at all :) I posted a request here if anyone's interested: http://code.google.com/p/android/issues/detail?id=545 thanks for the help Diane. Ben On Mar 25, 12:31 pm, hackbod <[EMAIL PROTECTED]> wrote: > On Mar 25, 5:58 am, Ben Dodson <[EMAIL PROTECTED]

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-03-26 Thread hackbod
This stuff is still under development, but I believe right now it is downloaded into a content provider that anyone can access. In the future, this will be downloaded to a more sophisticated download manager, that maintains per-item permissions so only the application requesting a download can ac

[android-developers] Changing the layout of the options menu

2008-03-26 Thread Cassio Melo
Hello, does anyone know if it is possible to change the options menu layout? ... menu.add(0, 1, "Back"); menu.add(0, 2, "View"); .. I want a vertical menu, not that hz menu with large buttons (it is hiding some functions of my app when appears) --~--~-~--~~~---~--~--

[android-developers] Re: How to associate my App with a file extension in the Browser

2008-03-26 Thread Jean-Baptiste Queru
Hello, I'm the Google engineer who works on that area of Android. Indeed, the download system is still under development, and you can expect to see changes there at some point. The two key aspects that you need to know is that: -the MIME type is what matters. The URI extension is not relevant in

[android-developers] How can I make a Spinner with a transparent drop down list

2008-03-26 Thread j
Dear Android Experts, How can I make a Spinner with a transparent drop down list? By that I mean the background of the drop down list show alpha transparency. If your Spinner uses the default simple_spinner_dropdown_item, the background is a solid white. Is alpha transparency possible? Thanks

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Dexter's Brain
What do you mean by sync??? On Mar 27, 12:12 am, jtaylor <[EMAIL PROTECTED]> wrote: > Possibly using sync as well. > > - Juan > > On Mar 26, 1:42 pm, Peli <[EMAIL PROTECTED]> wrote: > > > Could a ContentObserver be registered for cases like > > these?http://code.google.com/android/reference/andr

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Dexter's Brain
Ok...this seems to be the only option to me now..I LL DO THAT.:-) On Mar 27, 5:20 am, Peli <[EMAIL PROTECTED]> wrote: > > You could use a content observer, but this would require your app > > always running to monitor for changes. > > So one could probably write a lightweight background s

[android-developers] Re: loadFromXML causes InvalidPropertiesFormatException

2008-03-26 Thread Anil
frustrating when it appears to be a basic android bug, and also that no one from google has replied. On Mar 26, 5:30 pm, "Dan U." <[EMAIL PROTECTED]> wrote: > I wonder if this would have to do with the xml bug where you can't > retreive a NamedNodeMap of all attributes. > > On Mar 26, 1:40 pm, An

[android-developers] Re: Life cycle of activities updating a database

2008-03-26 Thread tenacious
I've encountered this paradigm too and would also like to know why results can't be set as late as onPause? Hopefully somebody knowledgeable can chime in... Having the differing behaviors between "confirm" and onPause() is causing pain because I want to have the "cancel" button act like confirm

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Peli
Great that you liked the idea. In fact, this would be useful for more than one application, so one small background service could actually keep track of changes for several applications. In this general sense, it would eventually be interesting for our project as well (OpenIntents - http://code.

[android-developers] 4GB USB flash drives for only $14.49

2008-03-26 Thread jimcaan
Hey there, www.dealsusb.com has 4GB USB flash drives for only $14.49 Free Shipping with warranty . No rebates. Now we can store large amounts of data into this Massive 4gb portable flash drive Jimmy --~--~-~--~~~---~--~~ You received this mess

[android-developers] Who is responsible for closing FilterableListAdapters on AutoCompleteTextView

2008-03-26 Thread Rainer
Hey I have a form with an AutoCompleteTextView which is backed by a SimpleCursorAdapter. My problem is that it seems that nobody closes the Cursors returned by runQuery(). I dont think that I as a user of SimpleCursorAdapter am responsible for closing them as there does not seem to be an obvious p

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread severian
The problem is that ContentObserver.onChange() doesn't tell you what changed. So how do you figure it out? Well, as far as I can tell you have to keep your own copy of everything you might care about in the database, and then when you get onChange() you read everything from the ContentProvider and

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread Dexter's Brain
I totally agree.To detect even a single change, I will surely have to rescan everythingThats a lot of work of course Dexter. On Mar 27, 9:30 am, severian <[EMAIL PROTECTED]> wrote: > The problem is that ContentObserver.onChange() doesn't tell you what > changed. So how do you figure

[android-developers] SMS

2008-03-26 Thread baskar
Hi All, How to use SMS Reading and SMS Listening in Android.. please help me... Regards, Baskar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android

[android-developers] Eclipse 19% BUG

2008-03-26 Thread GUS
Just in case you still don't know about it...This occurs quite often in windows. Sometimes when I'm compiling an application to run it on the emulator, something crashes. The Launching progress stops in (19%) and the application is never loaded. So I have to close Eclipse, open the Windows Task M

[android-developers] Re: SMS

2008-03-26 Thread GUS
Please baskar, read the documentation here: http://code.google.com/android/reference/android/telephony/gsm/package-summary.html You can also find a great tutorial about it on this link: http://www.anddev.org/recognize-react_on_incoming_sms-t295.html Regards, Gustavo Avila http://www.virtualsite.

[android-developers] Share XML files

2008-03-26 Thread CaptainFanatic
I want to share data between two android phones, preferably by sending XML files, and I'm hoping for some feedback on what is the best way to do this. The reason I want to use XML is to keep things loosely coupled - this data could then be shared with apps on other platforms etc. One method I'm c

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread hackbod
On Mar 26, 9:30 pm, severian <[EMAIL PROTECTED]> wrote: > I really hope they fix this API to indicate what has changed, because > ContentObserver is a nice idea - it allows different frontend and > backend applications to share a common data pool. It's a very intentional design. In fact original

[android-developers] Re: Intent Receiver for android.intent.action.INSERT

2008-03-26 Thread severian
Thanks, hackbod, for your comments. I see how this API is satisfactory for the stated purpose of notifying other view elements when they need to re-sync with the ContentProvider. Of course, that is not the only kind of application that cares about changes to content, and I personally wish you guy

  1   2   >