.

.

Tuesday, 23 October 2012

Using Eclipse to develop android app.



This document will help you set up the Eclipse IDE for Android platform development.
Note: if you are looking for information on how to use Eclipse to develop applications that run on Android, this is not the right page for you. You probably would find the Eclipse page on developer.android.com more useful.

Basic setup

First, it's important to make sure the regular Android development system is set up.
cd /path/to/android/root 
make
Important: You will still be using make to build the files you will actually run (in the emulator or on a device). You will be using Eclipse to edit files and verify that they compile, but when you want to run something you will need to make sure files are saved in Eclipse and run make in a shell. The Eclipse build is just for error checking.
Eclipse needs a list of directories to search for Java files. This is called the "Java Build Path" and can be set with the .classpath file. We have a sample version to start you off.
cd /path/to/android/root 
cp development/ide/eclipse/.classpath .
chmod u+w .classpath
Now edit that copy of .classpath, if necessary.

Increase Eclipse's Memory Settings

The Android project is large enough that Eclipse's Java VM sometimes runs out of memory while compiling it. Avoid this problem by editing the eclipse.ini file. On Apple OSX the eclipse.ini file is located at
/Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini
Memory-related defaults (as of Eclipse 3.4):
-Xms40m 
-Xmx256m 
-XX:MaxPermSize=256m
Recommended settings for Android development:
-Xms128m 
-Xmx512m 
-XX:MaxPermSize=256m
These settings set Eclipse's minimum Java heap size to 128MB, set the maximum Java heap size to 512MB, and keep the maximum permanent generation size at the default of 256MB.
Now start Eclipse:
eclipse
Now create a project for Android development:
1.      If Eclipse asks you for a workspace location, choose the default.
2.      If you have a "Welcome" screen, close it to reveal the Java perspective.
3.      File > New > Java Project
4.      Pick a project name, "android" or anything you like.
5.      Select "Create project from existing source", enter the path to your Android root directory, and click Finish.
6.      Wait while it sets up the project. (You'll see a subtle progress meter in the lower right corner.)
Once the project workspace is created, Eclipse should start building. In theory, it should build with no errors and you should be set to go. If necessary, uncheck and re-check Project Build Automatically to force a rebuild.
Note: Eclipse sometimes likes to add an import android.R statement at the top of your files that use resources, especially when you ask eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.

When You Sync

Every time you repo sync, or otherwise change files outside of Eclipse (especially the .classpath), you need to refresh Eclipse's view of things:
1.      Window > Show View > Navigator
2.      In the Navigator, right-click on the project name
3.      Click Refresh in the context menu

Adding Apps to the Build Path

The default .classpath includes the source to the core system and a sample set of apps, but might not include the particular app you may want to work on. To add an app, you must add the app's source directory. To do this inside Eclipse:
1.      Project > Properties
2.      Select "Java Build Path" from the left-hand menu.
3.      Choose the "Source" tab.
4.      Click "Add Folder..."
5.      Add your app's src directory.
6.      Click OK.
When you're done, the "source folder" path in the list should look like
android/packages/apps/YOURAPP/src
Depending on which app(s) you include, you may also need to include othersrc/main/java directories under android/dalvik/libcore. Do this if you find you cannot build with the default set.

Eclipse formatting

You can import files in development/ide/eclipse to make Eclipse follow the Android style rules.
1.      Select Window > Preferences > Java > Code Style.
2.      Use Formatter > Import to import android-formatting.xml.
3.      Organize Imports > Import to import android.importorder.

Debugging the emulator with Eclipse

You can also use eclipse to debug the emulator and step through code. First, start the emulator running:
cd /path/to/android/root 
. build/envsetup.sh 
lunch 1    
make       
emulator
If the emulator is running, you should see a picture of a phone.
In another shell, start DDMS (the Dalvik debug manager):
cd /path/to/android/root 
ddms
You should see a splufty debugging console.
Now, in eclipse, you can attach to the emulator:
1.      Run > Open Debug Dialog...
2.      Right-click "Remote Java Application", select "New".
3.      Pick a name, i.e. "android-debug" or anything you like.
4.      Set the "Project" to your project name.
5.      Keep the Host set to "localhost", but change Port to 8700.
6.      Click the "Debug" button and you should be all set.
Note that port 8700 is attached to whatever process is currently selected in the DDMS console, so you need to sure that DDMS has selected the process you want to debug.
You may need to open the Debug perspective (next to the "Java" perspective icon in the upper-right, click the small "Open Perspective" icon and select "Debug"). Once you do, you should see a list of threads; if you select one and break it (by clicking the "pause" icon), it should show the stack trace, source file, and line where execution is at. Breakpoints and whatnot should all work.

Bonus material

Replace Ctrl with the Apple key on Mac.
shortcut
function
Ctrl-Shift-o
Organize imports
Ctrl-Shift-t
load class by name
Ctrl-Shift-r
load non-class resource by name
Ctrl-1
quick fix
Ctrl-e
Recently viewed files
Ctrl-space
auto complete
Shift-Alt-r
refactor:rename
Shift-Alt-v
refactor:move

Monday, 24 September 2012

Facebook Shortcut Keys


 Facebook is themost popular social network now. Millions of users use it.I hope all of bloggers use acebook.Do you know, there are more shortcut keys for Facebook, You can open new massage,search shortcut,home page shortcut and more. So, It helps to do some important works without moving courser.Shortcuts are sometime different from internet browser.So,i will include all for you.


New Message
Chrome:   ALT + M
Firefox:    SHIFT + ALT + M
Explorer : ALT + M + ENTER

Search Shortcut
Chrome:   ALT + ?
Firefox:    SHIFT + ALT + ?
Explorer : ALT + ? + ENTER

Home Page / News Feed
Chrome:   ALT + 1
Firefox:    SHIFT + ALT + 1
Explorer : ALT + 1 + ENTER

Profile Page
Chrome:   ALT + 2
Firefox:    SHIFT + ALT + 2
Explorer : ALT + 2 + ENTER

Friend Request
Chrome:   ALT + 3
Firefox:    SHIFT + ALT + 3
Explorer : ALT + 3 + ENTER

Message Shortcut
Chrome:   ALT + 4
Firefox:    SHIFT + ALT + 4
Explorer : ALT + 4 + ENTER

Notifications
Chrome:   ALT + 5
Firefox:    SHIFT + ALT + 5
Explorer : ALT + 5 + ENTER

Account Setting
Chrome:   ALT + 6
Firefox:    SHIFT + ALT + 6
Explorer : ALT + 6 + ENTER

Privacy Setting
Chrome:   ALT + 7
Firefox:    SHIFT + ALT + 7
Explorer : ALT + 7 + ENTER

Facebook Official Page
Chrome:   ALT + 8
Firefox:    SHIFT + ALT + 8
Explorer : ALT + 8 + ENTER

Service Agreement
Chrome:   ALT + 9
Firefox:    SHIFT + ALT + 9
Explorer : ALT + 9 + ENTER

Help Center
Chrome:   ALT + 0
Firefox:    SHIFT + ALT + 0
Explorer : ALT + 0 + ENTER

You can Like or unlike photos by press 'L' with any browser.

Hope this help to you.
-

Download Scheduled Shutdown



Hello Friends! 
Are you one of those people who downloading files from torrent or similar , fall asleep and leave your PC running all night ? You’re right to be concerned about shutting down your computer at night, it’s a huge energy drain . Here is simple software that will automatically shutdown your PC after specific time .
1) Download Scheduled Shutdown and install it to your PC
2)Run Scheduled Shutdown. Now Slide the Slider to a Specified Time Interval and Click Start.




3) It will starts the countdown until it finishes to Shutdown your Computer. You can Cancel anytime by Clicking Cancel Button.


Download Talking Tom Cat App for PC free


There are some games/apps which have found their ways to all major mobile operating systems and one out of the them is ‘Talking Tom Cat’. If you are gaming addict and love to play games on your portable gadget, then you must be familiar with this popular game. ‘Talking Cat Application comes in the ‘Fun’ category and even leads the queue there. The game has tasted a huge success on both the Android and iOS. Well, the story of its success is still going continuously.
There are many people who don’t have access to high-end devices due to low economical state. If you also come among them or your nerds are just excited to enjoy this game on your PC, then this post is for you as I am writing the step by step guide for the same.
Note : There are many ways to enjoy Talking Tom Cat on your PC but most of the methods involve the downloading of .swf file, in which you are allowed to play with the cute body of it and nothing else. Shocked? But it’s so, you can’t speak over to the funny cat and then get your words repeated back. Then what’s the meaning of  it in .swf versions ? Well, even I’m shocked over it.

Don’t worry!! This process will make you to enjoy actual Talking Tom Cat for Computer and that also with the voice input feature for which you need to have microphone with you.

Download and Play ‘Talking Tom Cat App’ on PC

  • First of all, download the Blue Stacks.
  • It’s an emulator to play Android games on PC. You can download it from here.
  • After downloading, install the same in your computer.
  • By default, it will get installed in the drive, in which Windows is installed.
  • Of course, you can choose any drive.
  • Now you need to download the .apk file of  ‘Talking Tom Cat’.
  • If you have already it with you, then you can simply upload it by using ‘Browse’ option.
  • You can use the ‘Search’ feature to search for .apk file of ‘Talking Tom Cat’.
  • From the search results, click and download it
  • The  process will require you to download the graphic files.
  • Do what is required, to proceed further.
  • Within the moment of a few seconds, Talking Cute Cat’ will get installed and you can enjoy it on your PC.
Now just use your microphone to speak anything. The funny cat will catch your words and then will repeat in funny tone creating immense fun. You can use your mouse to go naughty with body of it.
So are you ready to enter the world of fun and laugh on your PC ? Then go ahead and download the Talking Tom Cat on your PC and start playing it now. Don’t forget to share your experience with us via the comment box below.
Disclaimer : As notified above also, this is not the official version of the app, but has been used into computer using various third-party software which is not at all linked with that app.

Web Search of Facebook Coming Soon?



 For all those who like to spend most of the time on internet, surfing and searching Google, you might get a new search engine soon. Whether or not you like Google, you were supposed to use it to make queries and get a pile of results but not now as it seems like competition in search engines is now growing and we now might see a new competitor soon.
Recently, Mark Zuckerberg, the founder of famous social website Facebook indicated that the users might see a new web search engine developed by them. According to him, people are already using the Facebook search feature to find the social details of others and they are handling lots of queries daily. He also added saying that, they have a team of people working on developing the so called Facebook Search Engine, and at some point they will do it.

According to him, there is something that Google and current search engines are missing. Instead of producing a pile of results, they should correctly and aptly answer a query just by proving a specific answer to a specific query made.
So if we are to see this new Facebook SE, we should expect some major change how the search engines have been working till now. It won’t be wrong either to expect a major difference between Google and Facebook SEs. At least there is one thing that is clear, with all the info Facebook already has, they should not find it difficult to establish than any other new startup.

 

Get Latest Updates: Subscribe Now | Like Us on Facebook

X