Hi everyone,
I have a layout which does almost what I want. There's just one bug regarding the button at the bottom. I should stay at the bottom at all times. But whenever I bring up the soft-keyboard the button will be displayed above the keyboard. This is not what I want but it should become covered by the keyboard.
Moreover, I'd be ...
Hi,
I have an android listview filled with items.
Every item has a button.
This is the template of the my listview.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:paddingBottom="6dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
and...
I am getting some HTML text from a remote server which I am displaying inside a WebView. I need to format the text display and set a font size and color for the WebView.
The only way I can think of is: pre-pending the HTML string received with a tag and specify the font information there.
What is the correct way to do this?
...
Hi,
Im getting a -1 value when i try to get the selected item position on my listview that is already populated.
list.setOnItemClickListener
(
new AdapterView.OnItemClickListener()
{
public void onItemClick(AdapterView adapterView, View view,int arg2, long arg3)
{
int selectedPosition = adapterView.getSe...
I'm trying to find a way to properly handle setting up an activity where its orientation is determined from data in the intent that launched it. This is for a game where the user can choose levels, some of which are int portrait orientation and some are landscape orientation. The problem I'm facing is that setRequestedOrientation(Activit...
Hi,
I would like to know how I can move a small image on the screen. The user clicks for instance a small block and after that I would like to slide it over the screen.
Any help is appreciated,
Thanks in advance
Jasper
...
Hi,
When my user press "ENTER" on the virtual android "user validate entry!" keybord my keybord stay visible ! (Why?)
Here my Java code...
private void initTextField() {
entryUser = (EditText) findViewById(R.id.studentEntrySalary);
entryUser.setOnKeyListener(new OnKeyListener() {
public boolean onKey(View v, int keyCode, KeyEven...
Yes, I know you need a unique resource id when calling the version of these functions that requires a key, but I cannot for the life of me figure out how to create a resource id that can be used in this way. A final variable in my class wont work and neither will a hard coded value. Both threw an IllegalArgumentException. So what gives, ...
Hi,
I hope the title says it all: I've got Activity A which fires up the Camera intent via:
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
startActivityForResult(intent, REQUEST_CAMERA);
After the picture is taken I can easily grab the picture in:
@Override
protected void onActivityResult(int requestCode, int resultCod...
I want to implement PDF viewer in my android application. My application has option of reading some document and i want to open those doc in PDF by default. My application .apk is ready and I have PDF viewer apk with me . What I want is to merge these 2 apk into a single project ? Can anyone help me.This will be really helpful.
Thanks i...
I have a class that extends View. I override the onDraw method and allow the user to draw on the screen. I am at the point where I want to save this view as an image. I Can use buildDrawingCache and getDrawingCache to create a bitmap that I can write to the SD card. However, the image is not good quality at a large size, it has jagge...
I am writing a home screen widget and want to update the home screen widget when the device orientation changes from portrait to landscape or the other way. How can I make it?
Currently, I tried to reigster to CONFIGURATION_CHANGED action like the code below, but the Android didn't allow me to do that by saying "IntentReceiver component...
Hey all-
I am working on an Android app that utilizes the Google Maps API MapView, MapController, MapActivity, and ItemizedOverlay. I am basically trying to recreate certain functionalities of the Maps app (damn Google for not providing speech bubbles—for lack of a better name—for items!), particularly those speech bubbles.
I have an i...
Hi there
I'm trying to get from an Android Uri to a byte array.
I have the following code, but it keeps telling me that the byte array is 61 bytes long, even though the file is quite large - so I think it may be turning the Uri string into a byte array, rather than the file :(
Log.d(LOG_TAG, "fileUriString = " + fileUriString);
U...
I am trying to figure out what is the best way to go about creating dialogs. I can either create my own Dialog class (which, to me, is more clean and organized), or I can use AlertDialog.Builder (which would be done inline, and funky looking)... What are the positivies and negatives of either implementation? The only thing I can think o...
Hello. Using an Android Dev Phone 2, I'm using the GsmCellLocation.getCid() method to get the Cell ID on my network. When I run the command and get all the CellIDs for
the NeighboringCellInfo I get this values:
597195726
597185722
597195718
597110191
597101100
597175726
I'm running this using the SDK 1.6.
The problem is that...
Hi,
I am trying speech recognition feature on android emulator but when I try to launch recognizer intent on my emulator with 2.1, no activity is present. Why is it not available out of the box? Is it normal? Is it possible to install support?
Thanks
...
Hi, is it possible to create a skewed shape button?
(i.e like a stripe shape from bottom left of screen to top right of screen instead of the regular square or rectangle shape button)?
Something like this image http://www.codeproject.com/KB/silverlight/SilverLightFAQPart2/9.JPG
And I need to make sure the clickable area is also just the...
I have only .APK file of PDF Viewer and my requirement is to use pdf viewer for reading document called through Web API . Is there any possibility to integrate these two in same package apart from source code ?
Waiting for reply. Thnaks in advance.
Regards,
Praween
...
Do I need to use a service like Skyhook if I want geolocation in my Android App over wi-fi or will it work out-of-the-box like with an iPhone?
...