Tag: eclipse

Can't set breakpoints in Eclipse

Following the Android notepad tutorials using Eclipse 3.4.2 on OSX 10.5.6. I’m instructed to set a breakpoint in one of the following ways: Double click on the gray bar to the left of the editor pane. this just brings up the “Add Bookmark” window Select “Toggle breakpoint” in the context menu the only options in […]

can't use Arrays.copyOfRange

I don’t seem to be able to access Arrays.copyOfRange in my Android project in Eclipse Indigo 3.7.1 On Ubuntu 11.10. My JRE is java-6-openjdk which I thought included Arrays.copyOfRange For example, if I have this code: int[] debug = new int[5]; int[] x = Arrays.copyOfRange(debug,0,4); Eclipse tells me The method copyOfRange(int[], int, int) is undefined […]

Invalid item in the dependencies list after importing Android project from Eclipse

After importing generic HelloWorld project generated with Android project wizard in Eclipse to IntelliJ IDEA CE I have two errors: invalid item ‘com.android.ide.eclipse.adt.ANDROID_FRAMEWORK’ in dependencies list invalid item ‘com.android.ide.eclipse.adt.LIBRARIES’ in dependencies list How to import a project correctly to avoid errors?

Difference between @string and @+string?

Sometimes, when I want to refer a value to a string reference I use @string/blabla, but sometimes, it gives me an error that I can run the code unless i change @string to @+string What’s the difference between them? Any answer would be so helpful. Thanks in Advance!

Android Studio AndroidManifest.xml vs build.gradle

If anyone could help me understand some things regarding Android Studio, it would be most enlightening. So, I have switched from Eclipse to Android Studio around a month ago and so far have only been working on my migrated Apps. As such, I have been tinkering around with only the AndroidManifest.xml file as was customary […]

How to change the minSDK Version in eclipse?

While creating a new android project in eclipse 3.5, i have selected Android 2.1 Update1 as build target. But i forgot to give the mini SDK version. Now when the build the project, its giving a warning message “WARNING: Application does not specify an API level requirement!Device API version is 8 (Android 2.2)“ The application […]

No project.properties file and NullPointerException during build of new android application

I’m having a horrible time figuring out a problem that makes it impossible for me to use the new android application wizard in ADT to create a new android project. First a little background. I’ve been using ADT (the ADT bundle) for about 6 months and haven’t had a problem. Because the current issue only […]

After I remove the apk, whenever I start Debug it tells me the package is not installed

I have my Emulator open, and using Command Prompt I remove my application. I didn’t closed the Emulator. Then I go to Eclipse and hit Debug, but doesn’t deploy the apk to the emulator, just tells me the package not yet registered with the system. New package not yet registered with the system. Waiting 3 […]

Move app to phone

yesterday I posted the question ‘How do I convert eclipse app for phone?’ I have used eclipse to design an android app which runs fine on the emulator and I now want to transfer it to my phone. Sixten Otto kindly offered some advice regarding how to test/debug my app on my phone straight from […]

Align Center Menu Item text in android

Using following code <item android:id=”@+id/text” android:title=”@string/mainMenu” android:enabled=”false” android:layout_gravity=”center”> </item> I have a style defined as <style name=”MenuTextStyle” parent=”@android:style/TextAppearance.Medium”> <item name=”android:textColor”>6F6B6B</item> <item name=”android:gravity”>center_horizontal</item> <item name=”android:textStyle”>bold</item> <item name=”android:textSize”>14sp</item> But the menu text still is not in the middle. How to make it center in middle?

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.