[android-developers] Augmented Ajax Notifications
Can augmented ajax use Notifications? Is this Android 2.0? - Juan --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Augmented Ajax Notifications
Can augmented ajax work with Notifications? Is this Android 2.0? - Juan --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: When to use android:attr and android:style ?
Style applies to a component like a TextView. Themes are for whole Activities or Applications. + Juan On May 19, 5:01 pm, twan twa...@gmail.com wrote: Found it out myself, theme seems to apply to all, style only applies to one view. Handy! Cheers, Twan On May 19, 9:42 pm, twan twa...@gmail.com wrote: Hello, I got a little question on when to use style and android:theme in a layout xml file. For example: style=?android:attr/textAppearanceSmall does the same thing as: android:theme=@android:style/TextAppearance.Small Which one should i use? Please note: i will reply a little late, cause i'm not able to see my own messages in this group, only through google.com search result. Kind regards, Twan --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Corrections in Docs
Sounds Good. + Juan On May 11, 3:17 pm, Marco Nelissen marc...@android.com wrote: On Mon, May 11, 2009 at 11:24 AM, jtaylor jatto@gmail.com wrote: Shouldn't there be a place outside of the Issues page, where one can report spelling errors that are in the docs and articles? File a bug for a little spelling error?? You could also submit a patch that fixes the error. --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: conversion to dalvik format failed with error 1
I uninstalled/re-installed it and I Still have the same errors upon creation of a project. [2009-05-12 13:23:50 - Lucayan] no classfiles specified [2009-05-12 13:23:50 - Lucayan] Conversion to Dalvik format failed with error 1 - juan On May 11, 9:09 am, Thomas Lee aztho...@gmail.com wrote: Thanks Derek, after uninstall/re-install ADT, the annoying problem has disappeared. On May 8, 11:36 pm, Derek dlawl...@gmail.com wrote: I got this error frequently right after updating ADT. Turned out that I had updated my ADT instead of uninstall/install. I had to manually cleanse my eclipse install to get rid of references to 0.8 On May 8, 3:02 am, kenjkelly kenke...@kenkelly.com wrote: My guess is that the 1.5 release relies on something that gets built after it is needed. Thus the Clean fails but then it works on the next build. Can someone who worked on the Eclipse Plugin for 1.5 check that out? Incase it is important, I am using the 1.5 with Google libs selection. Ken Kelly On May 8, 3:34 am, Kamal Hasan kamal.hasa...@gmail.com wrote: Hi My project was running perfectly and when I cleaned the project then It started to give the following error. [2009-05-08 12:47:24 - MobilChek] no classfiles specified [2009-05-08 12:47:24 - MobilChek] Conversion to Dalvik format failed with error 1 Pls help me in resolving this issue. Kamal On May 4, 2:53 am, Justin (Google Employee) j...@google.com wrote: Did you update your plugin? If so, did you create either a 1.1 AVD or a 1.5 w/Google Maps AVD? Cheers, Justin Android Team @ Google On May 2, 10:59 am, Berlin Brown berlin.br...@gmail.com wrote: On May 2,1:05 pm, CnmJbm cnm...@gmail.com wrote: ok, it seems i fixed it on my environment. just delete the R.java (by refreshing the project) and rebuild the project. On May 2, 9:57 am, CnmJbm cnm...@gmail.com wrote: i got the sameerror, TOO!!! May Day On Apr 28, 3:57 pm, chris.cap...@gmail.com chris.cap...@gmail.com wrote: Hi, I just updated to SDK 1.5 and all of my projects are failing to build with the followingerror: [2009-04-28 15:53:23 - Utilities] no classfiles specified [2009-04-28 15:53:23 - Utilities]ConversiontoDalvikformatfailed witherror1 (Utilities is the name of this specific project.) Any idea why? I'm on Ubuntu 9.04 x64. Before the update to 1.5 everything worked fine. Thanks. Chris I got rid of thaterrorand get thiserror, any ideas. I have a similar configuration: [2009-05-02 14:22:39 - HelloWorld]Failedto find an AVD compatible with target 'Android 1.1'. Launch aborted.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Corrections in Docs
Shouldn't there be a place outside of the Issues page, where one can report spelling errors that are in the docs and articles? File a bug for a little spelling error?? Android 1.5 offers a very way to solve this issue with a the new mutate() method. http://android-developers.blogspot.com/2009/05/drawable-mutations.html - juan --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Corrections in Docs
Hello Marco, How do I do that? - juan On May 11, 3:17 pm, Marco Nelissen marc...@android.com wrote: On Mon, May 11, 2009 at 11:24 AM, jtaylor jatto@gmail.com wrote: Shouldn't there be a place outside of the Issues page, where one can report spelling errors that are in the docs and articles? File a bug for a little spelling error?? You could also submit a patch that fixes the error. --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: P2P Android
In August this was on the Android Developers Blog. I haven't heard any more on it though. One of our top priorities after the first devices ship is to develop a device-to-device (and possibly device-to-server) RPC mechanism that is fast, reliable, and protective of developers and users alike. http://android-developers.blogspot.com/search?q=rpc - Juan T. On Jan 17, 7:55 am, Tez earlencefe...@gmail.com wrote: Hi, I want to establish a p2p connection between 2 android devices. Is this possible. If yes, how can i do it? Cheers, Earlence --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: save image file in sqlite db
Use the ContentResolver().openOutputStream(), etc. in the example here. http://code.google.com/android/devel/data/contentproviders.html SQLite supports binary data. However, I think you may have trouble with direct access to binary data with the Android Cursors. - Juan T. On Jan 20, 12:19 am, And-Rider rahulregunat...@gmail.com wrote: I want to save images from a particular URL into the sqlite db and then display it from the database..Can anyone tell me as how i could do 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Debugging geolocations services
On Jan 20, 6:20 pm, Faber Fedor faberfe...@gmail.com wrote: I wrote some reverse geocoding, geolocation and proximity alert routines for my little Android app. I took my Android out with me when running errands to test my routines; they're kinda hard to test from my couch. Half of them didn't work. What's the best way to debug something like this? Sprinkle a bunch of printf statements (or whatever you call them in Java) throughout the app? Log everything to the sdcard? Write a toggleable view (is that even possible?) that acts as a console? Suggestions? Log everything with this. Then it shows up in Logcat in Eclipse (or DDMS). android.util.Log http://code.google.com/android/reference/android/util/Log.html To show times when methods were called use Traceview. It might be helpful for the location methods. Traceview: A Graphical Log Viewer http://code.google.com/android/reference/traceview.html - Juan T. --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to share classes between different Android projects?
Try Java Build Path Libraries Add External Class Folder. - Juan T. On Jan 20, 12:29 pm, luke luke.hu...@gmail.com wrote: I have two projects that share classes in a third project. Eclipse happily allows me to reference these external classes when I am developing the two dependant projects (as long as the Java Build Path is set up right), but when I try launching the dependant projects, the external classfiles are not copied into the .apk for some reason, so at runtime I get unsatisfied link errors. I don't want to have to maintain multiple copies of the same source file, or even have a copy of these external classfiles in the dependant projects. I also want to avoid adding an extra build step where I build the external classfiles, package them up in a .jar file and include them in the dependant projects. How can I get the Android SDK to simply put a copy of any referenced (non-SDK, non-project) external classes in the .apk at build time? --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: cant studying android
I would check if those links are legal. Authors don't usually give their books away for free like that. - Juan T. On Jan 20, 9:10 am, Shuvo rejwan.sh...@gmail.com wrote: Well I am also new in Android , you can download some good Android books for free , I am providing the links 1. Professional Andoid Application Development :http://www.netbks.com/programming/general-programming-programming/pro... 2. Android , A Programmars Guide :http://www.netbks.com/programming/general-programming-programming/and... 3. Android Essentials :http://www.netbks.com/programming/general-programming-programming/and... thank you for being an Androidian ... best of luck Shuvo Bangladesh University of Engineering and Technology ( BUET ) rejwan.shuvo.googlepages.com On Jan 20, 6:36 pm, msmsmukesh msmsmuk...@gmail.com wrote: Hi all,I cant understand anything from android. First what we do for studying android. Thanks, Mukesh --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Getting cellular network data
android.net.NetworkInfo http://code.google.com/android/reference/android/net/NetworkInfo.html - Juan T. On Jan 14, 11:07 pm, UAE butti.bushla...@gmail.com wrote: Hi, I would like to know if its possible to get low-level information related to the cellular network, as I would like to use them in an app I am willing to design. I have searched the APIs and this and other discussion boards, but I cant seem to find any info regarding that. Would someone please enligh me on this? It seems that this is confidential information but for an open source phone, this shouldn't be. Thank you for your time --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Regarding Activity
I think you should explain what you're saying better. Are you asking how to come back to the video after someone clicks the notification message? Well, the notification can have a PendingIntent attached to it that triggers that activity again. ..However, I think you have to go through and explain your question a bit better. android.app.ActivityGroup http://code.google.com/android/reference/android/app/ActivityGroup.html - Juan T. On Jan 19, 5:10 am, mongd mongdl...@gmail.com wrote: Hi, I'm working on a program which basically plays a video file and has some more functionality. What I expect from this program is: when I start playing a video, the program starts a new service and registers a notification. I click the home button and still the video is running so I can hear the sound, but the program doesn't have focus any more( no more video animation). Now I drag down the notification list and click the notification message, then the currently running program will pop up and now I can see the video again. What I want to ask is how to come back to the program when I click the notification message? I've been looking into the website and this group, but I couldn't find any clue. Please help! Oh, and one more question: is it possible to put more than 2 activities on the same screen? if it is, is there any reference for that? Million thanks in advance! =D --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Port my iPhone game
If that was in the Top 5, I would do the whole thing in Java. - Juan T. On Jan 6, 6:19 pm, Steve rockthesm...@gmail.com wrote: Hi there, I'm part of a team of developers that have recently released an iPhone/ iPodTouch game via Apple's AppStore (reasonably known as in 500,000 downloads in month, ~50,000 downloads on Christmas day alone, spent most of Christmas in Apple's top 5). The game is written in c++ and is cross platform for iPhone/iPod and Windows PC (there is a small objective-c stub on the iPhone side, but it does little more than call into our mainly generic c++ engine). Our engine has an OpenGL:ES compatible renderer, and OpenAL compatible audio engine, so I hoped it might be relatively straight forward to port this over to Android and get the game running on there. Obviously I've since read through the documentation and newsgroups and there seems to be a lot of people saying they want c++ and various discussions here about hacking support in, or just using Java and forgetting c++ and so on. There seems to be a few directions on can attempt to go in, but essentially I'm looking for advice as to what the best/recommend route would be for me? If my only option is to write the entire game again in Java then it's looking unlikely from our point of view that we'll be able to port to Android - it would just be bonkers for us to have go to through our reasonable sized code base and just convert each function to Java. Is there any form of half-way-house that would let us keep all our 100% generic game code in c++ and just write the code that does the API calls in Java? Currently our code base is split up very much in to a 'game' section and an 'engine' section. The game is 100% generic c++ code that just calls functions from a generic API interface (which is then implemented as needed on various API's/platforms and so on). The game code doesn't call any functions from any of the std/libc libraries, it just makes calls to our engine. I can sense the answer is simply going to be 'No! If you want to write a game for Android then go do it in Java' but as mentioned this really doesn't make any sense from our point of view, as it'd mean ending up having to write the same game twice, just in different languages... Steve --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: html parsing and libraries
Adding an External Library (.jar) using Eclipse You can use a third party JAR in your application by adding it to your Eclipse project as follows: In the Package Explorer panel, right-click on your project and select Properties. Select Java Build Path, then the tab Libraries. Press the Add External JARs... button and select the JAR file. Alternatively, if you want to include third party JARs with your package, create a new directory for them within your project and select Add Library... instead. It is not necessary to put external JARs in the assets folder. http://code.google.com/android/kb/commontasks.html - Juan T. On Dec 20, 2:37 pm, Jamie jamie.hu...@gmail.com wrote: If you are building with Eclipse, AFAIK, follow the standard Eclipse procedures for incorporating a JAR. I tried importing the JAR from the htmlparser open source project. Eclipse gives an error and doesnt import the library. If the project is open source, though, consider downloading the source and putting it in your build tree. That way, your code and the third-party code are all compiled with the same version of Java. What do you mean by putting it in your build tree? How would I go about doing this? --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Testing the OrientationListener
This should have showed up in your Google searching. http://code.google.com/p/openintents/wiki/SensorSimulator - Juan T. On Dec 17, 12:44 am, Hopper mehijun...@gmail.com wrote: Hey all, I'd like to know what options (if any) I have to test theOrientationListener-- and other sensors -- from within the Android Emulator. Five minutes of Google searching yielded nothing. Most preferably, I'd like to know if there's GUI for this, or if it's something similar to the shell commands for location. Thanks, Hopper --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Activity goes to background but secondary thread needs to end its work
That's all you can do. A service process is 3rd on the importance hierarchy in the system deciding which processes should not be killed. Just behind a 'visible process' such as a paused activity. 3. A service process is one holding a Service that has been started with the startService() method. http://code.google.com/android/intro/lifecycle.html The solution to this problem is to start a Service from the BroadcastReceiver, so the system knows that there is still active work being done in the process. http://code.google.com/android/intro/lifecycle.html - Juan T. On Dec 17, 8:21 pm, polo777 polodr...@yahoo.com wrote: Ok thanks for your answer. I am going to investigate in this way. However, according to my understanding, even though the service will have a longer life time than the thread, it still can be killed. Then, for a real safe mechanism I guess I have to take care of the problem differently meaning perhaps changing the nature of my code. On Dec 17, 4:06 pm, Al alcapw...@googlemail.com wrote: You could create a service for the background task. Create your main Activity, call startService(), inside the service, create a thread, finish your work, then call stopSelf() to stop your service. Have a look athttp://code.google.com/android/reference/android/app/Service.html. Services usually last longer and killed later then usual activities when memory is low. On Dec 17, 11:47 pm, polo777 polodr...@yahoo.com wrote: Hi Everyone, I am currently working on an app that uses two threads: The first main UI one and a secondary one that I use to retrieve some data from the network, parse them and finally add them into a database. My question is regarding to the lifecycle of my thread. The problem is simple, I need the thread to end the work it is doing. The user can close theactivityor send it to the background at anytime which is not a problem for the main thread that take cares of the UI but the secondary thread is still running and can be killed at anytime stopping its work in a way that we don't control anything (could be working on the database, parsing...). What is the best solution to handle this problem? Thanks a lot in advance. Polo --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
To change the indicator when expanded, you can do something with the state_expanded state. In the drawable which indicates the Drawable parameter of setGroupIndicator(drawable), you set the state_expanded state in the context of a stateful Drawable. Don't see any examples of how do do this. http://code.google.com/android/reference/android/R.styleable.html#ExpandableListGroupIndicatorState_state_expanded - Juan T. On Nov 3, 12:25 am, for android [EMAIL PROTECTED] wrote: Also i was interested in know when I expand a group ,is there any way i change image other than implementing the public void setOnGroupExpandListener( ExpandableListView.OnGroupExpandListenerhttp://code.google.com/android/reference/android/widget/ExpandableLis...onGroupExpandListener) and then chagning the image through the api reference u provided. Also,can I have different images as indicators to each item of the group in an expandable list.Thats something like this Image1 Text1 Image2 Text2 Image3 Text3 Thanks for your time On Mon, Nov 3, 2008 at 10:39 AM, jtaylor [EMAIL PROTECTED] wrote: public void setGroupIndicator(Drawable groupIndicator) http://code.google.com/android/reference/android/widget/ExpandableLis...)http://code.google.com/android/reference/android/widget/ExpandableLis... - Juan T. On Oct 29, 4:00 am, for android [EMAIL PROTECTED] wrote: How can i create a customised Expandable list where the group identifer image is different than the already given ones in the apis.. On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote: I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro. .. - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/andro. .. - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
public void setGroupIndicator(Drawable groupIndicator) http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable) - Juan T. On Oct 29, 4:00 am, for android [EMAIL PROTECTED] wrote: How can i create a customised Expandable list where the group identifer image is different than the already given ones in the apis.. On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote: I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
public void setGroupIndicator(Drawable groupIndicator) http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable) - Juan T. On Oct 29, 4:00 am, for android [EMAIL PROTECTED] wrote: How can i create a customised Expandable list where the group identifer image is different than the already given ones in the apis.. On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote: I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
I looked at the Hierarchy Viewer and it just shows two id/tex1 views below the ExpandableListView. So it must be interior to Android. - Juan On Oct 29, 5:00 am, for android [EMAIL PROTECTED] wrote: How can i create a customised Expandable list where the group identifer image is different than the already given ones in the apis.. On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote: I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
I should have said I looked at the Hierarchy Viewer for ExpandableList2 demo. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html - Juan On Oct 29, 11:18 am, jtaylor [EMAIL PROTECTED] wrote: I looked at the Hierarchy Viewer and it just shows two id/tex1 views below the ExpandableListView. So it must be interior to Android. - Juan On Oct 29, 5:00 am, for android [EMAIL PROTECTED] wrote: How can i create a customised Expandable list where the group identifer image is different than the already given ones in the apis.. On Mon, Oct 27, 2008 at 6:46 PM, jtaylor [EMAIL PROTECTED] wrote: I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
I'm just supposing that each class is a table. I don't know how android.provider is set up, though I guess one can now see from the source code. - Juan On Oct 27, 9:15 am, jtaylor [EMAIL PROTECTED] wrote: That looks like two tables. Contacts.People Contacts.People.Phones - Juan On Oct 26, 12:52 pm, Anm [EMAIL PROTECTED] wrote: jtaylor, Did you read the example? It does not do a joint. Instead it uses a Uri subpath notation for its child query, within the same table rather than joining multiple tables. The references to group in the code are not contact group membership, but rather ExpandableList parent node/groups. On Oct 25, 11:51 am, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AndroidHttpClient gone so now what
For a simple HTTP request just use HttpURLConnection. It's better documented. ..If you need something that it doesn't have, which you probably will know beforehand, then go to Apache. http://code.google.com/android/reference/java/net/HttpURLConnection.html - Juan On Oct 26, 4:50 am, Emery [EMAIL PROTECTED] wrote: I have spent hours on end trying to figure out how to make a simple HTTP request in Android. Examples and docs are outdated... nothing works. AGGH! Please help --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
ExpandableList2. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Join via ContentProvider
ExpandableList2.java has the getChildrenCursor() (in the MyExpandableListAdapter inner class) which has the code for obviously a contentprovider Join. http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html - Juan On Oct 25, 2:47 pm, jtaylor [EMAIL PROTECTED] wrote: ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro... - Juan On Oct 24, 3:05 am, Anm [EMAIL PROTECTED] wrote: I'm struggling to understand how to do a join, if its possible, with the decomposed SQL arguments of the ContentProvider APIs. Is there an example out there? Or if not, could some code up a quick example, say joining People with GroupMembership? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Update in Content Provider
Yes, I don't intend to support it. Thanks! - Juan On Oct 24, 3:24 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote: You mean you're creating a new ContentProvider, but don't intend to support the update method? Document it extensively and throw a RuntimeException from inside the method. Cheers, Justin Android Team @ Google On Oct 20, 10:36 am, jtaylor [EMAIL PROTECTED] wrote: If I don't need the Update method in a Content Provider, how do I alert others using it? I can just leave the method empty, but what other precautions should I take? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] getChildrenCursor() JOINs
ExpandableList2.java uses a content provider. I'm using SQLite on it's own. What type of Join should I implement in the getChildrenCursor() method? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Update in Content Provider
If I don't need the Update method in a Content Provider, how do I alert others using it? I can just leave the method empty, but what other precautions should I take? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SQLite problems: how to use LIKE expression
Snippet from WikiNotesProvider.java: case KEYWORD_SEARCH: // this match searches for a text match in the body of notes qb.setTables(keywords); qb.setProjectionMap(KEYWORDS_LIST_PROJECTION_MAP); qb.appendWhere(body like ? or title like ?); whereArgs = new String[2]; whereArgs[0] = whereArgs[1] = % + uri.getLastPathSegment() + %; break; - Juan T. On Oct 17, 10:36 am, Premier [EMAIL PROTECTED] wrote: The problem is '%?%' . It doesn't recognize that string. On 17 Ott, 12:48, Mark Murphy [EMAIL PROTECTED] wrote: Premier wrote: Hello world, likein object, i want to useLIKEexpression in Android [CODE] private SQLiteDatabase db; ... Cursor resultCursor= null; resultCursor= db.query(false, DB_TABLE, null, idlike%+id+%, null, null, null, null, null); ... [/CODE] I have not triedLIKEfrom within Android. SQLite definitely supports it, as I have used it from outside Android. You may need to switch to rawQuery(). -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AliasActivity: Two Questions
Well, what exactly is the difference between the two to understand them better? - Juan T. On Oct 15, 10:29 pm, Romain Guy [EMAIL PROTECTED] wrote: Photostream uses an activity-alias, not an AliasActivity (they are different :) On Wed, Oct 15, 2008 at 7:24 PM, jtaylor [EMAIL PROTECTED] wrote: I noticed the Photostream app has alias activities. (This comment is in androidmanifest.xml) !-- Alias activity used to set the wallpaper on Home. The alias is used simply to have a different label. -- http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/... - Juan On Oct 12, 11:31 am, Anm [EMAIL PROTECTED] wrote: The AliasActivity looks interesting, as a way to redirect a user to another activity/intent under a different name. I can see this being used to put a launcher icon to a document/url. But I don't see any examples of it, or documentation of the XML to configure it. (From the docs: To use this activity, you should include in the manifest for the associated component an entry named android.app.alias. It is a reference to an XML resource describing an intent that launches the real application. ) Does anyone have any pointers? Secondly, I think I want to make a something that acts similar to the AliasActivity as my app's entry point, but redirects to the most recently used activity. Calling startActivity() followed by finish() still invokes the activity after returning from the child activity (its still on the activity stack, despite the finish() call), leading to a loop that re-enters the child. What should I be doing instead? (I.e., What does AliasActivity do?) Anxiously awaiting the sources so I can answer these types of questions on my own. Anm -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AliasActivity: Two Questions
The activity-alias tag appears to enable different manifest attributes for the same activity. AliasActivity is something I'd have to see in an example to really understand it. At least it sounds uncommon. - Juan T. On Oct 16, 4:44 pm, hackbod [EMAIL PROTECTED] wrote: The activity-alias tag can only be used to link to another activity implement in the same manifest as the tag appears, and when this alias is launched by the system it just directly launches the target activity so there is no actual implementation behind it. The AliasActivity class is just a standard Activity implementation that is built into the system, which you can use as the implementation for one of your activities. When launched, the system actually launches the AliasActivity in your process, which reads from your manifest the intent description to launch, starts that other activity, and then finishes itself. So if you can use activity-alias, you should to do so, since it is much more efficient. The main purpose of AliasActivity is to be able to generate a .apk containing no code that just provides a top-level application icon for some other activity in the system, typically launching the browser to display a particular web page. On Oct 16, 10:26 am, jtaylor [EMAIL PROTECTED] wrote: Well, what exactly is the difference between the two to understand them better? - Juan T. On Oct 15, 10:29 pm, Romain Guy [EMAIL PROTECTED] wrote: Photostream uses an activity-alias, not an AliasActivity (they are different :) On Wed, Oct 15, 2008 at 7:24 PM, jtaylor [EMAIL PROTECTED] wrote: I noticed the Photostream app has alias activities. (This comment is in androidmanifest.xml) !-- Alias activity used to set the wallpaper on Home. The alias is used simply to have a different label. -- http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/... - Juan On Oct 12, 11:31 am, Anm [EMAIL PROTECTED] wrote: The AliasActivity looks interesting, as a way to redirect a user to another activity/intent under a different name. I can see this being used to put a launcher icon to a document/url. But I don't see any examples of it, or documentation of the XML to configure it. (From the docs: To use this activity, you should include in the manifest for the associated component an entry named android.app.alias. It is a reference to an XML resource describing an intent that launches the real application. ) Does anyone have any pointers? Secondly, I think I want to make a something that acts similar to the AliasActivity as my app's entry point, but redirects to the most recently used activity. Calling startActivity() followed by finish() still invokes the activity after returning from the child activity (its still on the activity stack, despite the finish() call), leading to a loop that re-enters the child. What should I be doing instead? (I.e., What does AliasActivity do?) Anxiously awaiting the sources so I can answer these types of questions on my own. Anm -- Romain Guywww.curious-creature.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Device unique ID, other than getDeviceId()?
Hello Mark, I'd venture to say that impossible what you're asking. With #1 you would have a problem with privacy/security. With #2, having a storage spot would mean you wouldn't need Content Providers. It's intuitive for there to be a permission placed on this info. So just do the Overkill, putting a permission in there shouldn't be a problem. - Juan T. On Oct 15, 5:58 pm, Mark Murphy [EMAIL PROTECTED] wrote: I need a unique ID for each phone, just enough to distinguish it from any other Android phone. In theory, TelephonyManager#getDeviceId() would be fine, except that it requires READ_PHONE_DATA as a permission, and that seems overkill. The catch is that I need this ID to be cross-application; two applications on the same device need to get the same ID. So, two questions: 1. Is there some other API in Android-land that returns a unique value for each phone, that I just haven't found yet? One that does not require any special permission to access? I even considered a MAC address, but Android doesn't offer NetworkInterface#getHardwareAddress(), unfortunately. 2. If the answer to #1 is no, silly, is there a spot (that I just haven't found yet) where I could tuck a world-readable UUID that could serve this purpose? It doesn't seem like there's any good cross-application storage spot outside of the SD card, and I can't count on all devices having one. Thanks in advance! -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AliasActivity: Two Questions
I noticed the Photostream app has alias activities. (This comment is in androidmanifest.xml) !-- Alias activity used to set the wallpaper on Home. The alias is used simply to have a different label. -- http://code.google.com/p/apps-for-android/source/browse/trunk/#trunk/Photostream - Juan On Oct 12, 11:31 am, Anm [EMAIL PROTECTED] wrote: The AliasActivity looks interesting, as a way to redirect a user to another activity/intent under a different name. I can see this being used to put a launcher icon to a document/url. But I don't see any examples of it, or documentation of the XML to configure it. (From the docs: To use this activity, you should include in the manifest for the associated component an entry named android.app.alias. It is a reference to an XML resource describing an intent that launches the real application. ) Does anyone have any pointers? Secondly, I think I want to make a something that acts similar to the AliasActivity as my app's entry point, but redirects to the most recently used activity. Calling startActivity() followed by finish() still invokes the activity after returning from the child activity (its still on the activity stack, despite the finish() call), leading to a loop that re-enters the child. What should I be doing instead? (I.e., What does AliasActivity do?) Anxiously awaiting the sources so I can answer these types of questions on my own. Anm --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Device unique ID, other than getDeviceId()?
It's hard to answer your questions when you know just about everything. - Juan T. On Oct 15, 9:38 pm, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: It's intuitive for there to be a permission placed on this info. It's definitely intuitive for there to be a permission on the IMEI. I am not quibbling that point at all. The problem is I'm porting something originally done on the iPhone, which has a UUID or something for each device independent of the IMEI (as I understand it) and definitely not requiring some special permission. Hence, the customer has...expectations. So just do the Overkill, putting a permission in there shouldn't be a problem. I sure hope it's not a problem. That permission, unfortunately, also covers things like read access to the device's phone number. And, until I get my paws on a G1, I don't even really know what the user is going to see when the permission request is presented, unless there's a way to test that in the emulator that I'm not aware of. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Device unique ID, other than getDeviceId()?
Hopefully in Android Market there'll be a way to, maybe through analytics, to see if the user didn't accept the app because of fear of the permissions. That's the only way to see and know for sure, through some kind of analytics. - Juan T. On Oct 15, 9:38 pm, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: It's intuitive for there to be a permission placed on this info. It's definitely intuitive for there to be a permission on the IMEI. I am not quibbling that point at all. The problem is I'm porting something originally done on the iPhone, which has a UUID or something for each device independent of the IMEI (as I understand it) and definitely not requiring some special permission. Hence, the customer has...expectations. So just do the Overkill, putting a permission in there shouldn't be a problem. I sure hope it's not a problem. That permission, unfortunately, also covers things like read access to the device's phone number. And, until I get my paws on a G1, I don't even really know what the user is going to see when the permission request is presented, unless there's a way to test that in the emulator that I'm not aware of. -- Mark Murphy (a Commons Guy)http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: phone to phone applications?
Good point! - Juan T. On Oct 7, 9:05 am, Marcio Maia [EMAIL PROTECTED] wrote: Hi all, i think we all agree on the importance of device-to-device (D2D) communication capabilities. The API would be crippled if it does not give support for this kind of interaction model. On the other hand, it opens opportunities for all developers to build standardized D2D communication abstractions to allow infrastructureless Android-based applications. If the Android API would have all capabilities a developer would want, what's the need for it to be open? Just let Google think of all our problems. I understand that what we developers would want is to think only on application-specific issues, and let communication- security- performance-, ... related decisions on the API to decide. On Tue, Oct 7, 2008 at 9:25 AM, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: I think the loss of XMPP-like capability is pretty big. Two points: 1. There is nothing preventing you from building an XMPP-based app. Just because the Android SDK doesn't include an XMPP API should not be a blocking point, any more than Android not including an email API would preclude creating an email client, or Android not including a Twitter API would preclude creating a Twitter client. 2. XMPP is server-based; the OP wanted device-to-device communications without a server, if I understood correctly. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! -- Marcio Espíndola Freire Maia Msc. Student Group of Computer Networks, Software Engineering and Systems Federal University of Ceará, Brazil --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I need to develop a calendar application using Android.
Either the standard Java API or the Google Calendar API. - Juan T. On Oct 6, 5:10 am, Parasss [EMAIL PROTECTED] wrote: Hello Folks, Any one can tell me about how we can develop calender application using Android SDK.. Please help me.. i will be really thankful to you.. Thanks in advance. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: phone to phone applications?
Mark, I think the loss of XMPP-like capability is pretty big. Mike Cleron in the youtube Androidology said that he thinks the compelling apps (mashups) include that capability. I think it really replaces the server infrastructure. If you build a server infrastructure now, then soon your app won't need it. How does that work? :) Well, you can't really build the app properly yet. ..But it's good that it will be more built into the system, attached to android and not just to a Google address. - Juan T. On Oct 5, 3:52 pm, Mark Murphy [EMAIL PROTECTED] wrote: whitehexagon wrote: I'm really struggling to find information on if it's possible to get two android handsets talking to each other without an intermediate server. In theory this should be possible via wireless or more likely BlueTooth. But both API's seem crippled to prevent this, or am I missing something? It has been stated that the Bluetooth APIs were taken out due to lack of time to get the API stabilized in time: http://android-developers.blogspot.com/2008/08/some-information-on-ap... Peer-to-peer Internet communication should be as possible on Android as it is on any platform -- difficult with absolutely zero server assistance, but not too tough if you can at least use a server for obtaining the IP address of the peer(s) to communicate with. Of course, there are issues of firewalls, NAT traversal, mobile carrier terms of service, and security to deal with, none of which are trivial. I find it hard to believe android would be launched without some kind of phone to phone communication support? If the Android core team committed to doing everything everyone wanted before 1.0, we'd never have any Android devices, because they would never be done. You want built-in P2P. Some other guy wants built-in infrared. Still others want A2DP profiles. Yet others want all those API features hackbod gets to say aren't available in 1.0. And so on. The Android core team had to draw a line *somewhere*. The good news is that, once Android 1.0 is released as open source, there will hopefully be a means for public contributions, meaning you'll be able to help add those things you feel are needed. -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Best practice - buttons or menu items?
A button is fundamentally attached to the UI. A Go search button is attached to a textbox, or a start and stop in a stopwatch defines the UI. Otherwise it's a menu item. - Juan T. On Oct 3, 3:12 pm, Charlie Collins [EMAIL PROTECTED] wrote: Every time I make a new screen I find myself debating which buttons should be on screen buttons, and which should be menu items, and or which should be both. I was wondering what others thing about this. Are there general guidelines or logical approaches that people are using? I apologize up front if this is a silly question, but it comes up again and again in my own head, and I haven't found any documentation or direction on it really. I notice that the built in contacts app, for example, has the sort of main actions like new contact, edit contact, save, discard, etc, as menu items. But it also has Add Icon as both a menu item and as an on screen button. I personally think it makes the most sense to use the menu for high level actions, so save and add and so on make sense in the menu. But maybe that is subjective? Is it just whatever works best with the screen real estate and layout, etc. Seems like the menu is faster/more intuitive if you can use it, but with the d-pad all the on screen buttons work too whether or not the device is touch capable, and being on screen makes the choices more obvious. What to the UI gurus and Android devs think are some best practices in terms of making button/menu choices? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Documentation Blues
Hello Megha, The m denotes a member field and is part of the Android coding style standards. http://code.google.com/android/intro/tutorial-ex2.html This is the mention of 'Android coding style standards' in the notepad tutorial. I don't see them in the documentation though. Everything looks updated now. I guess a few days wasn't too bad. - Juan On Sep 29, 1:52 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/27 jtaylor [EMAIL PROTECTED] Hello Android Team, Consider this a helpful criticism. But this sentence is still on the very front of the Documentation. - A beta version of the Android SDK is available for download. and it's been a few days since the 1.0 SDK has been released. Thanks for the pointer...this text will be updated with the next docs release. This means that the Documentation hasn't been updated. No, certainly it does not mean that. The docs are updated generally on a biweekly basis and with every sdk release. Also the samples. Again, the samples have been updated, let us know if you have anything specific in mind. No Gears documentation. There is no support for Gears with Android yet. apps-for-android apps wasn't updated right away though I haven't checked recently. app-for-android is an on-going project, its updated with new apps frequently. Most of them would work on 1.0. If something does not, please file a issue in the apps-for-android project page itself. Classes mixed up. Could you be more specific here... Mention of Android-coding-style-standards in the docs but these coding standards are nowhere to be found, yet they are used in the sample apps. and here... My suggestion is that in an update to the SDK, everything should be updated at the same exact time. Since Android is a new contraption, then one needs a manual. And if the contraption is new and the manual is beta, then that's a bug. To a developer, the docs are inseparable from the SDK. Thats true, and that is how its done with Android. Thanks for your feedback..always appreciated :) There are a few new permissions related to the subscribed feeds ContentProvider, yet there does not appear to be any documentation of such a provider. The quoted phrase suggests it handles RSS/Atom feeds on behalf of client applications, and as such would be a handy addition to the framework. But, without a documented list of available properties and such, it would be difficult to use. http://androidguys.com/?p=1785 http://androidguys.com/?p=1785 From what Mark said here, it wouldn't be difficult but impossible to use. :) - Juan t. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Documentation Blues
Hello Android Team, Consider this a helpful criticism. But this sentence is still on the very front of the Documentation. - A beta version of the Android SDK is available for download. and it's been a few days since the 1.0 SDK has been released. This means that the Documentation hasn't been updated. Also the samples. No Gears documentation. apps-for-android apps wasn't updated right away though I haven't checked recently. Classes mixed up. Mention of Android-coding-style-standards in the docs but these coding standards are nowhere to be found, yet they are used in the sample apps. My suggestion is that in an update to the SDK, everything should be updated at the same exact time. Since Android is a new contraption, then one needs a manual. And if the contraption is new and the manual is beta, then that's a bug. To a developer, the docs are inseparable from the SDK. There are a few new permissions related to the “subscribed feeds ContentProvider”, yet there does not appear to be any documentation of such a provider. The quoted phrase suggests it handles RSS/Atom feeds on behalf of client applications, and as such would be a handy addition to the framework. But, without a documented list of available properties and such, it would be difficult to use. http://androidguys.com/?p=1785 From what Mark said here, it wouldn't be difficult but impossible to use. :) - Juan t. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Documentation Blues
Yes, so Google can get Developers out of the ecosystem in return. :) - Juan On Sep 27, 10:33 am, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: Yes and Absolutely. The SDK is inseparable to the Documentation. Otherwise the SDK is only for those who are the top something percent who can get into the code, etc. When I look at a class, I would like to be pretty sure that class exists within 1.0 and I'm not looking at an illusion. There's the release notes, etc. But I have to have the release notes, etc on one tab and the classes on another? I didn't mean to sound like I was knocking your opinion. It's more that I see lots and lots of Google should do X posts that don't go on to say ...in exchange for Y or ...so Google can get Z out of the ecosystem in return. If your position is better docs, in exchange for a later ship date, then that's a fine position. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Documentation Blues
You or I could correct many things in the documentation just given one day. So it's not a herculean effort. ..My point is that the SDK is useless without the documentation. Right now the docs are in beta. Android is a challenge as is. It wouldn't be just nice to have good docs, it's essential. ..And having that sentence on the front doesn't elicit an incredible trust in android as a whole. ..I'm on Android's side but I feel I have to make a comment on these things. - Juan T. On Sep 27, 10:18 am, jtaylor [EMAIL PROTECTED] wrote: Yes and Absolutely. The SDK is inseparable to the Documentation. Otherwise the SDK is only for those who are the top something percent who can get into the code, etc. When I look at a class, I would like to be pretty sure that class exists within 1.0 and I'm not looking at an illusion. There's the release notes, etc. But I have to have the release notes, etc on one tab and the classes on another? - Juan T. On Sep 27, 9:59 am, Mark Murphy [EMAIL PROTECTED] wrote: jtaylor wrote: My suggestion is that in an update to the SDK, everything should be updated at the same exact time. Are you willing to have the SDK be delayed to accomplish that goal? I'm not saying it wouldn't be nice. But I have to assume that the Android team is strapped for time for the G1 rollout, and documentation is an easy and common thing to let slide a bit. It's been done before. -- Mark Murphy (a Commons Guy)http://commonsware.com Warescription: All titles, revisions, ebook formats, just $35/year --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Chrome or WebKit on Android?
Both are based on Webkit. The Android Browser is created specifically for mobile. Chrome is created specifically for the Desktop. - Juan On Sep 25, 12:30 am, Ramon Rabello [EMAIL PROTECTED] wrote: Since the release of Google Chrome I've been thinking the possibility of the new browser being integrated with the Android Platform insted of WebKit. Hence, Android-based mobile devices users will benefit from awesome features bundled in the browser. Let Android Engineers think about this :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Chrome or WebKit on Android?
ZDNet has this article. September 24th, 2008 Google Gears now inside Android’s “Chrome Lite” http://blogs.zdnet.com/Burnette/?p=662 - Juan On Sep 25, 11:54 am, jtaylor [EMAIL PROTECTED] wrote: Both are based on Webkit. The Android Browser is created specifically for mobile. Chrome is created specifically for the Desktop. - Juan On Sep 25, 12:30 am, Ramon Rabello [EMAIL PROTECTED] wrote: Since the release of Google Chrome I've been thinking the possibility of the new browser being integrated with the Android Platform insted of WebKit. Hence, Android-based mobile devices users will benefit from awesome features bundled in the browser. Let Android Engineers think about this :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Google Chrome or WebKit on Android?
I think we just have to wait until the documentation is updated. On Sep 25, 3:34 pm, Guillaume Perrot [EMAIL PROTECTED] wrote: What about the javascript virtual machine from V8 used by Google Chrome. Does Android use it as well ? On 25 sep, 21:08, jtaylor [EMAIL PROTECTED] wrote: ZDNet has this article. September 24th, 2008 Google Gears now inside Android’s “Chrome Lite”http://blogs.zdnet.com/Burnette/?p=662 - Juan On Sep 25, 11:54 am, jtaylor [EMAIL PROTECTED] wrote: Both are based on Webkit. The Android Browser is created specifically for mobile. Chrome is created specifically for the Desktop. - Juan On Sep 25, 12:30 am, Ramon Rabello [EMAIL PROTECTED] wrote: Since the release of Google Chrome I've been thinking the possibility of the new browser being integrated with the Android Platform insted of WebKit. Hence, Android-based mobile devices users will benefit from awesome features bundled in the browser. Let Android Engineers think about this :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android 1.0 SDK Released
Congrats! This is bigger than the G1. ..My Emulator is very stable. - Juan T. On Sep 23, 6:09 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi everyone, We're pleased to announce the release of the Android 1.0 SDK, release 1. For full information, please see Dan Morrill's blog post: http://android-developers.blogspot.com/2008/09/announcing-android-10-... SDK Download: http://code.google.com/android/download.html Overview of Changes since 0.9 SDK: http://code.google.com/android/migrating/0.9-1.0/changes-overview.html Android Developer Guide: http://code.google.com/android/documentation.html Thanks for using the Android SDK and Happy coding! Cheers, The Android Team. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] UserTask
In the Photostream App is UserTask.java. How much more efficient is this class then using threads and handlers as normally? In UserTask, there's alot of things from java.util.concurrent, threadpools, etc. Does this mean UserTask is probably more efficient? In what circumstances is it probably more efficient? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: UserTask
Great! And who wrote Photostream? - Juan T. On Sep 12, 7:54 pm, Romain Guy [EMAIL PROTECTED] wrote: It should be as efficient as using threads and handlers yourself. On Sep 12, 2008 4:38 PM, jtaylor [EMAIL PROTECTED] wrote: In the Photostream App is UserTask.java. How much more efficient is this class then using threads and handlers as normally? In UserTask, there's alot of things from java.util.concurrent, threadpools, etc. Does this mean UserTask is probably more efficient? In what circumstances is it probably more efficient? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
Why was I thinking the contacts provider was different and standard? :) - Juan T. On Aug 28, 2:03 am, hackbod [EMAIL PROTECTED] wrote: Yeah too late for 1.0. :} But you know, there is no reason someone else couldn't write such a thing -- the contacts provider itself is just an app and there is nothing special about it, so a virtual contacts provider doesn't need any special platform support either. On Aug 27, 3:29 pm, jtaylor [EMAIL PROTECTED] wrote: p.s. I guess if there's time at this late date. If not, then maybe the next version of Android since it's such a big thing. - Juan T. On Aug 27, 5:20 pm, jtaylor [EMAIL PROTECTED] wrote: Yes, that's the point, not to mix them. So two different contact providers separates the two different types of contacts. If the other type of contact provider (not for personal contacts) called the Virtual Contacts Content Provider isn't provided, then developers have to make their own content provider for the users virtual (social space contacts, etc.) contacts that are part of their app. So it's either each app builds their own virtual contacts Content Provider -or- there is a standard Content Provider for these virtual contacts. So that's what I'm saying. On Aug 27, 4:43 pm, hackbod [EMAIL PROTECTED] wrote: On Aug 27, 1:26 pm, jtaylor [EMAIL PROTECTED] wrote: Also to mention that there should be big differences. Such as that Virtual Contacts don't have a phone number. It sounds to me like you are talking about a different kind of content provider, not the normal contacts provider. You may press a button to put a virtual contact in your Personal Contacts though. Anyway, I think this is very important. This was an issue with the GTalkService problem I believe. But hopefully this will be in 1.0 because so many apps will use Virtual Contacts and not just Personal Contacts. No, there will be nothing like this in 1.0. As you've see, one of the reasons why the GTalk data API was removed was because of the concern of mixing these two kinds of people. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
It would nice to explore how to build a whole infrastructure (through a Virtual Contacts Content Provider) for Social Apps. A company like Facebook probably doesn't just want to be on webkit. It wants the profiles to be in a content provider for fast access outside the network, syncing from time to time with their servers. And if everyone builds their own social app mechanisms what sense does that make? - Juan T. On Aug 28, 6:03 am, Peli [EMAIL PROTECTED] wrote: Yeah too late for 1.0. :} But you know, there is no reason someone else couldn't write such a thing -- Indeed, it sounds like a great extension for OpenIntents :-) We already have an open shopping list provider, a tags provider, a locations provider - so why not a virtual contacts provider? Currently we're still upgrading all our code base to the SDK 0.9 (it is holiday season, so progress is slow...), but we already started some discussion about additional features for 1.0+, so feel free to join our discussion there:http://groups.google.com/group/openintents/browse_frm/thread/fe34d4af... Pelihttp://code.google.com/p/openintents/http://www.openintents.org/en/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
And then RPC, this device to device communication I don't believe is even going to work without being on top of a social app infrastructure. - Juan T. On Aug 28, 6:03 am, Peli [EMAIL PROTECTED] wrote: Yeah too late for 1.0. :} But you know, there is no reason someone else couldn't write such a thing -- Indeed, it sounds like a great extension for OpenIntents :-) We already have an open shopping list provider, a tags provider, a locations provider - so why not a virtual contacts provider? Currently we're still upgrading all our code base to the SDK 0.9 (it is holiday season, so progress is slow...), but we already started some discussion about additional features for 1.0+, so feel free to join our discussion there:http://groups.google.com/group/openintents/browse_frm/thread/fe34d4af... Pelihttp://code.google.com/p/openintents/http://www.openintents.org/en/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
Correction: I was meaning a 'Virtual Contacts Provider' not a new type of Content Provider. However, I ended up meaning probably both a Provider (like contacts) and a new type of Content Provider. - Juan T. On Aug 27, 4:17 pm, jtaylor [EMAIL PROTECTED] wrote: The problem with Contacts in mobile devices is that there are two types of Contacts. One is what I call Personal Contacts (family and friends) and the other is Virtual Contacts (social app friends/ multiplayer games). The Virtual Contacts don't go in the same place as Personal Contacts. So where do Virtual Contacts go? Some apps will have Virtual Contacts in the browser (on the web) and others within the mobile app on the device. So speaking of those that are part of a mobile app on the device, where should virtual contacts go? If you put virtual and personal contacts together, separating virtual contacts with a column/field value, what happens when an app simply requests all contacts considering them all personal contacts? So I don't see how a group field would work. So I think one has to set up a totally new Content Provider for Virtual Contacts. Either from scratch for each application or unified and having that group field so new apps can just use the 'Virtual Contacts Content Provider'. So can we have that? A 'Virtual Contacts Content Provider'? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
Well, what is this android.content.SyncProvider and android.content.SyncableContentProvider? A Virtual Contacts Provider does alot with Sync. That's probably the main thing it does, while reputation etc. is on the server. It may have a special table as part of the provider/database where different apps have their info to do the Syncing. Does that sound like SyncProvider or SyncableContentProvider? - Juan T. On Aug 28, 5:47 pm, hackbod [EMAIL PROTECTED] wrote: There is no need for a new type of ContentProvider. A ContentProvider is just a very abstract interface to a structured data store. I can't imagine anything about a virtual contacts provider that would require a new kind of basic content provider. As far as device to device communication, yes, one of the things we need to do is have some other way to manage users. We don't have anything to talk about for it at this point, though. On Aug 28, 1:18 pm, jtaylor [EMAIL PROTECTED] wrote: Correction: I was meaning a 'Virtual Contacts Provider' not a new type of Content Provider. However, I ended up meaning probably both a Provider (like contacts) and a new type of Content Provider. - Juan T. On Aug 27, 4:17 pm, jtaylor [EMAIL PROTECTED] wrote: The problem with Contacts in mobile devices is that there are two types of Contacts. One is what I call Personal Contacts (family and friends) and the other is Virtual Contacts (social app friends/ multiplayer games). The Virtual Contacts don't go in the same place as Personal Contacts. So where do Virtual Contacts go? Some apps will have Virtual Contacts in the browser (on the web) and others within the mobile app on the device. So speaking of those that are part of a mobile app on the device, where should virtual contacts go? If you put virtual and personal contacts together, separating virtual contacts with a column/field value, what happens when an app simply requests all contacts considering them all personal contacts? So I don't see how a group field would work. So I think one has to set up a totally new Content Provider for Virtual Contacts. Either from scratch for each application or unified and having that group field so new apps can just use the 'Virtual Contacts Content Provider'. So can we have that? A 'Virtual Contacts Content Provider'? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Comunication Server-Phone: SMS directed to an application (0.9 SDK)
SMS is probably problematic on more than one level. There are HTTP api's and that's what you want. JAVA has an api and Apache has one as well. On Aug 26, 9:35 am, Cristina [EMAIL PROTECTED] wrote: Hi! We are designing an application for android phones. In our application there is a central server, and this server must send some application information to the phone. So, we thought to use SMS in order to communicate with our application in the phone. Our application will look for messages with a particular prefix and consume it. Other applications (including messagig applications) should not get the application SMS messages. In order to do that, we have implemeted a Sms BroadcastReceiver, that get all SMS messages, but only processed the ones with the application prefix. After processing them, we do an abortBroadcast(), in order to stop the broadcast of the message to the Messaging application or other applications receiving the same intent. However, SMS Inbox is receiving the message, and is showing the message in the notification application. 1. Is there any way for an application to receive the SMS message, avoiding the rest of applications to receive it? Is abortBroadcast working for SMS broadcast intents? I understand that maybe the abortBroadcast is not working for SMS broadcast intents, because of security reasons (for example we could abort the broadcast of all SMS messages ). Is there another way for an application to to receive SMS messages in an exclusive way (the rest of applications do not receive it)? 2. Is there any other way to communicate information from a external server to the application in the phone? For example, In other projects with other phones we have used transparent wappush to implement that communication..Does android support wappush protocol? We would not like to implement an always open connection in the phone application (where the phone acts like a server), because that implies that we must have a list with all the IPs of the phones in order to communicate with them..that complicates a lot the implementation... Any other idea? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Feature Request: Virtual Contacts Content Provider
The problem with Contacts in mobile devices is that there are two types of Contacts. One is what I call Personal Contacts (family and friends) and the other is Virtual Contacts (social app friends/ multiplayer games). The Virtual Contacts don't go in the same place as Personal Contacts. So where do Virtual Contacts go? Some apps will have Virtual Contacts in the browser (on the web) and others within the mobile app on the device. So speaking of those that are part of a mobile app on the device, where should virtual contacts go? If you put virtual and personal contacts together, separating virtual contacts with a column/field value, what happens when an app simply requests all contacts considering them all personal contacts? So I don't see how a group field would work. So I think one has to set up a totally new Content Provider for Virtual Contacts. Either from scratch for each application or unified and having that group field so new apps can just use the 'Virtual Contacts Content Provider'. So can we have that? A 'Virtual Contacts Content Provider'? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
Also to mention that there should be big differences. Such as that Virtual Contacts don't have a phone number. You may press a button to put a virtual contact in your Personal Contacts though. Anyway, I think this is very important. This was an issue with the GTalkService problem I believe. But hopefully this will be in 1.0 because so many apps will use Virtual Contacts and not just Personal Contacts. Or am I missing anything? - Juan T. On Aug 27, 4:17 pm, jtaylor [EMAIL PROTECTED] wrote: The problem with Contacts in mobile devices is that there are two types of Contacts. One is what I call Personal Contacts (family and friends) and the other is Virtual Contacts (social app friends/ multiplayer games). The Virtual Contacts don't go in the same place as Personal Contacts. So where do Virtual Contacts go? Some apps will have Virtual Contacts in the browser (on the web) and others within the mobile app on the device. So speaking of those that are part of a mobile app on the device, where should virtual contacts go? If you put virtual and personal contacts together, separating virtual contacts with a column/field value, what happens when an app simply requests all contacts considering them all personal contacts? So I don't see how a group field would work. So I think one has to set up a totally new Content Provider for Virtual Contacts. Either from scratch for each application or unified and having that group field so new apps can just use the 'Virtual Contacts Content Provider'. So can we have that? A 'Virtual Contacts Content Provider'? - Juan T. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
Yes, that's the point, not to mix them. So two different contact providers separates the two different types of contacts. If the other type of contact provider (not for personal contacts) called the Virtual Contacts Content Provider isn't provided, then developers have to make their own content provider for the users virtual (social space contacts, etc.) contacts that are part of their app. So it's either each app builds their own virtual contacts Content Provider -or- there is a standard Content Provider for these virtual contacts. So that's what I'm saying. On Aug 27, 4:43 pm, hackbod [EMAIL PROTECTED] wrote: On Aug 27, 1:26 pm, jtaylor [EMAIL PROTECTED] wrote: Also to mention that there should be big differences. Such as that Virtual Contacts don't have a phone number. It sounds to me like you are talking about a different kind of content provider, not the normal contacts provider. You may press a button to put a virtual contact in your Personal Contacts though. Anyway, I think this is very important. This was an issue with the GTalkService problem I believe. But hopefully this will be in 1.0 because so many apps will use Virtual Contacts and not just Personal Contacts. No, there will be nothing like this in 1.0. As you've see, one of the reasons why the GTalk data API was removed was because of the concern of mixing these two kinds of people. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Feature Request: Virtual Contacts Content Provider
p.s. I guess if there's time at this late date. If not, then maybe the next version of Android since it's such a big thing. - Juan T. On Aug 27, 5:20 pm, jtaylor [EMAIL PROTECTED] wrote: Yes, that's the point, not to mix them. So two different contact providers separates the two different types of contacts. If the other type of contact provider (not for personal contacts) called the Virtual Contacts Content Provider isn't provided, then developers have to make their own content provider for the users virtual (social space contacts, etc.) contacts that are part of their app. So it's either each app builds their own virtual contacts Content Provider -or- there is a standard Content Provider for these virtual contacts. So that's what I'm saying. On Aug 27, 4:43 pm, hackbod [EMAIL PROTECTED] wrote: On Aug 27, 1:26 pm, jtaylor [EMAIL PROTECTED] wrote: Also to mention that there should be big differences. Such as that Virtual Contacts don't have a phone number. It sounds to me like you are talking about a different kind of content provider, not the normal contacts provider. You may press a button to put a virtual contact in your Personal Contacts though. Anyway, I think this is very important. This was an issue with the GTalkService problem I believe. But hopefully this will be in 1.0 because so many apps will use Virtual Contacts and not just Personal Contacts. No, there will be nothing like this in 1.0. As you've see, one of the reasons why the GTalk data API was removed was because of the concern of mixing these two kinds of people. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android Test-driven Development
It looks like android.test is basically an extension of the JUnit Framework for android specific cases. Is test-driven development the way to go? Should this be a standard in Android development? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Webkit Mobile Web Applications
What's going on with Mobile Web Applications like Gears for Mobile versus Android. I've heard some say that Web Applications will be in vogue over Android Java apps. What's going on there? Specifically, are there hooks in the Webkit api that are for such web applications? - Juan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Are you satisfied or disappointed with the level of support from Google, for Android?
That's important for the Android team and for the Open Handset Alliance and its members, that's important for Google. That's also important for the developer community and for the end users. Hello Jean-Baptiste, I suggest that the aim be for the phones to come out in 2009. If everyone is patient, then that will be a proof of cooperation. The Android Team doesn't needs phones for 2008. Neither does the OHA. And there can be more Developer Challenges. More Developer Challenges would appear to be important in two ways. To perfect Android and also for Google promotion. ATT seeks to depart more away from Google apps which is reasonable for them. However, Google has the Cloud and that Cloud can come out in creative ways through a couple more Developer Challenges. At the risk of being melodramatic, Android is the most important piece of software in human history. I really don't think it should be rushed. Everyone should be patient and that Patience will pay off. - Juan On Mar 29, 12:28 pm, Jean-Baptiste Queru [EMAIL PROTECTED] wrote: (Notice: I'm a Google Software Engineer working on Android). One aspect which I hope is reasonably clear in everybody's minds is that getting devices available is really at the top of the priority list for everyone involved in Android. That's important for the Android team and for the Open Handset Alliance and its members, that's important for Google. That's also important for the developer community and for the end users. From that point of view, every day that passes without devices out there hurts the entire Android ecosystem, and therefore has a high cost. Because of that, whenever anyone has to choose between doing something that directly helps ship those first devices and something that doesn't directly help, the latter option has to carry a very high value in order to outweigh for the cost of delaying the first devices. That's why the SDK isn't as polished as it could be, that's why Google employees aren't as present on those forums as they could be: it would distract from the primary goal of shipping devices in 2008. It might sound surprising to many, but Google only has a finite number of people who are currently familiar enough with Android to be able to make a significant difference on either the ship date or the SDK and the developer community. It takes time and it takes money to grow a team, Google has a significant amount of money but remains careful about how they spend it like any well-managed company, and they can't do anything about time: even by having people work hard, there's always a limit to how much work any single person can achieve every day. All that explains why you're not seeing dozens of engineers spending several hours every day answering questions and helping people on the forums, or preparing a new SDK every other week: at the end of the timeline toward the first devices, that would result in delays that would be counted in weeks or even months. Having to choose is painful, because we'd all like to get the best of both worlds. You can't have your (proverbial) cake and eat it too, and right now we're a bitstuck between a (proverbial) rock and a (proverbial) hard place. Back to the issue of the SDK, I think that you've put the finger on one of one of the aspects that are hard to balance: how early and how often should it be released. Too early, and developers get some software that is too unstable and too far from the final product to be valuable. Not early enough, and developers don't have time to get familiar with it, provide valuable feedback and have applications ready for the first device. Too often, and developers will spend too much time chasing porting their code from one release to another and the whole ecosystem will be confused about what works and what doesn't in every release. Not often enough, and some developers will bestuckfor weeks on bugs that may have been fixed but be unavailable. And, like I said earlier, early and often have a negative impact on the ship date. During the software development cycle of a framework, you're likely to see 3 phases: bringup, unstable, and stabilization. During the bringup phase, the software improves quickly, but it is too rough and too far from its final shape to be valuable to many people - this is a phase that typically sees frequent releases to a very small number of close partners. During the unstable phase, the framework is large enough and is used by enough applications that it can't change quite as quickly as during the bringup, but it is still getting some very significant changes. This is the phase during which the release strategy changes from frequent limited releases to infrequent broad releases. This is the phase that M3 and M5 came from (as an example, you've all seen how the UI had changed between M3 and M5). Finally, there's a stabilization phase, where the framework gets fewer and fewer changes and gets closer and
[android-developers] Re: Can a GTalk message receiver know who sent the intent?
Peli, My guess is that some kind of security layer will be added to the uses- permission, etc. in the AndroidManifest. - Juan On Apr 2, 9:43 pm, Peli [EMAIL PROTECTED] wrote: Thank you for this information. I had not found it in the documentation. Regarding the security issue, both, Juan and you, suggest to perform whatever security checks are necessary for my needs. But let me ask again: I'm not worried about the intents that I have control about. I could program them securely, maybe even exchanging public encryption keys through the bundle. I'm more worried about intents available on the phone that have never been designed or have never been intended to be used through GTalk. As an example, there could be a 3rd party intent that takes a picture with the internal camera and sends it to a contact email address automatically. It might have been meant as an internal thing within another application that was never designed to work with GTalk, so no special security checks were necessary. But it seems to me that any person that is on my GTalk's friend's list can launch that intent on my phone, without any restrictions, and send random photos to their email address. This model suggests, that each IntentReceiver should check whether its bundle contains a from field, and if it does, it should be more careful about processing things. I (and I guess most developers) have written most intents so far without this check. Have I introduced security holes? Or is it really my (the programmer's) task to secure every intent against unwanted launches by GTalk messages, even if the intents are never designed to be launched by GTalk? Peli On Apr 2, 10:52 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The intent does contain the sender of the intent. If you use intent.getStringExtra(from) you will get the senders jid. If you only want to process intent from a select group of people you will need to add a check before processing it. On Mar 31, 4:35 pm, Peli [EMAIL PROTECTED] wrote: I have the following conceptual question: If I look at the GTalkDataMessageReceiver example (http://code.google.com/android/samples/ApiDemos/src/com/google/androi... ) the receiver receives an intent that the sender sent. Except for the name GTalk, there is nothing in that class that uses any GTalk related API. The intent could therefore either come from a local sender or from a remote sender. Of course, the sender has to be part of the buddy list of the receiver for this to work, but if this is the case, it seems the IntentReceiver will not obtain any information about who sent this intent (unless the sender is kind enough to put this information into the bundle). I have the following concerns: * Once I have rights to send intents to a phone, I could send arbitrary intents and trigger arbitrary events on anther person's phone. * The intent receivers do not know who sent the intent. If this information is passed in the bundle, a sender could pretend to be a different sender. There should probably be additional permission settings on the receiver's side which determine which intents can be received from which sender. So far, I don't see any permission that can handle this. Or am I missing something here? Peli- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Special Actions for IGTalkSession.sendDataMessage()
Dan, I think I have to explain my problem better. I think I mean a Custom Action? I am using the method IGTalkSession.sendDataMessage(). I want this method to work. :) As far as I can tell, the second parameter needs an Intent which broadcasts an action. It's not an explicit call to a class which I wish it would be though. So right now the only thing that works is this Action. (Which I shouldn't really use). android.intent.action.SAMPLE_GTALK_DATA_MESSAGE Attaching this to the Intent that goes into the second parameter of IGTalkSession.sendDataMessage() is the only way to send a data message. So I suppose I need to create my own Action to use IGTalkSession.sendDataMessage()? Is so how do I create that Action? - Juan On Mar 29, 2:13 am, Dan Morrill [EMAIL PROTECTED] wrote: Hi, Juan! An Intent is just a messenger object for abitrary data. It sounds like you are looking for an API call to register your application's Intent with the system; however, there is no such API. All you need to do is just create an Intent instance and set the fields on it. You never need to subclass Intent, or anything like that. Hope that helps, - Dan On Fri, Mar 28, 2008 at 5:19 PM, jtaylor [EMAIL PROTECTED] wrote: Where are there instructions to create a Custom Intent? I'm supposing I need it to send a data message in GTalk? - Juan On Mar 26, 8:19 pm, jtaylor [EMAIL PROTECTED] wrote: 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. http://code.google.com/android/reference/android/content/Intent.html Therefore, I'm concluding that to send a Data Message in GTalk one needs to define one's own Intent? Now how does one create a custom intent? I don't notice any place in the docs or groups on how to create a custom intent. - Juan On Mar 26, 11:50 am, jtaylor [EMAIL PROTECTED] wrote: 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/gtalkserv...) This is in the GTalkDataMessageSender.java, Intent intent = new Intent(GTalkDataMessageReceiver.ACTION); http://code.google.com/android/samples/ApiDemos/src/com/google/androi... What type of Action is this? Is this something that was created in a special way? Where does this ACTION come from? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Special Actions for IGTalkSession.sendDataMessage()
Interesting! ..thanks Peli - Juan On Mar 29, 2:17 pm, Peli [EMAIL PROTECTED] wrote: Try this: public static final String YODEL_ACTION = com.jtaylor.action.YODEL; Intent intent = new Intent(this.YODEL_ACTION); (It is really just a string that you can define as you like). Peli On Mar 29, 6:52 pm, jtaylor [EMAIL PROTECTED] wrote: Dan, I think I have to explain my problem better. I think I mean a Custom Action? I am using the method IGTalkSession.sendDataMessage(). I want this method to work. :) As far as I can tell, the second parameter needs an Intent which broadcasts an action. It's not an explicit call to a class which I wish it would be though. So right now the only thing that works is this Action. (Which I shouldn't really use). android.intent.action.SAMPLE_GTALK_DATA_MESSAGE Attaching this to the Intent that goes into the second parameter of IGTalkSession.sendDataMessage() is the only way to send a data message. So I suppose I need to create my own Action to use IGTalkSession.sendDataMessage()? Is so how do I create that Action? - Juan On Mar 29, 2:13 am, Dan Morrill [EMAIL PROTECTED] wrote: Hi, Juan! An Intent is just a messenger object for abitrary data. It sounds like you are looking for an API call to register your application's Intent with the system; however, there is no such API. All you need to do is just create an Intent instance and set the fields on it. You never need to subclass Intent, or anything like that. Hope that helps, - Dan On Fri, Mar 28, 2008 at 5:19 PM, jtaylor [EMAIL PROTECTED] wrote: Where are there instructions to create a Custom Intent? I'm supposing I need it to send a data message in GTalk? - Juan On Mar 26, 8:19 pm, jtaylor [EMAIL PROTECTED] wrote: 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. http://code.google.com/android/reference/android/content/Intent.html Therefore, I'm concluding that to send a Data Message in GTalk one needs to define one's own Intent? Now how does one create a custom intent? I don't notice any place in the docs or groups on how to create a custom intent. - Juan On Mar 26, 11:50 am, jtaylor [EMAIL PROTECTED] wrote: 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/gtalkserv...) This is in the GTalkDataMessageSender.java, Intent intent = new Intent(GTalkDataMessageReceiver.ACTION); http://code.google.com/android/samples/ApiDemos/src/com/google/androi... What type of Action is this? Is this something that was created in a special way? Where does this ACTION come from?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Special Actions for IGTalkSession.sendDataMessage()
Where are there instructions to create a Custom Intent? I'm supposing I need it to send a data message in GTalk? - Juan On Mar 26, 8:19 pm, jtaylor [EMAIL PROTECTED] wrote: 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.http://code.google.com/android/reference/android/content/Intent.html Therefore, I'm concluding that to send a Data Message in GTalk one needs to define one's own Intent? Now how does one create a custom intent? I don't notice any place in the docs or groups on how to create a custom intent. - Juan On Mar 26, 11:50 am, jtaylor [EMAIL PROTECTED] wrote: The second parameter for IGTalkSession.sendDataMessage() contains, the intent object contains the action to be broadcasted by the receiving device's GTalkServicehttp://code.google.com/android/reference/com/google/android/gtalkserv...) This is in the GTalkDataMessageSender.java, Intent intent = new Intent(GTalkDataMessageReceiver.ACTION);http://code.google.com/android/samples/ApiDemos/src/com/google/androi... What type of Action is this? Is this something that was created in a special way? Where does this ACTION come from? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Intent Receiver for android.intent.action.INSERT
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...) Peli On Mar 26, 6:02 pm, Dexter's Brain [EMAIL PROTECTED] wrote: 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 program that would update this local file . But this seems to be impossible right now if there's no intent for this. I will have to do a check for changes in the phone book and update my local file, everytime my application startsThats a bit of overhead on my appand will also affect the startup time... hackbod wrote: 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 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:35 am, hackbod [EMAIL PROTECTED] wrote: The android.intent.action.INSERT and android.intent.action.VIEW actions are not broadcasts, they are actions for starting activities to show a UI to insert a new entry, or view an existing entry, respectively. Thus you don't register for them with a receiver, you launch them with startActivity(). (You can also write your own activity implementing those actions to replace the standard UI, but that's probably not what you are wanting.) On Mar 25, 8:35 pm, Dexter's Brain [EMAIL PROTECTED] wrote: Thanks Megha...But, will it be provided in the subsequent releases??? Can you think of a situation where we would need this??? Dexter. On Mar 26, 3:15 am, Megha Joshi [EMAIL PROTECTED] wrote: Hi, I don't think that the intents for contacts added and contacts deleted intents are broadcasted. So you cannot receive these intents. Thanks, Megha On Mon, Mar 24, 2008 at 9:49 AM, Dexter's Brain [EMAIL PROTECTED] wrote: Hello All, I have an Intent Receiver which I will be triggered when a contact is added or deleted. My reciever properties in the androidmanifest.xml are as follows. receiver android:name=.ContactAdded intent-filter action ndroid:name=android.intent.action.INSERT / action android:name=android.intent.action.VIEW / /intent-filter /receiver And in my Intent Reciever class, I have the following lines of code. public class ContactAdded { public void onReceiveIntent(Context context, Intent intent){ try{ Log.i(Received Intent, intent.getAction()); } catch(Exception e){ Log.i(Exception in Intent,e.getLocalizedMessage ()); } } } Now, when I try to add or delete a contact, I can see in the LogCat that the required Intent is broadcast, but I don't see my message Received Intent in the LogCat which I have coded in my reciever class. Am I doing something wrong??? Dexter. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem using XMPP demo in latest SDK emulator m5 rc 14
Hello Megha, That doesn't work for me. The only thing I can think of is addition to the buddy list. I created 2 gmail accounts. I put them into the separate emulator instances. I put the second account (aligned with the second emulator) into the first account by way of putting the email address into the email field of one of the Contacts. I even saved this contact as a favorite. Both emulator instances have a check mark for XMPP in the menu. I go to the first emulator instance and go to the sample app. I put in the email attached to the other emulator instance (same one as in contacts in this instance) and press enter as the button is enabled. Alas, nothing happens on the other emulator. - Juan On Feb 19, 9:33 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi, Please follow the steps below to send a message using GTalkDataMessageReceiver demo : 1) Start two emulator instances. 2) In Eclipse DDMS perspective Devices , check that both the emulator devices are online. 3) Sign into the Dev ToolsDevelopment Settings XMPP Settings of the first emulator with your gmail id (say [EMAIL PROTECTED]). 4) Sign into the second emulator with a second separate gmail id (say [EMAIL PROTECTED]) ([EMAIL PROTECTED] should be in [EMAIL PROTECTED]'s buddy list). 5) In the first emulator go to ApiDemosAppsServiceGTalk Data Message Sender and type in [EMAIL PROTECTED] 6) A message window appears in the second emulator as it receives message from step 4 above. Let us know if you face any issues. Thanks, Megha On Feb 18, 2008 6:36 AM, Nitin [EMAIL PROTECTED] wrote: Hi , I am unable to get the GTalkDataMessageReceiver and GTalkDataMessageSender demo working in lates SDK release!! If anybody has been able to get that working please reply!! Before testing these demo applications I have already successfully registered my gmail account in the XMPP settings.I am trying to send the message to my own gmail id. It gives this error: sendDataMessage: can't find the full JID for [EMAIL PROTECTED], failed to send message! If you have been able to successfully execute these demos please list the steps to do so!! Thanks in Advance!! -nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem using XMPP demo in latest SDK emulator m5 rc 14
Sorry, I posted from another thread and my response ended up on this thread. I don't have APIDemos running on the second instance. - Juan On Mar 25, 6:14 pm, jtaylor [EMAIL PROTECTED] wrote: Hello Megha, That doesn't work for me. The only thing I can think of is addition to the buddy list. I created 2 gmail accounts. I put them into the separate emulator instances. I put the second account (aligned with the second emulator) into the first account by way of putting the email address into the email field of one of the Contacts. I even saved this contact as a favorite. Both emulator instances have a check mark for XMPP in the menu. I go to the first emulator instance and go to the sample app. I put in the email attached to the other emulator instance (same one as in contacts in this instance) and press enter as the button is enabled. Alas, nothing happens on the other emulator. - Juan On Feb 19, 9:33 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi, Please follow the steps below to send a message using GTalkDataMessageReceiver demo : 1) Start two emulator instances. 2) In Eclipse DDMS perspective Devices , check that both the emulator devices are online. 3) Sign into the Dev ToolsDevelopment Settings XMPP Settings of the first emulator with your gmail id (say [EMAIL PROTECTED]). 4) Sign into the second emulator with a second separate gmail id (say [EMAIL PROTECTED]) ([EMAIL PROTECTED] should be in [EMAIL PROTECTED]'s buddy list). 5) In the first emulator go to ApiDemosAppsServiceGTalk Data Message Sender and type in [EMAIL PROTECTED] 6) A message window appears in the second emulator as it receives message from step 4 above. Let us know if you face any issues. Thanks, Megha On Feb 18, 2008 6:36 AM, Nitin [EMAIL PROTECTED] wrote: Hi , I am unable to get the GTalkDataMessageReceiver and GTalkDataMessageSender demo working in lates SDK release!! If anybody has been able to get that working please reply!! Before testing these demo applications I have already successfully registered my gmail account in the XMPP settings.I am trying to send the message to my own gmail id. It gives this error: sendDataMessage: can't find the full JID for [EMAIL PROTECTED], failed to send message! If you have been able to successfully execute these demos please list the steps to do so!! Thanks in Advance!! -nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem using XMPP demo in latest SDK emulator m5 rc 14
Sorry, I posted from another thread and my response ended up on this thread. I don't have APIDemos running on the second instance. - Juan On Mar 25, 6:14 pm, jtaylor [EMAIL PROTECTED] wrote: Hello Megha, That doesn't work for me. The only thing I can think of is addition to the buddy list. I created 2 gmail accounts. I put them into the separate emulator instances. I put the second account (aligned with the second emulator) into the first account by way of putting the email address into the email field of one of the Contacts. I even saved this contact as a favorite. Both emulator instances have a check mark for XMPP in the menu. I go to the first emulator instance and go to the sample app. I put in the email attached to the other emulator instance (same one as in contacts in this instance) and press enter as the button is enabled. Alas, nothing happens on the other emulator. - Juan On Feb 19, 9:33 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi, Please follow the steps below to send a message using GTalkDataMessageReceiver demo : 1) Start two emulator instances. 2) In Eclipse DDMS perspective Devices , check that both the emulator devices are online. 3) Sign into the Dev ToolsDevelopment Settings XMPP Settings of the first emulator with your gmail id (say [EMAIL PROTECTED]). 4) Sign into the second emulator with a second separate gmail id (say [EMAIL PROTECTED]) ([EMAIL PROTECTED] should be in [EMAIL PROTECTED]'s buddy list). 5) In the first emulator go to ApiDemosAppsServiceGTalk Data Message Sender and type in [EMAIL PROTECTED] 6) A message window appears in the second emulator as it receives message from step 4 above. Let us know if you face any issues. Thanks, Megha On Feb 18, 2008 6:36 AM, Nitin [EMAIL PROTECTED] wrote: Hi , I am unable to get the GTalkDataMessageReceiver and GTalkDataMessageSender demo working in lates SDK release!! If anybody has been able to get that working please reply!! Before testing these demo applications I have already successfully registered my gmail account in the XMPP settings.I am trying to send the message to my own gmail id. It gives this error: sendDataMessage: can't find the full JID for [EMAIL PROTECTED], failed to send message! If you have been able to successfully execute these demos please list the steps to do so!! Thanks in Advance!! -nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem using XMPP demo in latest SDK emulator m5 rc 14
How do I get the APIDemos on the other emulator? - Juan On Mar 25, 6:28 pm, jtaylor [EMAIL PROTECTED] wrote: Sorry, I posted from another thread and my response ended up on this thread. I don't have APIDemos running on the second instance. - Juan On Mar 25, 6:14 pm, jtaylor [EMAIL PROTECTED] wrote: Hello Megha, That doesn't work for me. The only thing I can think of is addition to the buddy list. I created 2 gmail accounts. I put them into the separate emulator instances. I put the second account (aligned with the second emulator) into the first account by way of putting the email address into the email field of one of the Contacts. I even saved this contact as a favorite. Both emulator instances have a check mark for XMPP in the menu. I go to the first emulator instance and go to the sample app. I put in the email attached to the other emulator instance (same one as in contacts in this instance) and press enter as the button is enabled. Alas, nothing happens on the other emulator. - Juan On Feb 19, 9:33 pm, Megha Joshi [EMAIL PROTECTED] wrote: Hi, Please follow the steps below to send a message using GTalkDataMessageReceiver demo : 1) Start two emulator instances. 2) In Eclipse DDMS perspective Devices , check that both the emulator devices are online. 3) Sign into the Dev ToolsDevelopment Settings XMPP Settings of the first emulator with your gmail id (say [EMAIL PROTECTED]). 4) Sign into the second emulator with a second separate gmail id (say [EMAIL PROTECTED]) ([EMAIL PROTECTED] should be in [EMAIL PROTECTED]'s buddy list). 5) In the first emulator go to ApiDemosAppsServiceGTalk Data Message Sender and type in [EMAIL PROTECTED] 6) A message window appears in the second emulator as it receives message from step 4 above. Let us know if you face any issues. Thanks, Megha On Feb 18, 2008 6:36 AM, Nitin [EMAIL PROTECTED] wrote: Hi , I am unable to get the GTalkDataMessageReceiver and GTalkDataMessageSender demo working in lates SDK release!! If anybody has been able to get that working please reply!! Before testing these demo applications I have already successfully registered my gmail account in the XMPP settings.I am trying to send the message to my own gmail id. It gives this error: sendDataMessage: can't find the full JID for [EMAIL PROTECTED], failed to send message! If you have been able to successfully execute these demos please list the steps to do so!! Thanks in Advance!! -nitin --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---