[This process was accomplished using Ubuntu 12.04 LTS and IntelliJ IDEA 13]
Install Java:
http://lucastipss.blogspot.com.br/2013/11/how-to-installupdate-java.html
Download Android SDK:
https://developer.android.com/sdk/index.html
To download the Target devices:
"run tools/android, under android_sdk_YOUR_OS, to retrieve the targets,
check the option that says “force https to be fetched using http” under
settings. And finally, under “Available packages,” select the version
of Android you want. ", author.
Download IntelliJ community edition:
http://www.jetbrains.com/idea/download/
Then, extract the folder where you want to be the path to the installation.
Apply the rights to run the executable:
sudo chmod +x [path to the installation]/bin/idea.sh
Do this process to increase the limit
http://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
Done!
To run the IDE, just run:
./[path to the installation]/bin/idea.sh
If you want, you can create an icon through the application Alacarte:
http://lucastipss.blogspot.com.br/2013/11/ubuntu-how-to-add-application-to.html
Showing posts with label android. Show all posts
Showing posts with label android. Show all posts
Friday, December 13, 2013
Tuesday, November 12, 2013
Android: How to install and import Library Support v7 to your project
[process accomplished using Ubuntu 12.04 LTS + Eclipse (from ADT Bundle)]
Add the library to your application project:
A picture is worth a thousand words:
You can follow this link too:
http://developer.android.com/tools/support-library/setup.html#download
- Make sure you have downloaded the Android Support Library using the SDK Manager.
- Create a library project and ensure the required JAR files are included in the project's
build path:
- Select File > Import.
- Select Existing Android Code Into Workspace and click Next. (without copying files)
- Browse to the SDK installation directory and then to the Support Library folder.
For example, if you are adding the
appcompat
project, browse to<sdk>/extras/android/support/v7/appcompat/
. - Click Finish to import the project. For the v7 appcompat project, you should now see a new project titled android-support-v7-appcompat.
- In the new library project, expand the
libs/
folder, right-click each.jar
file and select Build Path > Add to Build Path. For example, when creating the the v7 appcompat project, add both theandroid-support-v4.jar
andandroid-support-v7-appcompat.jar
files to the build path. (don't import v4 now. It could be create incompatibilities if your project already imported it). - Right-click the library project folder and select Build Path > Configure Build Path.
- In the Order and Export tab, check the
.jar
files you just added to the build path, so they are available to projects that depend on this library project. For example, theappcompat
project requires you to export both theandroid-support-v4.jar
andandroid-support-v7-appcompat.jar
files.(don't check v4 now. It could be create incompatibilities if your project already did it). - Uncheck Android Dependencies.
- Click OK to complete the changes.
Add the library to your application project:
- In the Project Explorer, right-click your project and select Properties.
- In the category panel on the left side of the dialog, select Android.
- In the Library pane, click the Add button.
- Select the library project and click OK. For example, the
appcompat
project should be listed as android-support-v7-appcompat. - In the properties window, click OK.
A picture is worth a thousand words:
You can follow this link too:
http://developer.android.com/tools/support-library/setup.html#download
Thursday, October 24, 2013
Android Development: How to make a custom ListView item
Tutorial to make the view (without buttons and functions):
http://hmkcode.com/android-custom-listview-items-row/
http://hmkcode.com/android-custom-listview-items-row/
Android Development: To change the titlebar background color
Notes:
the color setted was light gray
For <api 11, the attribute changed was windowTitleBackgroundStyle
For >api 11, actionBarStyle
Add to the application tag, on AndroidManifest.xml:
android:theme="@style/ThemeSelector"
On values/styles.xml, it was added:
<style name="ThemeSelector" parent="android:Theme.Light">
<item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>
</style>
<style name="WindowTitleBackground">
<item name="android:background">#E0E0E0</item>
</style>
On values-v11/styles.xml, add:
<style name="ThemeSelector" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
<style name="ActionBar" parent="android:style/Widget.Holo.ActionBar">
<item name="android:background">#E0E0E0</item>
</style>
the color setted was light gray
For <api 11, the attribute changed was windowTitleBackgroundStyle
For >api 11, actionBarStyle
Add to the application tag, on AndroidManifest.xml:
android:theme="@style/ThemeSelector"
On values/styles.xml, it was added:
<style name="ThemeSelector" parent="android:Theme.Light">
<item name="android:windowTitleBackgroundStyle">@style/WindowTitleBackground</item>
</style>
<style name="WindowTitleBackground">
<item name="android:background">#E0E0E0</item>
</style>
On values-v11/styles.xml, add:
<style name="ThemeSelector" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
<style name="ActionBar" parent="android:style/Widget.Holo.ActionBar">
<item name="android:background">#E0E0E0</item>
</style>
Subscribe to:
Posts (Atom)