android

java.lang.NullPointerException at android.content.ContextWrapper.getPackageManager

Hi all, i am getting this error java.lang.NullPointerException at android.content.ContextWrapper.getPackageManager when am trying to get list of all installed applications on the device. Well let me explain what my program is doing. I have a server that starts when my application is started, and the client pings the server and asks to...

Android - how to get location of friend

Is there a way I can access the data in Google Latitude to return the location of a fellow Latitude user? ...

android Service needs to handle connection failure - how?

I've got an app that retrieves data on a regular basis from the internet (3 times a week). The data on the server is available via an XML api (which I built) and which works without any problem. However, some of the users handsets are not on/connected when the call is made. What is the best way to handle this lack of net connection fa...

Do you know a good android rendering engine?

Hello. What is a rendering engine? Is there any for Android? Thanks. ...

Android Programming and Java

I had newly started Android Programming. It is known to me that the Android Programming is purely based on the Core Java. Now I wonder that Is it possible for person to work on Application Development in "Core Java" or "Advanced Java" if the person is nicely familiar with the Android Programming only????? I mean if he tries to learn or ...

Are subtitles supported in any of the native video controls?

I'm writing an application with some embedded video content, it's Android 2.2 that I'm targetting. I need to show localized subtitles for the video content. The video content can be mp4 or 3gp video, played from the SD card. There are some third party video players out there that already support subtitles, but I haven't seen any open s...

OpenGL ES glBlendFunc hardware reqs

After trying out various combinations for the glBlendFunc, I've noticed that most of them have no effect on my phone (HTC Desire) while they work just fine in the emulator. On the phone, only 0+1, 1+0, 1+1 have any visible effect, while all other combinations seem to be ignored. Is this a hardware limitation? P.S. I'm running my tests o...

Problem with Timer and schedule, Android

I am just learning and exercising @ Android, and I tried to make a TextView display the current time, meaning the TextView gets updated every second. Now I know there are probably loads of better ways - Calendar's, DigitalClocks and other widgets to do this properly, but as I said, I am merely training. My problem is that my "schedule"...

Android How to set a sound as ringtone with long press on button

How do i set the sound as ringtone with long press on the button? At the moment it only works on sound4 but not sound5 package com.test.soundboard; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream;import android.view.ContextMenu.ContextMe...

Alarm In Android

public class Alarm extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Intent intent = new Intent(this, AlarmReceiver.class); PendingIntent pendingIn...

RelativeLayout height to fill remaining space

I have the following layout in my xml file: <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <FrameLayout android:id="@+id/logoLayout" android:layout_width="fill_parent" android:layout_height="wrap_content"> -- some images </FrameLa...

HELP ANDROID : AlertDialog from call screen

Hello everyone, I thank in advance all those who read this and who will try to help me. So my problem is that I want to display an alert in the call screen when the user initiates a call. Currently I have: - A class MyAlert extends Activity to view and process the alert - A class CallReceiver extends BroadCastReceiver to process the c...

my app is not for all devices in market

Hi at all. Today, I placed our new app onto the market store. It can be found by most mobile phones - unfortunately, it cannot be detected by one specific model which is used by one of our customers. It is the Vodafone 845, with a small screen (240x320p) and low density (120 dpi). It's running with Android 2.1, updated version (i.e. SDK...

Increment counter w.r.t date.

Hi, i am currently working on anppication where i need to increment a counter depending on date. i mean i want to send 3 sms per day. How can in implement this feature. Thanks in advance. ...

Android LunarLander and JetBoy Example Differences

Hallo, I noticed that the keypress handling ('onKeyUp' etc) in the SDK LunarLander example is in the View class, whereas in the JetBoy example it is in the Activity class. Are there any advantages/disadvantages to either solution? My own thoughts would be that it would be nicer to put all input handling (Key, Click & Touch) into the Ac...

Querying latest application version from the Android Market

Can I query the Android Market for the latest version of my application in code? I would like to show an update notification for the user when a new version is available. Related questions: http://stackoverflow.com/questions/2468449/process-in-updating-my-app-in-the-market http://stackoverflow.com/questions/3057771/is-there-a-way-to-a...

TextView in List is cut off

I have a Custom ListView with an imageview and 2 TextViews above each other next to the imageview. The bottom textView hold a description of the title, but it it cut off by the list. http://tinypic.com/r/28tawrc/7 - what I get this is what I have in my "row.xml": <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="htt...

Android LunarLander and JetBoy Thread source

Hallo, Is there a reason why the Thread class in the SDK LunarLander and JetBoy examples are not each in a separate java file, rather than being inside the View file? It would make things a bit clearer, IMHO. Am I missing something? Frink ...

Android ListView is not expanding as intended

My scenario is like this: <ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent" android:scrollbars="vertical" android:background="#ffffeb"> <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent...

Is/Are there any standard package structuring/heirarchy practices for Android?

When developing J2EE web applications I would typically organise my package structure in the following way com.jameselsey.<applicationName>. Controller - Controllers/Actions go here Service - transactional service classes, called by Controllers Domain - My domain classes/objects that the application uses DAO - abstract DAO layer DAOIm...