android

How to set a timeout on a soap call using ksoap2-android?

Hey hey I'm using ksoap2 for my android project and it works great. I've succeeded in connecting to distant server but I currently have a problem when I want to set a timeout to my androidhttptransport. Is there a clean way (maybe an attribute to set?) to deal with it? I've found this same question there but it's not very detailed. Do...

Background application without ui

Hi all, I am new to android development.I want to make one background application, so that it keeps running in background, and its without any ui, and even its icon do not appear on desktop. In short its a stealth application... Is it possible ? Thanks and Regards, Mudassir ...

Can I develop for Android and iPhone with Adobe AIR if I don't care about the App Store?

As far as I understand, applications made with Adobe AIR have been blocked from the App Store. If I wanted to utilize AIR anyway to create a cross-platform app (for iPhone and Android) would it be possible to distribute the apps outside of the App Store? I have very little experience with the iPhone, but I know that in Android you can t...

what are these permissions used for

hi, in android manifest code these permissions are used sometimes.for what these are used? <uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> <uses-permission android:name="android.permissi...

How to dismiss the Progress Bar?

Hi all, I'm new to android now I'm developing an application where a file is downloaded. I want to show a progressbar while the file is being download.i don't know where to check the condition for showing the Progress Bar and also i don't know how to dismiss the Progress Bar. ...

Android: How to use the Google Base Data API within an Android Application

I want to use the Google Base Data Api to search for snippets and download these informationen to show them in my activity. I know that the project is still in Google Code Labs, meaning it is in a formative state. But I wonder if there is already a version that i can implement in my Android Application. I know that I can try to do queri...

How to avoid content clipped by ScrollView scrollbar ?

I have a plain vanilla layout: <ScrollView> <TableLayout> <TableRow> ... but the content gets clipped by the ScrollViews scrollbar. This link illustrates the issue: http://books.google.com/books?id=7tH3A0UrWEEC&amp;lpg=PA54&amp;ots=zztpvVWPXT&amp;dq=android%20%22clipped%20by%20the%20scrollbar%22&amp;pg=PA54#...

Nexus One: when finger scrolling on grid causes the cells to shrink

Hi, I have the following problem which is showing up on Nexus One and EVO: I have a grid of pictures and when I press the screen and start scrolling the grid cells shrink(pinch). I have fixed size for the grid cells and I fill them with a custom views. I extended the View class and I draw the canvas with a bitmap and a text on top of i...

Changing the background color of a Tab widget

Hi Everybody, I am using TAB in my android application. I want to change the Background of each Tab at the load time only. The default color is grey. ...

sqlite constraint failed error code

Hi all, I have two tables albums and songs and each song has reference to alum's id. Album table : CREATE TABLE albums (id INTEGER PRIMARY KEY ASC, name TEXT, additional TEXT) Song table: CREATE TABLE songs (id INTEGER PRIMARY KEY ASC, album_fk INTEGER NOT NULL, title TEXT, url TEXT, duration BIGINT NOT NULL) and i also have a tri...

Supporting Android 1.5, features from Android 2.1 and no Reflection?

I currently have an app on the market that supports Android 1.5 (SDK level 3) and up. It also takes advantage of several features that are only present in Android 2.0 (SDK level 5) and up. I do this using Reflection. I read a post on the Android Developer Blog that talks about how to support these new features while using no Reflectio...

ListView setting display text

I have a simple Person class: public class Employee { public String Name; public int ID; public TVShow(String employeeName, int employeeID) { Name = employeeName; ID = employeeID; } } I am populating a List (in this case named xmlHandler.employees) with classes containing the name and id of employees. I then...

Is there any API supported by Android for recording phone call ?

Hi, Is there any API supported by Android for recording phone call ? Thanks and Regards... ...

Updating AppWidget

Hi, I'm launching an activity on a buttonclick from AppWidget. The user enters some data on the activity and when user closes the activity, I want to update the data user entered in a TextView on AppWidget. Any idea how to do that? I have successfully launched activity from AppWidget, only problem being updating the AppWidget. ...

OCR for mobile photos

Hi everybody, I'm thinking of developping a mobile OCR app to detect words from mobile pictures. The purpose if only to detect what words are in the picture, the layout is not important. Also it would be use on very short texts. I'm currently thinking of adapting tesseract to iphone and android. I wonder if anyone has had any related ...

How to disable GestureListener in android?

Hi, I have implemented GestureListener, and it is working perfectly, but how can I remove GestureListener from my view? @Override public boolean onTouchEvent(MotionEvent event) { if ( event.getAction() == MotionEvent.ACTION_UP ) { // remove gestureDetector } else { mGestureDetector.onTouchEvent(event); } ...

Fail to connect to camera service

Hey guys, I had my camera set to this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); and it works fine but if I change it to PORTRAIT instead of LANDSCAPE then it crashes with the following error... 07-30 12:51:37.655: ERROR/AndroidRuntime(22069): FATAL EXCEPTION: main 07-30 12:51:37.655: ERROR/AndroidRuntime(2...

Android: Getting lastModified of a private file

Hi Guys, I am trying to get the last modified date of an internal file and it always returns me 0 although I could read the file properly. Can you please let me know if I am doing anything wrong... Creating a file... FileOutputStream Os = activity.openFileOutput("file1.jpg", Context.MODE_PRIVATE); cachedImage.compress(CompressFormat.J...

Slide in animation when updating screen on android

I'm trying to do something in android, and I'm not sure how. I have this ListView, which I update with new info from time to time, and I would like it if I could have a transition effect when the new data is in, like the "Slide from the left" affect that I get when calling in a new activity. but I'd rather not open a new activity for e...

Facebook integration in android application.

Is there any api for facebook to integration in android? I got a requirement to publish images to facebook through android application. Please give links or suggestions regarding this.. Thank you.. ...