Posts

How to set Java JDK environment path in Windows 7

There are two ways to do the thing but doing it with Command prompt would be the easiest way. To start with the Command prompt hit “cmd” in the search after clicking on start. Now enter the command set path="PATHNAME"; eg: set path="c:\Program Files\Java\JDK\bin"; and hit enter it will set your path automatically. Now you are ready to run your first Java program.

MyAppSharer:An easy way to share apps with friends

Image
Do you have friends that are  constantly  bothering you to “send them that app you used last week”? Tired of trying to hold hands while sending them to the Market? Well, thankfully, that painful part of your Android know how may be coming to an end, thanks to an awesome new app: MyAppSharer. The app allows you to not only send them a direct Market link, but also to send them the APK directly via bluetooth, what's app, email, dropbox, SMS or QR code – which has the potential to be wonderful for either pulled apps or apps in development. If you want to get your hands on MyAppSharer, it’s a free download via the market link below. Be sure to check it out and sound off with your reviews in the comments!                                                             Market Link

Android Interview Question

HI, these are the few Android questions that was asked during my interview and some basic questions too that you have to know before going to any interview, I am sharing with you guys. Hope It would help you in your interview too...  It is impossible for me to give every and each answer over here,but yes if you are not getting any answer from anywhere then just let me know...:) 1) What is Android? 2) Features and Architecture of Android? 3) What is Android Market? 4) What is ADT, AVD, DVM, DDMS, Logcat? 5) Anatomy of an Android Application? 6) What are the basic Components in Android? 7) Describe the .apk format? 8) What is an action, resources. 9) How is nine-patch image different from a regular bitmap? 10) What are the dialog boxes that are supported in android? Explain. 11) What languages does Android support for application development? 12) What is the use of AndroidManifest.xml file in Android Application and the content too? 13) Difference between t...

Apache Ant - Tutorial

Image
Introduction: Ant (originally an acronym for Another Neat Tool), is a build tool with special support for the Java programming language but can be used for just about everything.Ant is platform-independent; it is written purely in Java. Ant is particularly good at automating complicated repetitive tasks e.g. compiling source code, running software tests, creating jar files, javadocs, etc. and thus is well suited for automating standardised build processes. A build process typically includes:      -the compilation of the Java source code into Java bytecode      -creation of the .jar file for the distribution of the code      -creation of the Javadoc documentation Ant accepts instructions in the form of XML documents("build.xml") thus is extensible and easy to maintain. Installation: Linux (Ubuntu / Debian) On Debian /Ubuntu use "apt-get install ant" to install it. Windows Download Apache Ant from http://ant.apache.org/ . Extra...

Native Methods and Libraries - Java

What are Native Methods and Libraries? Native methods  and  native libraries  are bits of platform-specific executable code (written in languages such as C or C++) contained in libraries or DLLs. Inside your Java applications you can gain access to the functions inside those libraries, allowing you to create a sort of hybrid Java and native code application. Although using native methods can give you some extra benefits Java does not provide (such as faster execution or access to a large body of existing code), there are significant disadvantages in using native methods as well. Why Use Native Methods? Gaining access to special capabilities of your computer or operating system Needing the extra speed that native methods provide Needing access to a large body of existing code Disadvantages of Native Methods With a hybrid Java and native method program, however, you've given up that cross-platform capability. First of all, Java programs that use native methods cannot...

Android Cloud to Device Messaging(C2DM):Project

Image
Android Push application is an Android Application which is registers to the C2DM Server.It allows user to send and store contact,message,images,maps from the Server to your Device. It uses a features Cloud to Device Messaging to deliver messages that actually pushes the messages to your device, therefore it saves much more battery and best of all,there is nothing you need to do to enable it. The entire project(Android Cloud to Device Messaging) is mainly divided into three parts i,e the primary processes involves in this project are      -Android Push Application      - Cloud to Device Messaging framework.      - Android Push server thats sends message via C2DM Server. Overview of LifeCycle: Check following URL too to know more about C2DM,Authorization Token And Third Party Application Server. Android cloud to Device Messaging:Tutorial Client Login AuthToken Third Party Application Server Some Screenshot: Se...

Android Code Style

Android follow standard Java coding conventions. We add a few rules: Exceptions: Never catch and ignore them without explanation. Exceptions: do not catch generic Exception, except in library code at the root of the stack. Finalizers: generally don't use them. Imports: Fully qualify imports. 1.Exceptions: do not ignore: Never do this.Never wr ite code that completely ignores an exception like this : void setServerPort(String value) { try { serverPort = Integer.parseInt(value); } catch (NumberFormatException e) { } } Always: Throw the exception up to the caller of your method. void setServerPort(String value) throws NumberFormatException {     serverPort = Integer.parseInt(value);  } Throw a new exception that's appropriate to your level of abstraction. void setServerPort(String value) throws ConfigurationException { try { serverPort = Integer.parseInt(value); } catch (NumberFormatException e) { throw new Configura...