android-manifest

HowTo simulate Trackball/Cursor movement on android device?

I have purchased an Samsung Galaxy I9000 Phone, knowing that it does not have either a trackball nor a touchpad/cursorkeys. I thougt: simply write an application that reads gestures and sends/generates the appropriate cursor events. Checking the SDK documantation and found that this is possible after granting my application the permissio...

Application clicked action in Android

Hi all, Application icon clicked action in Android How to get application clicked action in Android?? Example:When i click on Contacts i want to display Image First the display Contacts List How can i Do this??? Please Reply soon. Waitin for your reply. Thanks ...

Android TabHost appearance not as expected

Hello , i just followed the tutorial on tabs creation from the android dev documentation and my tabs didn't turn out the way they probably should. Here is a screen on how it looks for me: and here is how it should look like: I found som threads that talks about putting localisation on the tabhost and make every activity follow the s...

How do I get multiple icons to launch different activities in one application?

I have an application with two activities and I'd like to be able to have two icons appear in the launcher, each launching the respective activity within the app. Specifically, I want one icon to launch my main app, and another icon to launch my settings activity. Is this possible? Here is what I've tried so far: <activity androi...

My App doesn't show up on the market

I've found today that my recently published app on the Android Market, is not showing up on this device Market: Samsung Apollo. I've already followed this tutorial to make my app accesible to almost all devices configurations and it still don't show on that device's Market. What am I doing wrong? ...

Android: Is each UI thread in an Activity a separate threads?

In an Android app with multiple Activities, is each activity's UI thread a separate thread or are they actually the same thread (like a global, per app UI thread)? ...

AndroidManifest.xml

I came across the following two lines in AndroidMenifest.xml file of my android application: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"&gt; Why we have write "encoding" in <xml> tag, what is the purpose of it? What is the purpose of writing 2nd line ? if anybody know ...

How can I disable the system keyboard?

I would like to disable the keyboard across the OS, but I am not exactly sure if this is possible. http://developer.android.com/reference/android/app/KeyguardManager.html ...

Not Connecting To Web Page On Android

Hi, I got a code for connecting the web page but it shows always "Connection failed; Host is unresolved: www.streetcar.org:80" The code is as follows. package myapp.httpdwnd; import android.app.Activity; import java.io.InputStream; import android.os.Bundle; import android.widget.LinearLayout; import android.widget.TextV...

Instantiating activities into new tasks and processes

I have an application with a multi-instance activity. I would like each instance of the activity to appear in a new task and process. Any suggestions on how to do this? By manipulating the manifest I can cause all instances of the activity to appear in a specific task and process, but I haven't found any way to cause each instance to ap...

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...

Android java.lang.SecurityException on Settings.Secure.putString()

Hi, I'm trying to set a system property in Android 2.2. Using Android for eclipse plug-in. The line that's causing the exception is: Settings.Secure.putString(getContentResolver(), Settings.Secure.HTTP_PROXY, "127.0.0.1:8099") And while running in the emulator I'm getting: 08-01 22:48:44.338: ERROR/Datab...

Android java app works on one version but not the next

I'm very new to android, in fact only started yesterday. I managed to get an application setup with tabs. It works fine on a 2.2 virtual avd (i think it is called). But the version my HTC has is 2.0.1 I'm posting snippets of the code below as well as debug info. Logcat shows the following error 08-02 09:56:05.946: WARN/dalvikvm(414): t...

Activity found to handle Intent

Hi, I am tring to invote internal media player of android from my activity. Seems there is some problem in menifest file . Please look into this issue . 08-04 18:08:47.825: ERROR/AndroidRuntime(1386): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///sdcard/audio...

resize the bitmap canvas

Hello, I am trying to draw rectangle on top of image and I am having trouble placing the art on the image. Only part of Rectangle shows up somewhere in bottom of screen. Here is what I am doing: sinewave is the image from res>drawable folder public void onDraw(Canvas canvas) { Bitmap myBitmap = BitmapFactory.decodeResource(ge...

Android View Help

Hello, I am trying to have the main screen displayed from within activity using setContentView(R.layout.main); and then have an image displayed as follows: public class TryGraph extends Activity { /** Called when the activity is first created. */ public LinearLayout mLinearLayout; protected void onCreate(Bundle savedInstanceState)...

main.xml hiding the view help

Hello all, I am unable to display both the setContentView(R.layout.main) and View together. I think I am not getting the concept right. Could anyone explain me where I am going wrong. Thank you. //please read the comment in code I am trying to display a image on main.xml using BitmapFactory. public class TryGraph extends Activity ...

ClassCastException from layout editor in Eclipse's ADT Plugin

This is probably related to this question. I want to know if anyone else gets the same error as me and if there is a way to get around this. I did the following: Followed the instructions from this page. From the top, go to File -> Create a new project -> Android Project -> Create project from existing sample. Checked Android 2.2. ...

android.content.ActivityNotFoundException:

Hi All.. I am getting this exception while I am trying to call an activity from another one.. .The complete exception is android.content.ActivityNotFoundException:Unable to find explicit activity class {com.x.y/com.x.y.class}; I am doing an intent.setClass("com.x.y","com.x.y.className") where className is the name of my activity class ...

Android Intent with Tab Host

Hi All, I Have one App which is having four Tabs. When i click on Tabs it shows me different activities. now the problem is i m working on current project and i want to call another project in my applicaion. i have imported the package in my current project. but when i m calling the other activity in Manifest its is showing me the error...