Hi
I'm trying create a scaling layout for an Android application. The whole screen should contain two areas. The top 3/4 of the screen should be a MapView showing a certain area. The remaining quarter of the screen should contain some textual information to certain places shown on the map.
So now I'm wondering what is the best practi...
I have an application published in the Android Market. Its target is 1.6 and its minSdkVersion is 1.5. The only persmission it uses is INTERNET. My Manifest file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="XXX"
android:versionCode="1"
...
I'm having some trouble accessing attributes like DURATION and DATE_MODIFIED of video and image. My app access these attributes for both type of data but if I take a picture or shoot a video the related attributes are not immediately available through content provider e.g. for DURATION for that specific video it returns 0.
If I restart ...
Hello All,
I have successfully implemented my AutoCompleteTextView which is based off an sqlite query and placed in an array adapter. Thats all working beautifully, however I cant et my onclickevent working. I just want to create an intent to pass the selected value to a new activity. I know how to create an onclicklistener I am just un...
I am working on a music player where I store the current play queue in an arraylist and users can click a little button to view the current play queue. In the AlertDialog they can click on one of the items to jump to that song in the queue and additionally, I have an ImageButton that allows them to remove items from the play queue. I am ...
I'm not sure about older versions of Android, but in Android 2.1 and 2.2, the system clock application doesn't have its own background. Instead, it uses the system's background. Does anyone know how to accomplish this?
...
I have a widget that displays the picture of some of my contacts and I would like to display the QuickContact card when the user taps on one of the pictures. I know I should be using the method ContactsContract.QuickContact.showQuickContact(), but it requires a View or a Rect as one of the input parameters. My problem is that Widgets onl...
Hi. i am using the following method in a new application i'm developing.
there is a main activity, which instantiates different classes that extends RelativeLayout, and i'm using setContentView to switch between the different modules of the application.
i wonder if this is a good approach or necesarily i have to use different activitie...
Lets say I have a database with tables called box, item, and box_contents and I want to get any item that is contained in the box_content table (all items, but discard the ones that arent in the box_contents table). What would be the correct sqllite syntax for this?
...
Please bear with me for a moment. I'm working on a master's thesis and want to demonstrate how bad a malicious application can be. I'm looking for a pre-installed application on the application on the android emulator or an application that has "brick" permission on the device. Rather than bricking my device, I would much prefer bricki...
My website uses Facebook Connect for authentication on the desktop and mobile sites. When a user clicks the Facebook button, the browser opens a popup window where the user can login to Facebook. When the user logs in, the window closes and messages the main window to go on.
This works great on iPhone. A new window opens and is brought ...
How to display current location with out using onLocationChanged method
...
After you attach an inputstream to am MMS message on a WAP server, does anyone have a suggestible Java api to parse the message?
Someone may recommend the WMA of JavaMe, but JavaME is not the Java implementation on Android. I have tried using various .jar apis from sourceforge but none of them compile properly when added to the build pa...
The problem is probably quite simple for some of you:
I have a 7zip archive which contains some hundred files seperated into different directories. The target is to download it from a FTP server and then extract it on the phone.
My problem is that the 7zip SDK contains not really a lot. I am looking for examples, tutorials and snippets ...
I'm considering developing apps for Android and Windows Phone 7 that allow the user to read content from an online producer (newspaper/magazine/blogs etc). This provider has a REST API that should allow for straightforward access to the content. A few questions I have:
I saw an OData demo, where getting data from a feed was super easy,...
The layout xml is as below. I have a RelativeLayout, which contains a TextView. The OnClick listener is set on RelativeLayout. The RelativeLayout has a selector background. What I want is, when user clicks on the RelativeLayout, the background of the RelativeLayout should change, and the color of the text of the TextView should change to...
please give solution very fast.
...
I have an activity that implements LocationListener in my application and my onLocationChanged method has been working perfectly up until recently. For some reason the Location object being passed into the method is null. My question is, why is it null? Does it pass in a null object if it cannot acquire a location?
My GPS is on and I...
I've included the relevant portion in my manifest:
<meta-data android:value="123456789" android:name="ADMOB_PUBLISHER_ID" />
<!-- Track Market installs from AdMob ads -->
<receiver android:name="com.admob.android.ads.analytics.InstallReceiver" android:exported="true">
<intent-fil...
I am developing a simple android application using eclipse. I wrote a JUnit TestCase for a class I wrote. One particular test compares two 2d arrays so see if they are equal. If they are not equal the test fails. When the test fails I would like to print out the contents of the offending array to see what went wrong. I have tried Sys...