I have an Activity calling a Service defined in IDownloaderService.aidl:
public class Downloader extends Activity {
IDownloaderService downloader = null;
// ...
In Downloader.onCreate(Bundle) I tried to bindService
Intent serviceIntent = new Intent(this, DownloaderService.class);
if (bindService(serviceIntent, sc, BIND_AUTO_CREATE))...
hello all,
i have a aplication on the android market , in wich exceptions and errors are catched and sent to me by acra.
But i receive quite a lot out of memory errors..
In different kind of classes...some my app, some general java..
Does this always mean there is a problem in my app, or can it also be the phone ran out of memory due ...
Hi,
I'm new to android... having trouble trying to open a URL from a live wallpaper..
Code to open the url:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
Activity activity = new Activity();
activity.startActivity(intent);
But I just get a Nullpointer...
Hi,
I'm using the code shown below to get an updated value for location every time a button is clicked. When my activity is resumed I get an update every second, so that when I call getLastKnownLocation I expect to have a location that have been updated in the last second.
Is that the correct way to do that?
I would expect the onLocat...
In my application, I am trying to pass a serializable object through an intent to another activity. The intent is not entirely created by me, it is created and passed through a search suggestion.
In the content provider for the search suggestion, the object is created and placed in the SUGGEST_COLUMN_INTENT_EXTRA_DATA column of the Mat...
Is there any way to make it so my app can set itself as the default Home app without any user interaction?
...
I want to make a shape with with left-top rounded corner and left-bottom rounded corner:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#555555"/>
<stroke android:width="3dp"
android:color="#555555"
/>
<padding...
Hello,
I have a camera by Cisco and like to stream it's video stream to my android phone.
It's coded in MPEG4 so there should be no problem, but it's not working anymore (it worked with another camera a few weeks ago). Any idea what I might try ? I don't know what's wrong here.
I/ActivityManager( 79): Starting activity: Intent { cmp=c...
I'd like to recognize arrival of new MMS msg (after it is downloaded to inbox). I am doing the following:
private MMSContentObserver mMmsCO;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
h = new Handler();
mMmsCO = new MMSContentObserver(h);
getContentResolver().registerContentObs...
Does anyone have any idea (numbers?) that shows the difference between reading image files from a SQLLite database vs reading it directly from the file system in a SD card. Which one is faster ?
Thanks.
...
I'm developing an application that shows a path on a map, determined by a KML file. Specifically, in the MapActivity that is starting the map:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
MapView mapView = (MapView) findViewById(R.id.mapview);
mapVi...
Hi All,
My app has a single entry activity called "Main". In "Main" I call one of three
other activities A, B, or C (based on a preference) and then immediately exit/finish
"Main" so that only A, B, or C are active.
I also have a permanent notification in the notification bar
that users can pull down (at any time) to conveni...
I'm making a scrolling game on Android and am having a hard time figuring out why the code below does not decrement past 0.
Objects start at the end of the screen (so the x position is equal to the width of the screen) the objects move accross the screen by decrementing their x positions. I want them to scroll off of the screen, but whe...
Hi folks!
I'm currently developing an app in android that is accessing wifi values, that is, the application needs to scan for all access point and their specific signal strengths.
I know that I have to extend the class BroadcastReceiver overwriting the method BroadcastReceiver.onReceive(Context context, Intent intent) which is called wh...
So, I know that this has been done with a few Android apps before, but I cannot for the life of me figure out how, since it's not currently possible through the API.
How does one adjust the playback rate of a sound played through MediaPlayer; either with or without adjusting the pitch is fine for now, though the latter is definitely pre...
Hi,
I'm developing an application that will most likely be preinstalled on devices. It will be also available on Market. Is there a way to update those instances that are not downloaded through Market, since Market won't notify users about an update.
I was thinking about, as suggested here, trying to contact my site periodically, and ...
Hello everyone,
I am trying to build a windwos SDK for Android 2.1 on WIndows XP, I called the script at ./development/build/tools/make_windows_sdk.sh, however, I met the errors : Target Java module does not define any source or resource files, so I could not proceed. Does anyone know about it? any help will be truly appreciated.
Thank...
I have an ImageView that is twice the height of a normale screen ( 960 dip). I would like to scroll it nicely up and down on the screen. The bottom of the screen should contain a bottom. I have tried various combinations of ScrollView and Imageviews without any success. I have also thinkered with the :isScrollContainer attribute without ...
I am working on an app that has multiple tabs. In the first tab the user will enter values. In the other tabs it will display the results of calculations based off of those values.
Like in tab 1, the user will enter "3" and "2".
In tab 2, the program will add them and display "5".
In tab 2 how do I access the ints "3" and "2"?
Thanks
...
What are some things you wish you had known about Android when you first started out or before you published your first app on the market? I am nearing completion on my first and am starting to make sure I have crossed my proverbial Ts and dotted the Is
...