Hey everyone,
i'm planing an app where i need to edit a system file.
I can only edit that file with root rights. I have a rooted dev phone with Superuser.apk installed. Other apps that require root do request root access on first start.
i want to do the same but i can't find any hints on how to request superuser rights for my app :(
I fo...
Hi all,
I want to block hardware back button in android ,in order to prevent from going back to other activity..
Thanks in advance...
...
Hi,
I have created four tabs using tabhost, and placed four listviews in each like below:
public class prem extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
String[] names = new String[] { "Pr"};
this.setListAdapter(new Array...
Eclipse doesn't accept the less than symbol for the button text, is there a way to escape it so it shows on the button?
<Button android:id="@+id/button_prev_line"
android:text="<line"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
...
Hi,all! Please help me.
I want to make my addressbook like system's contacts.
If my application can use system's contacts, it is easier to make my addressbook.
I googled so much about this, but I can't find using method of system's contacts function.
Please teach me about this issue or give me sample code about this.
Thanks. sincerely.
...
Ideally I would like to send an object of type
ArrayList<ArrayList<ASimpleClass>>
from a remote service in one APK to an application in another. I'm not sure if this is even possible as the API demo code suggests that it isn't:
/**
* This demonstrates the basic types that you can use as parameters
* and return values in AIDL.
*...
I just send some coordinates to the android emulator.
I used this commands for sending the fixes:
geo fix 8.494062000 52.038213000
This will send my emulator near the bielefeld university in the google maps app.
The next command I issued was:
geo fix 8.495543000 52.038180000
Sadly my position does not change on the emulator. Ev...
Hi, every one
Does android mediarecorder can capture video with resolution higher than 320*240?
When I used MediaRecorder#setVideoSize() to set the video size, the captured video were all at the resolution of 320*240. Even worse, the higher ones can not get a clear video, they were somehow greenish. (encoder is h263, format is mpeg4)
...
This has me baffled. I need to copy the Bitmap from one ImageView into another. I do not want to simply copy one ImageView to another because I need to do some changes to the bitmap on its way over.
Here is some code that doesn't work.
ImageView ivSrc = (ImageView) findViewById(R.id.photo);
ivSrc.setDrawingCacheEnabled(true);
Bi...
Hi,
Is it possible to share a same webview object in two different activities in android ? Here is my use case. I have an Activity A that has a webview W. W occupies 50% of A. Now When I click on Webview W, in activity A, I want to launch Activity B with whole of it occupying webview W. In acitivity B, I do not want webview to requery t...
I'm a designer looking for a simple example project file for eclipse. I'm looking to sell my art work as scrollable wallpapers in the android market but all I can find are Live Wallpaper project examples.
I'm learning how to program but wanted to speed the process.
Any Ideas?
As Always thanks again!
...
I am trying to make a table to display something like this:
________
|__|__|__|
|__|__|__|
All boxes need to be split evenly, and the middle box in the bottom row will have a very large image that will be forced into a smaller size. This is my current XML layout, but I wind up with a layout like this:
________
|_|____|_|
|_|____|_|...
I want to find out wether Videos on Mobile Websites play inline or in a video application. If they play in an video application: are these applications device specific or is it always the same? Does someone have a link to the look of the controls so that I can build a photoshop preview on how my web video will look on Android?
...
Hi,
I have four tabs that hold four listviews, I want to set a background for each list view but whenever I try to add the background it puts the image in each cell of the listview instead of behind the list.
?xml version="1.0" encoding="utf-8"?>
TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:background=...
Hi all ,
I developed application for portrait mode in android.what the changes i have to made,so that my application also fit for Landscape orientation
Thanks in advance...
...
I need to set a break point in code that is handling an exception inside Froyo. I am using Eclipse and have built a local copy (not customized) of Froyo so it should line up for my device. Is there a way to tell ADB and/or Eclipse to load symbols so I can step into the code?
...
I have to create progressbar so that i need the size of a file.so please give me the sample code that i can calculate size of server side file.
...
I want to know how to implement java code to parse the apk file, get the android application version number and so on, such as after you uploaded android application in Android Market, it will get the version number, permissions.
Anyone can give me idear? Thanks a lot.
...
Hi experts,
I am trying to implement a dynamic autocomplete widget in android. I am done with the major functionalities and the autocompletion implemented is for youtube video search.
When I start typing a letter or two, the auto-completion is not working. But when I type three letters or more it works prfect. It also works when I type ...
Hello
Here I write camera snapshot on the db.
`private SQLiteDatabase db;
// SOME CODE HERE ///
InputStream is =new ByteArrayInputStream(data);
BufferedInputStream bis = new BufferedInputStream(is,128);
ByteArrayBuffer baf = new ByteArrayBuffer(128);
int current = 0;
while ((current = bis.read()) != -1) {
baf.append((byte) curren...