android

sending email with attached pictures in android (solution)

the image is stored in android sd card I got the solution we need to specify in manifest and the working code is String _path = Environment.getExternalStorageDirectory() + "/mapp/test.jpeg"; File file = new File( _path ); Uri outputFil...

getting View reference from Intent

Hello, I create a tabbed view with a list and a map, this is the code used to build the tab: tabHost = getTabHost(); TabSpec tabSpec = tabHost.newTabSpec("tab_map"); Intent i = new Intent().setClass(this, MyMapActivity.class); tabSpec.setIndicator("Map", getResources().getDrawable(android.R.drawable.ic_menu_mapmode)) .setContent(i); ...

Best games/physics engines to use?

Hi there Looking for games/physics engines to use for mobile game development. iPhone there is Cocos2D Android I've found RokonAndroid Just wondering if there are any others (better ones) that anyone knows of? Or any that are more cross-compatible? Thanks Tom ...

Cursor is lower than bar when I reduce the seekbar width(such as 10pixel) on android SDK

On android SDK, I reduce the seekbar width via set android:layoutWidth =. or android:paddingTop/Bottom. But the Cursor is lower than Bar. I want the cursor and the bar should be in the same line. Can anyone help me? thank you in advance. ...

how can i put appwidget on my view and let it updated itself??

how can i put appwidget on my view and let it updated itself??now,i can put the remoteviews on my activity,but it seems not update itself, how can i make it update itself? ...

Preferences & CheckBoxPreference

The documentation for the PreferenceActivity states "These preferences will automatically save to SharedPreferences as the user interacts with them." That being the case, if I subclass PreferenceActivity, invoke addPreferencesFromResource in onCreate, set some preferences in the UI I would expect that any changes made to my preferences s...

How to detect HTC Sense?

Can I somehow detect if my app is running on HTC Sense? More generally, the problem is, that I have a Button with custom drawable. It's something very similar to the account switcher in the top right of Gmail app. When pressed or focused, the button has orange highlight. But that doesn't look nice on HTC Sense - because the standard hig...

Send ArrayList<GeoPoint> array in putExtra method

Hi I have created Intent and I put data using putExtramethod. Now I want to put my geoPointsArraytype variable to my intent object, here is type of geoPointsArray : List<GeoPoint> geoPointsArray = new ArrayList<GeoPoint>(); In existing methods putExtraI can't find how to put my custom type. Can someone help me with this? Thanks ...

How to find out the running/start time of android application?

Is there anyway to find out the start time of an application?ActivityManager provides pids etc for each application process but doesn't tell for how long process is running. ...

Mercurial ignore-file for Eclipse and Android development

I have seen samples for Mercurial ignore files for Visual Studio, amongst others. I've just started playing around with Android development, and I also use this time to experimenting with Mercurial. So my question is: does anyone have a good example of a .hgignore file to use for Eclipse and Android development? For starters I've got t...

[Android, Dalvik] Problem with basic access authentication in file downloader.

Hello everyone, I'm having problems with downloading binary file (zip file) in my app from te internet. I have to use basic access authentication to authorize acces to file, but server response is always HTTP/1.0 400 Bad request. String authentication = this._login+":"+this._pass; String encoding = Base64.encodeToString(authentication.g...

Android: Refresh view problem

I am having a problem trying to refresh a View in an Android application. I have a button that have a image and what I need to do is to change the image when someone clicked the button. Where is the problem? The image don't refresh until the activity finished proccessing the code. Any idea how I can refresh the image as soon as It execu...

How to set buttons in Android?

hi! I have 7 to 8 buttons in my application. Like this. How can I do this? I used: LinearLayout ll = (LinearLayout)findViewById(R.id.searchdialog_layout); ll.setOrientation(0); Button btn = new Button(context); btn.setBackgroundDrawable(getResources().getDrawable(R.drawable.bubble_layout)); btn.setPadding(4,0, 4, 0); btn.setText...

Manual call to onListItemCLick

I am using a ListView with a SimpleAdapter. Once data is populated into it I would like to set the first item in the list. This can be done by clicking on the list item on the screen. I want to just call the method directly after I populate the list so that when you see the UI its already done. My only problem is getting the View fro...

Designing a rich UI using Webview for a non-network-using Android application

Hi, I am in the process of designing an application for android where the user can see a list of resources with short summary (e.g., title and date of an event) , and clicking on an item shows the details (e.g., event description, who is attending, etc). Currently I am exploring making a custom ListView and LinearLayout for this in Andro...

problem with cancel the alarm manager pending intent

I have app which reminds people to so their task. So there is one pending intent,now the user can delete the alram when he wants to. Ib this code there is just one pending intent for multiple user alarms so I am confused on cancelling that particular alarm where extras is "pill". The remaining alarms should not be cancelled .I have no cl...

Android: Pass complex data structures through activities or services

Hi I want to pass complex data structures from my Service class to Activity class. I create class Serializable : class SaveMe implements Serializable { private static final long serialVersionUID = 1L; static final int test = 1234; private int user; private String name; private doubl...

Getting android.content.ActivityNotFoundException: No Activity found to handle Intent

hi all, Hi i am trying a specific application given by the user. For some apps i can startActivity properly, But for some like Calculator i am getting the ActivityNotfoundException like given below: 09-09 15:53:05.503: ERROR/AndroidRuntime(765): android.content.ActivityNotFoundException: No Activity found to handle Intent { ...

Smartphone app design document template?

Hello all, Im looking for a design document (templat) for smart-phone applications, I don't really mind which platform, because it should be easily transferable! I am aware that there are lots of widget & icon design guide lines available but I am also looking for some more high-level, well-rounded design such as use-case, uml diagrams,...

How can I programmatically display a ViewFlipper's second child?

I have a ViewFlipper with 3 children. I want to be able to display any of these children initially. So for example, maybe I want the ViewFlipper to load initially with the 2nd child and not the 1st. EDIT: I know I can use the getChildAt(int index) method. When a child in a ViewFlipper is shown, how can I get that child's index? ...