Questions tagged [android-2.1-eclair]

For issues relating to developing with the Android SDK, version 2.1.

Android is Google's software stack for mobile devices. Please use the Android-specific tags such as [android-intent], not [intent]. For non-developer questions, see https://android.stackexchange.com.

96 questions
0
votes
1 answer

findViewById returns null for anything if mapview is included in parent layout

I've got a strange issue in that findViewById will return null for anything, if I use an include in my layout. This is my onCreate(), the activity extends MapActivity @Override public void onCreate(Bundle bundle) { …
Jimmy
  • 15,225
  • 38
  • 120
  • 211
0
votes
2 answers

Android 2.1 device to remote mysql database connection

I am developing an app that should connect to some server machine and access to a database on it. I have followed various tutorials online and now I am confused. Can someone please tell me what is the way of achieving this? webviews php server…
dramaticlook
  • 521
  • 6
  • 33
0
votes
1 answer

AdMob ad in onCreate OK, but disappears if you return to activity, why?

I've added an ad to my activity like follows : @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.languageselection); // Create the adView adView = new…
Jimmy
  • 15,225
  • 38
  • 120
  • 211
0
votes
2 answers

NullPointerException in onResume, related to AdMob but no idea why

I'm getting a nullpointer exception in the following code in my application : @Override protected void onResume() { super.onResume(); //To change body of overridden methods use File | Settings | File Templates. // Create the adView …
Jimmy
  • 15,225
  • 38
  • 120
  • 211
0
votes
1 answer

Is there anyway to put a JOIN conditions using URIs using Android Programming?

I implemented a small application which will list all the SMS from INBOX and displays both the Contact number and Name. I have to use two URIs, one is to get the SMS and the other is to get the Contact information related to that SMS. This approach…
User 1034
  • 8,145
  • 25
  • 67
  • 88
0
votes
1 answer

Is AudioManager.OnAudioFocusChangeListener supported in Android version 2.1?

As per the title, is AudioManager.OnAudioFocusChangeListener supported in Android version 2.1?
ibtMubarak
  • 45
  • 8
0
votes
1 answer

Cannot get my Android Phone (2.1) to be recognized by Eclipse in MacOSX 10.6

I'm having trouble getting Eclipse as well as adb to recognize by device. I have followed the instructions here, with no luck. I have turned on USB Debugging and connected my phone via the USB cable provided... I have also turned it on and off, as…
shadrx
  • 921
  • 1
  • 8
  • 22
0
votes
1 answer

Tab Key on Android Hard Keyboard

How can I disable a tab key on a form so that it goes to the next button when press. This is a hardware Tab key on a qwerty hardware keyboard.
0
votes
1 answer

Android 2.1 browser not loading css for mobile site

I have created a mobile site which uses django for the backend. The content is very simple and I am loading a simple css file around 12kb and four javascript files (total size 120kb). When I start navigating in the website the css loads correctly…
FoF
  • 195
  • 8
0
votes
1 answer

Is Robolectric able to assert that methods have been invoked?

I've got a button defined in my layout as follows :
0
votes
4 answers

problem in working on Date

I want to convert String to date object I used this code to convert try{ SimpleDateFormat parse = new SimpleDateFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"); SimpleDateFormat formatter = new…
user878588
  • 59
  • 9
0
votes
1 answer

How does an android test project have visibility on classes from the main project?

I'm trying to understand how testing can be applied in android and have followed this walkthrough on the Google site. I've created a project for the application itself via the wizard in IntelliJ. Then I've created a test project using the following…
Jimmy
  • 15,225
  • 38
  • 120
  • 211
0
votes
1 answer

Android HTC Hero not reporting back correct FeatureInfo

I'm having a strange problem with my HTC Hero 2.1 model=HERO200 manufacturer=HTC APILevel=7 It is not reporting back that it has a hardware microphone. Here is my code to check for Features. public void onCreate(Bundle savedInstanceState) { …
Bernie Perez
  • 12,073
  • 13
  • 41
  • 54
0
votes
1 answer

why tablelayout's layout_width and _height is not covering the whole area of samsung tablet's screen?

Hi to all, i have written something like this in the xml file
Sourabh
  • 5,050
  • 9
  • 28
  • 40
0
votes
1 answer

Javascript injection problem in Android 2.1 emulator but fine in 2.2

I'm trying to dynamically inject some CSS into a webpage loaded into an Android WebView. I've distilled the problem down to this HTML which if you insert into the body of a plain HTML page adds red boxes to the elements on the page on Android 2.2…