Recent Blog Entries
-
Errors running builder 'Android Pre Compiler' on project
If you have this error Errors running builder 'Android Pre Compiler' on project 'XXX'
Than you might be running ADT 21
This is one possible workaround until the fix
Open properties of project in Eclipse Then Resources -> Resource filters.
Click the "Add..." button -> Check "Exclude all", "Files and folders", "All children". In the text entry box input ".svn" (without quotes). Restart Eclipse.
Tags: Android, Programming, Eclipse
Posted Apr 19, 2013, 12:08 AM by Pedro Rainho
-
Eclipse fix black toolip in Ubuntu 12.04+
After Install Ubuntu 12.04 I've realize that in Eclipse tooltips were with a black background. After a little googling I've found the solution.Edit file /usr/share/themes/Ambiance/gtk-2.0/gtkrcThis file is used by theme Ambiance in ubuntu. If you use another theme you will have a diferent file path. Note themes are instaled here /usr/share/themesAfter edit this file locate in the first lines:tooltip_fg_colortooltip_bg_colorThese are the foreground and background colors of tooltips. Change the color to the values that you like. After a restart you will have the eclipse black tooltip fixed.Tags; Eclipse, Ubuntu,
Posted Dec 6, 2012, 9:31 AM by Pedro Rainho
-
Path.combine in Java
In Dotnet and in particular in C# you can to Path.Combinepublic static string Combine(
string path1,
string path2
);This is a simple way to do something similar in Java:
public final class Path { private Path() { } public static String combine(final String... paths){ if(paths == null || paths.length == 0) { return null; } File file = new File(paths[0]); final int len = paths.length; for (int i = 1; i < len; i++) { file = new File(file, paths[i]); } return file.getPath(); } }Tags; Java, Dotnet
Posted Dec 6, 2012, 9:30 AM by Pedro Rainho
-
Eclipse copy preferences between workspaces
From your existing workspace,
File->Export...->General->Preferences, check Export all, and choose file to save them to (prefs.epf for example)Startup Eclipse in a new workspace, File->Import...->General->Preferences , choose your file (prefs.epf), check import allTags; Eclipse
Posted Dec 5, 2012, 11:39 PM by Pedro Rainho
-
Alpha numeric input filter
In Android you should know that it's possible to specify input filters in EditText.
You should also know that it's possible to create custom input filters. In this post I wil show how to create an Alpha numeric input filter.
First create a class that implements InputFilter
In this class you will have to implement the filter method.
In this method you will have to see if chars in source argument are valid. Every time a char is not valid you will have to return "" and ever time a char is valid you will have to return null.
this is a sample of what should be done:
public class AlphaNumericFilter implements InputFilter {
private Context _context;
public AlphaNumericFilter(Context ...
Posted Oct 4, 2012, 3:58 PM by Pedro Rainho
Recent Application Updates:
Whip
If you remember Big Bang Theory "The Whip App" this application does the same as the original, it allows your phone to be a virtual whip. It's very good for a funny prank!
This application turn your phone/tablet screen into the best and most completed mirror in the market.
Mirror is probably the most usefull application in the market and With it you can left your pocket mirror at home, because you won't need it or even miss it.
Nuclear Fart it's a great app. This app not only has fart sounds but allow users to record and share their farts with other users.
If you are a women and you feel like you need a good massage or an orgasm this app is the perfect app for you. Be the first to know why Women's Pleasure has more that 100000 individual downloads in just a few months.
Don't spend money on a masseur or on a dildo or any other sex tool, download this app and you will have your personal masseur or your favorite sex toy in your phone.
Women's Pleasure uses the phone vibrator and unlike other apps, Women Pleasure has dozens of vibration combinations allowing lots and lots of pleasure.
Women's Pleasure also gives you full control over your phone's vibrator. This feature allows for an endless amount of combinations for the perfect massage.
The Flashlight application is the most complete, intuitive, usefull and simple to use. It allows you to convert your phone/tablet into a handy flashlight either using screen or camera LED/flash as a torch (camera LED is not present in most devices).
This is the application that should be on your phone/tablet and should be used everytime you need a flashlight. It can be used for instance as a night light, as reading light or even as an emergency light.
APKTranslator
APKTranslator it's a command line app that that uses Bing Translator API to translate strings.xml into various languages.
|
|