Setting up Android IDE: Difference between revisions

From WickyWiki
Line 46: Line 46:
* Project - clean
* Project - clean


On Ubunto the Javadoc background is black, to chang it can be done at OS level:
On Ubuntu the Javadoc background is black, links are difficult to read.
Changing this in Window>Preferences>General>appearance>Colors and Fonts>Java does not work, it works if we change the hint colors for Ubuntu OS:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
Line 60: Line 61:
sudo sed -i s/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc
sudo sed -i s/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc
</syntaxhighlight>
</syntaxhighlight>
* logout
* login


[[Category:Android]]
[[Category:Android]]
[[Category:201207]]
[[Category:201207]]

Revision as of 11:23, 31 August 2013

There are good tutorials to be found for setting up Android IDE:

Update: there are complete Eclipse+Android packages that you can unzip and use.

Currently the official guide will use Eclipse 3.6, if you want to use Eclipse 3.7 or later you might want to use this guide:

The official guide tells you to use intall sun java (sun-java6-jdk). As I don't have that installed by default I use openjdk (java-6-openjdk) Additional info:

Some optional pointers to improve performance of Eclipse:

  • modify /opt/eclipse/eclipse.ini increase startup memory:
-Xms64m
  • modify /opt/eclipse/eclipse.ini increase maximum memory:
-Xmx1024m
  • modify /opt/eclipse/eclipse.ini enable use of multiple processors:
-XX:-UseParallelGC
-XX:+AggressiveOpts
-XX:-UseConcMarkSweepGC
-XX:+UseFastAccessorMethods

Tips and tricks

  • Rotate the Android Virtual Device (AVD) with CTRL+F11/F12

Debug:

  • In AndroidManifest.xml add permission "android.permission.SET_DEBUG_APP"
  • Project - Clean

Set target, like 16=4.1.2, 17=4.2.2, 18=4.3 in:

  • modify AndroidManifest.xml
  • modify project.properties
  • Project - clean

On Ubuntu the Javadoc background is black, links are difficult to read. Changing this in Window>Preferences>General>appearance>Colors and Fonts>Java does not work, it works if we change the hint colors for Ubuntu OS:

#backup
sudo cp /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/settings.ini.backup
sudo cp /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-3.0/gtk.css.backup
sudo cp /usr/share/themes/Ambiance/gtk-2.0/gtkrc /usr/share/themes/Ambiance/gtk-2.0/gtkrc.backup

#foreground white => black
sudo sed -i s/tooltip_fg_color:#ffffff/tooltip_fg_color:#000000/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc

#background black => yellow
sudo sed -i s/tooltip_bg_color:#000000/tooltip_bg_color:#f5f5b5/g  /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-2.0/gtkrc
  • logout
  • login