Samsung :: Developing Android REST Client Applications
Sep 1, 2010
I've read through the note of the topic "Developing Android REST Client Applications" from Google IO 2010, but I still have no idea on how to start. Can anyone show me a code example? Either the code for "Option A: Use a Service API" or "Option B: Use the ContentProvider API"
View 4 Replies
Jun 8, 2010
I've watched many of the Google IO talks and one that I'm trying to reproduce is "Developing Android REST client applications"[1]. In this talk Virgil suggests you should not execute your RESTful queries inside a Thread/AsyncTask spawned from your Activity (which I had been doing), instead you should use a more complex architecture that uses a combination of a ContentProvider and a Service. From what I understood the reason for this design was so your data was more persistent between app restarts, and so your queries don't disappear if your Activity starts/stops (e.g on a screen rotation). I buy into both those reasons hence I'm trying to implement this. On the slides[2] page 45 We have an Activity calling a ContentProvider. Now the ContentProvider checks its local database, if the content is not there it sends an Intent to a service which fetches the content, inserts it into the ContentProvider, then the ContentProvider calls back to the Activity (with a ContentObserver) and the Activity can carry on. The question I have is how is this callback setup. The ContentProvider exposes simple methods, query, insert, update, delete which don't seem easy to adapt to a callback interface. It could be implemented by a Cursor which is designed to block, but that could be problematic as you don't' want to block your UI Thread. I'd appreciate if anyone could make this clearer to me, or show me some code. I'm hoping the Twitter app will be open sourced soon which apparently uses this architecture.
View 16 Replies
View Related
Aug 10, 2010
Is there any Opensource REST / RESTful Client / Library for Android ? Please share me the links.
View 7 Replies
View Related
May 5, 2010
I am looking generally in to Android development.
I keep seeing information on root however I am unclear how this relates to general android app development.
I understand that there is an emulator however when I get to actually test the software on a phone does that phone have to be a rooted device or is this only required if you wish to edit the core features of the os?
Finally are there are any development disadvantages to rooting the device such as that is no longer behaves like other android phones I may deploy too?
View 2 Replies
View Related
Jul 1, 2010
I'm developing an application that would need to persist data locally in Android devices. I'm aware that Android provides two packages for database persistence, the normal "java.sql" and the "android.database.sqlite"? Which one is used more for persistence? I suppose that "android.database.sqlite" is the implementation of "java.sql",
View 1 Replies
View Related
Jan 27, 2010
We are trying to use a shared server (Ubuntu 9.10 64-bit) to develop Android applications. The thought is that a number of developers should use the shared server for development. We have overcome some obstacles such as setting the base port for DDMS. So it is possible to run multiple emulators and multiple instances of Eclipse. But we run into problems when trying to debug applications from Eclipse. It seems as though all emulators are trying to connect to the same Eclipse instance when debugging.
View 1 Replies
View Related
Nov 24, 2010
I've already written some small Android Applications, most of them in one Activity and nearly no data that should be persistent on the device.
Now I'm writing an application that needs more Activities and I'm a bit puzzled about how to organize all this. My app will download some data parse it show it to the user and then show other activities depending on the data and the user interaction. Some of that data could be cached, some of it has to be downloaded every time. Some of that data should not be downloaded freshly at the moment the orientation changes, but it should on the moment the activity is created...
Another thing I'm confused about are things like a httpClient. I now for example create a new httpclient for every activity, the same thing for locationlisteners.
Are there books, a blogs or documentations with patterns, examples and advice on organizing larger apps build on android? Everything I found until now are get startet tutorials leaving me alone after 60 lines of code...
View 2 Replies
View Related
Apr 3, 2010
Has anyone managed to develop Android Applications using Eclipse on the Windows platform. I understand the ADB needs to recognise specific models of phone and wondered if the Tattoo is supported.
View 1 Replies
View Related
Aug 28, 2010
How Titanium works with android? And it is easy to work with titanium for developing android applications?
View 2 Replies
View Related
Sep 20, 2010
I wonder whether there is any way to develop native apps (HTML-based apps is another story) that would run both on Android and iPhone? I know that there exist applications available for both OSs, so I wonder how are they ported/developed for both targets?
View 5 Replies
View Related
Apr 27, 2009
How to develop applications for Android. I downloaded the Android SDK but I don't see where to begin.
View 4 Replies
View Related
Apr 20, 2009
I try to use facebook-java-api to wrote my android application . but I got some problems . when i import all the libs in facebook-java-api,My eclipse Could not find my apk.
View 5 Replies
View Related
Jul 26, 2010
I'm getting my first Android device anytime now (FedEx says "out for delivery"). It's the HTC Droid Eris. I've been a huge Google user for years and became frustrated with how difficult it is to work on Windows Mobile. I have a few basic questions.
1. I want to use Push E-Mail/Calendar/Contacts, etc. With this phone? Can someone please explain the set-up process to me.
2. I had trouble with my Samsung Omnia and Google Latitude. It would 20+ minutes to get the GPS information and I had to keep Google Maps on the screen or it would stop using GPS. This function has become very important for me when I travel. Am I going to encounter these same issues with the Eris?
3. I would also like to have a chat client which uses push and can work with FB, GTalk, AIM, and MSN. Is eBuddy the way to go?
4. Twitter Application, I'd like to have an application that will put new tweets on my home page. I'd also like to have an app in which I can post tweets (preferably with the option to post locations). What is the best twitter application?
View 6 Replies
View Related
Jul 9, 2010
I am a new Java programmer. I want to learn how to develop Android applications. If someone could name the best IDE, books and websites.
View 7 Replies
View Related
Dec 27, 2009
If it is possible to set a seperate ringtone for your Contacts and incoming calls not on your contacts list, without having to set each individual ringer for the persons in your contacts list? My old LG Lotus had the feature to set a ringtone for people on your contacts and another for unknown callers.
View 3 Replies
View Related
Oct 18, 2010
I recently purchased an application and didn't like it. I've since uninstalled it.
However it shows up on my Market application ==> download section. It says "Purchased".
How do I remove this entry from that list while keeping the rest?
View 5 Replies
View Related
Apr 17, 2010
First of all, I just want to say I am a software developer, but I am not an Android developer. However I usually walk around and think on stuff. AndI've been recently thinking all the news concerning how fragmented Android is getting, with different Android versions and tweaks by different phone manufacturers, and then for developers you have different size formats. An example would be that HTC Tattoo might not be able to run everything that another phone might run, due to different screen formats, etc. And now the Android tablets are coming with different Android versions and different screen sizes, all from 5" to 11". Will this make developing Android applications harder? Apple has it safe here since they manufacturer all devices that run the iPhone OS: the pods, phones and now the pad so they can easily control and make sure not to loose any customers by introducing a new device. When Apple introduced iPad they had to make sure that all the old iPhone applications would work on the iPad. They solved that neatly by saying that iPhone applications will simply be stretched out to the double size and it would fit on the iPad. Unfortunately Android does not have the same luxury to do this. As I said, I am not an Android developer. Just a curious software developer For you guys who work actively in the Android community, does Google have a solution for this? Will you be able to run phone applications on the tablets? Is there a bridge between the devices? Are there any standardizations or will Android development become even more fragmented? you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-devel
View 2 Replies
View Related
Nov 16, 2009
Question about Gmail on the Eris Droid.
Has anyone noticed a difference in settings, functionality, or battery life by using the integrated Gmail client as compared to using the Other e-mail which uses an IMAP client??
You set this up at initial startup.
View 13 Replies
View Related
Oct 5, 2010
I have would like to change the default SMS client on my Samsung Intercept. Curious what free SMS clients do you use?
View 27 Replies
View Related
Sep 30, 2010
can anybody give example of rest webservice in android
View 1 Replies
View Related
Jul 29, 2010
I would like to know what you guys recommend as an email client. The stock captivate email is confusing. It's hard to see which email is new and which ones have been read already.I'd like to be able to see my gmail, and yahoo mail on one screen if possible. It would also be a plus if the icon would be in the dock and display how many unread emails i have.
View 11 Replies
View Related
Aug 5, 2010
I'm just coming from an iPhone 3G to the Captivate. I'm having a few frustrating issues that I can't seem to get resolved....I'll start with the email client...
1) There seems to be a DNS flushing issue when the Captivate moves from WIFI to 3G. I run a split DNS with the WIFI on a RFC1918 network and of course a routed IP when connected to 3G.The problem seems to be that as the Cap moves on and off WIFI as I move in and out of range of the WIFI signal and the Cap acquires it's new IP address, it does not expire the DNS cache and there when it tries to contact the IMAP server when going from WIFI -> 3G, it's doing so via the RFC1918 address and therefore doesn't work.Has anyon else seen that?
2) I have the email client set to get new email every 5 minutes. But it sometimes never updates the inbox until I actually go in to that inbox, then it updates.
3) It doesn't seem to keep a history of email addresses I've used for fast completion. For example, if I email Bob@accountemps, every time I send Bob an email, it doesn't remember that I've sent Bob an email before, and I have to type the entire address again.y primary use of the smart phone is an email client, and these issues are really frustrating to me.
View 11 Replies
View Related
Dec 7, 2009
I develop facebook application in android. i want to log in to facebook via HTTPClient , teh user give me username and password and then i connect to facebook.com/login. i want to make like this code http://stackoverflow.com/questions/1409220/facebook-getting-incorrect-signature-104-when-getting-session-key/1795229#1795229. but in android, i tried to do that but when i get the session, a XML contain invalid parameter returned
View 2 Replies
View Related
Sep 8, 2010
I am looking for a screen capture utility that DOES NOT require a rooted phone.HOW IDIOTIC, suppose I want to screen capture as a user, to help a developer do documentation? This is absurd that there's no apps for the rest of us honest users.there's something if I connect it to my PC. C'mon, I don't have to connect my home PC to some other computer to take screen snapshots. I want an app that works on the phone itself, and does not require root access.
View 27 Replies
View Related
Jul 22, 2010
In my app, I have different activities with listviews. The datas come from a server with a REST method, and it's only done once, when I start the application.
The pattern that I'd like to set is to precharge all the listviews with the JSONs that I already have in local, and in parallel, launch a thread that get the new JSONs files with my REST methods, and then update the listviews.
For now, when I start the app, I parse my JSONs files, and build all the lists of objects. I access them later in a static way, from my lists adapters.
So I would like to know the best way to launch this REST thread, and update the listview. Should I use AsyncTask ? A service ? and then, when I update my local JSONs, I have to re-parse them, updates the lists of object, and call in my adapters NotifyDataChanged ?
View 2 Replies
View Related
Jan 8, 2010
I want to add admob add in my application, I want to make application for every screensize, I am having a problem with is, I want to arrange a layout such that, ad comes on the top the rest of which should be webview. I can do it for normal screen sizes by hardcoding the screen size to desired px but it is not working on bigger screensizes, I want to add this in layout.xml.
View 2 Replies
View Related
Jul 28, 2010
I have a huge issue with email. I successfully added my Google Apps email account using POP. The client does indeed download the emails, though very slowly, but the main issue I have is that as soon as I manually check for new emails or the Captivate automatically does it (I set it to 15 minutes intervals), all the emails in the inbox on the phone disappears. After much investigating, it turns out that all emails that was already downloaded prior to a reload, were sent to Trash in Gmail. So when I log in online, every message that was originally downloaded to the phone, was now found in Trash. The only workaround I have found in order to keep the emails on the phone, is to delete them instantly. That way they remain in the Deleted Messages until I manually remove them.
So my question is: does the default email client work like it should at all or should I replace it with something. And if so, with what? It's a shame that a new phone such like this have issues with such a basic task.
View 9 Replies
View Related
Aug 31, 2010
I have a WCF REST service built with C# and it returns an image as part of a CPU intensive operation. The client is running on Android (Java) By default, it will return a text JSON object that looks something like this:{"d",[9,0,77,12,11,...]}Those are they bytes of the image. Fine. However, all the solutions for decoding this JSON are intolerably slow. I've tried Gson, Jackson, and the built-in Android JSONObject class. I have no idea why they are so slow.As an alternative solution, I have my REST service return a GUID, and then that GUID can be used by the Android client to go to a regular URL that serves up the image as a regular binary stream, via an MVC controller. This works well, and it fast, and is pretty easy to handle on the Android side. However, it does feel like a bit of kludge and kind of a violation of the REST design principles.
View 4 Replies
View Related
Jun 11, 2010
Retrieving data from the REST Server works well, but if I want to post an object it doesn't work:...
View 3 Replies
View Related
Sep 24, 2010
I need to pull data from a REST web service in my android app. The web service requires authentication.
I need to first call a login method, which will return me an authToken and JSESSIONID as part of the response header. I need to pass these items back with every request. I'm currently using: org.apache.http.impl.client.DefaultHttpClient.DefaultHttpClient() to call the login method. I can see the authToken and JSESSIONID are being returned in the response header.
Are there any existing tools or classes that might provide some sort of management functionality that I can easily integrate with my android app?
View 1 Replies
View Related