Thursday, January 30, 2014

Android Application Programming Overview

By Admin   Posted at  1:52 PM   Programming Languages 2 comments

Hello Guys,
Welcome to my first tutorial on android application programming. First lets see a quick overview of android itself, then we'll move on to necessary environmental setup. So without wasting our time lets dig in it, here we go:

What is Android?


Android is an operating system based on the Linux kernel, and designed primarily for touchscreen mobile devices such as smartphones and tablet computers. Initially developed by Android, Inc., which Google backed financially and later bought in 2005, Android was unveiled in 2007 along with the founding of the Open Handset Alliance: a consortium of hardware, software, and telecommunication companies devoted to advancing open standards for mobile devices. The first publicly available smartphone running Android, the HTC Dream, was released on October 22, 2008.

It is world's most popular mobile OS:
Android powers more than a billion phones and tablets around the world. It’s customizable, yet easy to use, and since it's made by Google, it works seamlessly with all your favorite Google apps.

Open Source:
Android offers a unified approach to application development for mobile devices which means developers need only develop for Android, and their applications should be able to run on different devices powered by Android. The source code for Android is available under free and open source software licenses. Google publishes most of the code under the Apache License version 2.0 and the rest, Linux kernel changes, under the GNU General Public License version 2.

Features of Android:

Following is a list of features in the Android operating system:




Android Applications:

Android has a growing selection of third party applications, which can be acquired by users either through an app store such as Google Play or theAmazon Appstore, or by downloading and installing
the application's APK file from a third-party site.
The Play Store application allows users to browse, download and update apps published by Google and third-party developers, and is pre-installed on devices that comply with Google's compatibility requirements. The app filters the list of available applications to those that are compatible with the user's device, and developers may restrict their applications to particular carriers or countries for business reasons. Purchases of unwanted applications can be refunded within 15 minutes of the time of download, and some carriers offer direct carrier billing for Google Play application purchases, where the cost of the application is added to the user's monthly bill. As of July 2013, there are more than one million applications available for Android in the Play Store.

So guys this is my very first post on Android Application Programming and Overview of Android OS.
This tutorial has been written with an aim to teach you how to develop and package Android application. I'll start from environment setup for Android application programming and we will also see How to configure Eclips IDE for the same.
#All Stats mentioned in this post are taken from Wikipedia. They are subjected to changes as android technology is growing very fast.

Wednesday, January 29, 2014

10 Tricks to Boost Your Productivity While Using Eclipse IDE

By Admin   Posted at  9:38 AM   HowTo 8 comments
Hi guys,
Lets see 10 tricks that I find out
as cited on eclipsesource.com to Boost Your Productivity While Using Eclipse IDE, which  are worth sharing with you folks.




What I felt from my personal experience is that those who have just begun using Eclipse or have had “some experience” have used Eclipse only as a text editor or handled it in a really heavy way. The main issue being that they have not yet learned about Eclipse’s capabilities and how to utilize its strong features.

So
here are the top ten things, which will make your programming life a lot simpler and increase your productivity.

1. Letting Eclipse do the typing - A great IDE must assist the developer in writing his code quite instantaneously. Eclipse does this using Refactoring's, Quick Fixes, Code Assist/Code completion and more.  

2. Type Filters (for PDE / RCP developers) - Type Filters take out suggestions for certain types (e.g. classes, interfaces) from the “Open Type” dialog, content assist and quick fix proposals. As an RCP/SWT developer you would not want suggestions for Swing components like Button, Label, etc. You can find this setting in: Preferences > Java > Appearance > Type Filters

3. Text File Encoding - The default setting for saving files in the Eclipse workspace is through the useof file encoding of the underlying operating system. But you generally want to make a platform independent application. For accommodating this, set the file encoding to UTF-8. Using UTF-8 will prevent problems with special characters if deployed to a system running a different OS, running your build on a UNIX machine or in case someone else works on the code by using a different OS.

4. Save automatically before build - One thing I noticed is that people (including me) are constantly hitting Ctrl+S to save or even worse — grabbing the mouse to hit the Save action in the toolbar. This behavior seems to originate from experiences where an application was started from the workspace without saving and of course, changes were then lost. You can save some keystrokes and mouse clicks by enabling Save automatically before build. This is in: Preferences > General > Workspace


5. Use “Step Filtering” for Debugging – Using “Step Filters” you can filter out types you do not want to see, or step through while debugging. This assists you in staying focused on the actual code and does not expose you to the inner workings where you may not have the source.
6. Always launch the previously launched application - This option is for ensuring that your last launched configuration is utilized. Mentioned in the default setting, Eclipse strives to determine the most appropriate configuration for the currently selected resource that can be quite irksome. Set this under: Preferences > Run/Debug > Launching

7. Storing Your Launch Configuration in a Project – A great deal of time is invested in creating a launch configuration. It can be stored as a file in one of your projects. This allows you to share it with colleagues and save them from reinventing the wheel. You can find it in preference in: Menu: Run > Run Configurations... > Launch Configuration Tab: Common

8. Making a Launch Configuration always appear in the Menu – In case you have various Launch Configurations, you can select your favorite ones and stick them permanently to your Launch/Debug menu. You can go to - Menu: Run > Run Configurations... > Launch Configuration Tab: Common

9. Organising imports on save - The imports are instantly added to the class file. However, changing or removing code might make some imports useless. To fix that, you can Organize Imports by pressing shift+crtl+o or shift+cmd+o on a Mac and your imports will be cleaned up. You can also enable Organize imports on save and Eclipse will take care of it instantly. This can be found in: Preferences > Java > Editor > Save Actions
10. Formatting edited lines on save - The code formatter in Eclipse is quite a handy feature ensuring the code appears consistent in your projects irrespective of who has written it. It can also be easily read and understood by anybody. However, formatting the entire file can mess up the difference between two versions of the file. You can find this in -Preferences > Java > Editor > Save Actions.

Hope these tweaks/tricks will help you improve your productivity with eclipse as it helped me even after roughly 4 years of break.
 
HBK Says, " Happy Codding Have Fun " folks.

Monday, January 27, 2014

How to Install BackTrack on Android Mobile and Tablet

By Admin   Posted at  2:09 PM   HowTo-Android No comments
Hi Guys,

Lets see How we can Install BackTrack on Android Mobile and Tablet:



BackTrack Linux is a fine example of a specialized Linux distribution. Its only purpose is to test your network, devices, and systems for security vulnerabilities. BackTrack is packed with every security and hacker tool used by security professionals and professional hackers. I
f you're looking for all of the tools in one place, this is it. 

BackTrack is one of my favorite OS. First reason is it is made by world class hackers and second one is all hacking tools are available and last but not list one, it is flavor of Linux butI can use it only on PC. Android is booming now these days... Now you can Install Back Track Linux OS on Android smartphones and tablets. Now it is possible to install and run Backtrack on your Android devices.


Requirements:
(1) Root
(2) 1GHZ processor (recommended)
(3) 512MB Ram (recommended)
(4) Android 1.6 or higher
(5) Back Track 5 (http://goo.gl/CVVHgu)
Kernel will loop device support (this is included in most custom ROM’s)
(6) SD card with at least 3.5GB of free space
(7) Data connection on your device


Following Android Apps:

1.BUSY BOX (https://play.google.com/store/apps/details?id=stericson.busybox&feature=search_result#?t=W251bGwsMSwxLDEsInN0ZXJpY3Nvbi5idXN5Ym94Il0.) : It acts like a installer and uninstaller.it needs root permission to run.it has CPU cores and can run Linux kernels on android. click here

2. Superuser (https://play.google.com/store/apps/details?id=com.noshufou.android.su&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5ub3NodWZvdS5hbmRyb2lkLnN1Il0.) : This app just grants a superuser power to your phone just like "su " does for Linux. click here

3. Terminal Emulator (https://play.google.com/store/apps/details?id=jackpal.androidterm&feature=search_result#?t=W251bGwsMSwxLDEsImphY2twYWwuYW5kcm9pZHRlcm0iXQ..) : Terminal Emulator is app that runs a terminal console in android. click here

4. Android VNC (https://play.google.com/store/apps/details?id=android.androidVNC&feature=search_result#?t=W251bGwsMSwxLDEsImFuZHJvaWQuYW5kcm9pZFZOQyJd) : Android VNC is a tool for viewing VNC in Android.

How to Install Backtrack on Android Tablet or Phone?


Download the complete set of files you need from here: 

http://goo.gl/CVVHgu

To your phones internal SDcard in a directory called “BT5″ (cAsE sEnSiTiVe)
Launch "Terminal Emulator" from your phone and type (everything after the $: or #: is user input):
$: su
#: cd sdcard
#: cd BT5
#: sh bootbt
#: export USER=root
#: vncpasswd
(make up a password"ex: toortoor")
#: tightvncserver -geometry 1280x720

While Backtrack is loaded (when you see a red “root@localhost“) start the VNC server by typing:root@localhost:~#: startvnc (stopvnc kills it)
Open 'AndroidVNC' and fill the form like this:
Nickname : BT5
Password : toortoor
Address : 127.0.0.1
Port : 5901

Connect it and you will see Backtrack 5 interface. Voila you just did it... Enjoy..!

Remember: Some of the Backtrack tools can’t work properly and do it for your own risk. I hope you can Install Backtrack on Android tablet without any problems, tell me if you get problems.



Back to top ↑
Connect with Us

WhatsApp Share

What they says

one of the best mobile technology blog
one of the best mobile technology blog
one of the best mobile technology blog
one of the best mobile technology blog

Licencing

© 2013 Andropedia : The Android Fulcrum ™. Distributed By Blogger Themes | WP Mythemeshop Converted by Bloggertheme9
Blogger templates. Proudly Powered by Blogger.