Blog Archives

Android studio 0.2.6 Default Activity Not Found

Updated Android Studio to 0.2.6 you can run into this error: “Error: Default activity not found”, almost every line was red and some other irrelevant error. Nothing was changed in the project, only did the update from 0.2.5 to 0.2.6.

Posted in Android, ErrorFix Tagged with: ,

Android Studio 0.1.6 Cannot Find Symbol location Class R

After updating Android Studio 0.1.6 it sometimes can’t find R and you have to rebuild your project. java /*.java : cannot find symbol location : class com.*.R A workaround: Module project settings -> Dependencies -> move one of the item

Posted in Android, ErrorFix Tagged with: , ,

Android Package org.junit Does Not Exist

Ran into this error when importing an Android into Android Studio. In this case ActionbarSherlock http://actionbarsherlock.com/ java: C:\..\Android\SherlockActionbar\test\com\actionbarsherlock\internal\ManifestParsingTest.java:3 package org.junit does not exist … package org.hamcrest does not exist … static import only from classes and interfaces Turned out the “test”

Posted in Android, ErrorFix Tagged with: ,

Eclipse ADT rev 22 Crashes My App

It was one of those days, you realize there is an update and you think, yeah sure, what can go wrong. So the problem at hand. Running Eclipse (Juno, version shouldn’t matter) with ADT, Android Development Tools, and you updated the

Posted in Android, ErrorFix Tagged with: , ,

Xamarin Application Could Not Be Started

Encounter this error today while using Xamarin. The application could not be started. Ensure that the application has been installed to the target device and has a launchable activity (MainLauncher = true). Additionally, check Build -> Configuration Manager to ensure this

Posted in Android, Mac, Windows Tagged with: ,

Android TextView Strike

To make a strike in your TextView in Android use the setPaintFlags like this: TextView tv=(TextView) v.findViewById(android.R.id.text1); tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); If you’re using Html.fromHtml to set the text you can’t unfortunately use the <strike> as this is not supported for Android

Posted in Android, Tips and Tricks Tagged with: , ,

Eclipse XML Layout Text Editor Broken

When editing xml layout file for Android in Eclipse you might encounter the xml being wrong, flipping and broken. When changing tabs between the graphical layout and the xml file, the lines of code will start disappearing or moving around. It

Posted in Android, ErrorFix Tagged with: , ,

Android 4.2 Enable Developer Options

Developer Options is gone, almost. It’s not just on Nexus 7 or Galaxy Nexus. Google has hidden the developer settings in the latest version of Jelly Bean, 4.2 for some reason. You can however easily enable it again. Go to the

Posted in Android, ErrorFix Tagged with: ,

Android Set EditText Cursor Color

To set the EditText in Android you first need to set the textCursorDrawable to null. This is needed for Android 3.2 and up. android:textCursorDrawable=”@null” Setting this will result in the cursor color will be set to the textColor android:textColor  

Posted in Android, Tips and Tricks Tagged with: , ,

Android Resource Entry Is Already Defined

When you compile an android project from its xml resource, Eclipse considers it as executing xml file and so you get some output from it, in the same name of the xml with .out.xml extension. And you’ll end up with

Posted in Android, ErrorFix Tagged with: , , ,