Android :: Best Approach To Write A FaceBook Application For Android
Jan 23, 2010
BackGround: There are Facebook APIs(and SDKs) available to develop applications for other Mobile devices like iPhone, BlackBerry etc, but it seems there are no official ones for Android(?).
People have ported Java APIs to work on Android and have written FaceBook Client applications(FaceBook dev: Wiki Page). Apparently, there is also a light weight FaceBook SDK in alpha release for Android(a la FBRocket). But it is not avised to be used in Production.
Since these FaceBook functionalities have been exposed as REST based service, most of work would invove sending requests in desired format over Http. So, writing a FaceBook client app for Android certainly is doable.There are similar applications already in market e.g.: Bloo.
Questions: When asked to write a FaceBook client application what approach should one undertake? Should we choose the SDK or invoke the services over Http?
If there is already a Web application that integrates with FaceBook, can we just browse to that Application from inside a WebView and be done with this?
View 1 Replies
Nov 24, 2010
I am looking to create an Android application that uses Tabs.
Requirements
- When a user selects a tab and gets back to the same tab, there shouldn't be a loading period (preferably).
- Each tab will contain a listview.
- In one of the tabs, I will have to use subtabs. And that's it.
One great example I really liked (although I didn't try the app) is
http://www.usatoday.com/android/.
View 2 Replies
View Related
Jul 29, 2010
I'm working on an app that is meant to be used by fans of a sport team. In the future, I expect to use the same app but for any different team. So, what changes would be the colors, team logo, app name and the like. So, is there any technique that allows me to build binaries for different teams without having duplicated resources?
View 4 Replies
View Related
Aug 18, 2010
I used Eclipse with the Android SDK to develop the original application. I ask since this was my first Java (and Eclipse, and Android, and XML) project. I assume that most of the Java should run on the PC without too much trouble. I may want to restructure the code to isolate the Android specific functions. Should I stay with Eclipse or move to something like NetBeans?
View 3 Replies
View Related
Jul 23, 2010
For my first application, the only testing I've really done to this point is on my Droid X. I want to think through the various hardware differences and come up with a testing plan that is representative of the Android landscape. My initial thought is to create a list of emulators that have unique qualities such as screen size and SDK levels. I've noticed very quickly how the UI of my application will need some adjustment when viewed on devices that don't carry a 4.3" screen. How have you approached this hurdle in your own development? Chris Stewart cstewart...@gmail.com http://www.androidsdkforum.com *Want to advertise your Android application for free? Email me for details!*
View 9 Replies
View Related
Nov 2, 2009
I'm a total newbie to Android (and to Java in general... mostly a PERL/ PHP guy here...), so forgive me if I use the wrong terminology to refer to things... I have been asked by my company to implement an application for Android that allows a user to enter a note at the end of every call. E.g., either they or the other party hangs up, immediately a notes area pops up with a "save" button and if they enter a note, the note is saved with a reference to the call log entry. As I understand it, onCallStateChange() will give a pretty good indicator of a hangup if the state has become Telephony Manager.CALL_STATE_IDLE. I've figured out how to do the UI part, how to save it in a database, etc... My question, however, is about how I implement this "listening" aspect of it. Should I have a service running all the time that has an instance of android.telephony.PhoneStateListener? If so, do I use the onBind or onStart method, and how do I make sure it doesn't go away when memory runs low? Or can I somehow attach the listener to this event, and then terminate? Or is a Broadcast Receiver the way to go?
View 16 Replies
View Related
Feb 2, 2010
I have the Android Facebook-Connect library running in my emulator and I'm able to set my status with the Facebook API I have setup. However, I don't know where to go from there? Am I supposed to use the session key that this library allows me to get and make some Facebook API calls? I haven't found any code examples to even see what the proper syntax is. Am I better off using another library? I tried fbrocket with limited luck(I get a "server error 104 - Incorrect signature").
View 1 Replies
View Related
Jun 4, 2010
We need to make an application that runs on iPhone, Android and BB. What is the best approach to write the least ammount of code? I know about some frameworks but I am not sure the best approach.
View 5 Replies
View Related
Dec 22, 2009
I just read from internet to maintain the state of my application by overriding the onKeyDown function as given below. And set the launch mode of my activity as singleInstance. And it is working perfectly. Just want to know if it is correct approach. And how it is different from onSaveInstanceState.
View 3 Replies
View Related
Nov 3, 2010
In the past I have used Python for backend stuff along with Django for frontend stuff, but I don't know how well those two work with Android. Can anyone recommend a good way to go about making server-side software that works well with Android? Please take into account that I also want a web application as a frontend, so the backend should work with both the web app and the Android app.
View 1 Replies
View Related
Feb 27, 2010
What is the best approach to managing a small SQLite database private to the application? Open (getWritableDatabase)in OnStart and close in OnStop in each Activity?Open in OnCreate and keep open til the user quits the app (where would you put close?) Open, do work and close as soon as possible each time it is needed?
View 5 Replies
View Related
Jul 13, 2010
We are supposed to cache textual and audio data in our application until device is booted or maximum of two days, whichever happens earlier. To get a perspective on data to be cached, note that we are to store about 200 text headers containing around 10 fields, each of length 30 bytes and about 20 sound files each about a minute long.We are getting the textual data by parsing XMLs and then we keep them in ArrayLists. The sound files are directly written inside the app storage using File I/O (and not on SDcard or Apps Cache directory).This application is to be run on devices running Android 1.5 or later.I understand, and please correct me if I am wrong, that we can cache the files either on SDcard or inside the application or inside applications Cache directory.
View 2 Replies
View Related
Aug 5, 2009
I send a lot of sms messages everyday and I'd like to write them using my PC keyboard... then this text should be sent to my Htc Magic which sends it to a specified number. I used to do that with Nokia PC Suite... Is there any software.
View 19 Replies
View Related
Jun 14, 2010
Is it possible to write a Vala application and get it to run on an Android device?
View 1 Replies
View Related
Jun 29, 2010
Writing an application to invoke the camera can be done but I want to write an application to hold on to the camera resources. Meaning while this application is running, camera cannot be accessed by other applications. Is this possible? The aim is as long as the application is running camera cannot be used.
View 5 Replies
View Related
Aug 19, 2009
Can we assume that App can write to /sdcard some file? What can be reason one cannot do that? I could not find any documentation on sdcard rules in google docs.
View 6 Replies
View Related
May 3, 2010
I have an application that can read and write txt files to the phones sdcard. By using this code for reading files:
@Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); mFileNameOpen = files.get(position);
String st = null; mVector.clear();
notepad.mNewEmpty = false; try { File f = new File(Environment.getExternalStorageDirectory()+"/ notepad/"+mFileNameOpen); FileInputStream fileIS = new FileInputStream(f);
BufferedReader in = new BufferedReader(new InputStreamReader(fileIS));
do { st = in.readLine();
mVector.add(st);
}while(st!=null); in.close(); ...
} catch (FileNotFoundException e) { e.printStackTrace();
} catch (IOException e) e.printStackTrace();
and this to write them:
try { File root = Environment.getExternalStorageDirectory();
File fileCheck = new File(root, "/notepad/" + fileNameSave + saveExtension);
boolean exists = fileCheck.exists();
if (!exists) { if (root.canWrite()) { File textFile = new File(root, "/notepad/" + fileNameSave + saveExtension);
FileWriter textWriter = new FileWriter(textFile);
BufferedWriter out = new BufferedWriter(textWriter);
out.write(SAVEAS); out.close(); written = true;
} else { written = false; else { written = true; showMaybe = 1; showDialog(DIALOG_SAVE_EXISTS);
catch (IOException e) {Log.v(getString(R.string.app_name), e.getMessage());
This has been working fine on my Tattoo and all the emulators I've tried this on. But it does not seem to be working on moto droid. Is there something different to consider with moto droid? Or have I missed something in the manifest maybe?
View 11 Replies
View Related
Mar 6, 2009
Eldev LLC is looking for android developer familiar with flickr / google image search API to write a new exciting application for us. Possibility of long term relationship and full time work is high if the job is done right.
View 2 Replies
View Related
Oct 11, 2009
Is there an online tutorial for how to write a very mundane chat application on the Android platform, over two or more phones? (doesn't have to be anything special, just be able to send messages from one phone to the other in real time)
View 3 Replies
View Related
Feb 7, 2010
I am very new to android. The Eclipse and the Emulator is running and I have bought an device already. I want to write a little UPnP- Discover-Application first. I used CyberLinkForJava under Java some years ago. I read on this list (2010/1/29) that this framework can be used under android too. Like mentioned in the post from skonno I downloaded the code via svn from sourceforge and copied the trunk/cyberlink/upnp-stack/src/main/ java section into the source folder of my android project. Then I`d got errors in XercesParse.java and kXML2Parser.java. If I delete this classes it runs without errors. But the code from the cyberlink documentation. Code...
View 4 Replies
View Related
Apr 11, 2010
an app that lets you write words with your finger, then turns it into text? is it free?
View 3 Replies
View Related
Jul 21, 2010
I write a app but it is not doing anything..
code is given below:
CODE:..............................
View 2 Replies
View Related
Apr 29, 2010
I have two published apps that are pretty targeted to the user collecting their personal medical data (like Blood Pressure, etc.) and then, eventually sending it somewhere, if they choose.
I decided to put Read/Write permission on my ContentProvider, so if another app comes along that wants to the access that content, the user will be warned. The permission that is required is declared in my apps.
When the user installs my apps, they are also given a warning that the app requires that permission (even though it's the one that declares it), and it shows up in the Marketplace also.
The question is: Is it possible that the permission acceptance part of installing my app could be putting customers off? I don't know what other's acceptance rate is, but mine is around 50% of customers who download it have active installs.
View 5 Replies
View Related
Mar 18, 2010
How can I write a Broadcast Receiver that will be invoked when user clicks on any application icon?
I tried by writing:
CODE:...................
But it is not called.
I tried, by using Packagemanager I will get ApplicationInfo. From that I can know all the application starting activity name and package names. I thought I can use them to registerReceiver and my receiver will listen by its launching activity and package name.
View 1 Replies
View Related
Sep 4, 2010
I am developing an Android application for which I would like to add Facebook functionality using Facebook's Android SDK. I have registered the application and acquired the ID and Secret, but what is the point of the URL? Am I supposed to install something on my website on that specific URL so that I Facebook can do the OAuth key exchange?
View 1 Replies
View Related
Aug 13, 2010
Below is the code to write to a file after downloading an image from the web. But somehow, it's just stuck while writing to File Stream. No Exception at all. It just stays on while loop then displays force close popup. it happens 2 or 3 out of 10.
code:..............
When I check the file written, it's always stuck when it writes till 4576byte. (Original image size is over 150k)
View 2 Replies
View Related
Aug 26, 2010
I am developing an application using com.google.android.maps.jar It is OK to develop it with Eclipse SDK. but an build-error happens when building system.img with GMS licence (com.google.android.maps.jar is already installed at out/target/common/ obj/JAVA_LIBRARIES/com.google.android.maps.jar_intermediates/ com.google.android.maps.jar)
make: *** No rule to make target `out/target/common/obj/JAVA_LIBRARIES/ com.google.android.maps.jar_intermediates/javalib.jar', needed by `out/ target/common/obj/APPS/LifeStory_intermediates/classes-full- debug.jar'. Stop.
Here is my Android.mk
CODE:.............
View 4 Replies
View Related
Dec 23, 2009
In my application I have three buttons that are to be part of each and every activity. These button are independent of each other and on click do mutually exclusive things(say launch different activity). So, in my layout XML for every screen I have a <Linear Layout><Button/><Button/><Button/></Linear Layout> element.
View 2 Replies
View Related
Oct 11, 2010
I'm navigating through a 3-level hierarchy of names to get to a document view page. I've set up tabs for the 3 levels. The tabs are left, middle, and right where the right tab is the lowest level of the hierarchy. Each tab has a list of 10 to 20 Radio Buttons with the names. This all works great and is very efficient and intuitive. One note is that there may be 1000 documents available (from an online source) but the average user will only be viewing a handful regularly. So I store the choices for each of the 3 tabs. This way a user can quickly navigate to his favorite without having to negotiate the entire hierarchy each time. My question comes when the user is on the right tab. At this point they have navigated through to the document they want and I'm wondering what is the best way to initiate the document view page. Remember that most of the navigation happens on the right tab in the small set of documents the user regularly visits, with only occasional visits to the other tabs. So making the right tab efficient is good. My current approach is to add a LongClickListener to the buttons of the right tab. Then a press-and-hold kicks off the document view. This certainly minimizes the number of objects on the screen and the number of separate clicks required to get to the document but I question whether new users will know that a long press is expected. I guess I could put up some Toast if the user doesn't do anything for 5 seconds but that still seems clunky. Another approach is to add a Button at the top of the right tab Radio Buttons. This has the merit of being dead obvious but it's a less efficient use of screen space and also an extra click for an experienced user.
View 9 Replies
View Related
Mar 29, 2009
Eldev LLC is looking for android developer familiar with google image search API to write a new application.
View 4 Replies
View Related