Tuesday, November 20, 2012

Application Not installed in your phone

When we are running Android application, some times we are getting error like "Application Not installed in your phone" right ?

Details of error -

I run the application in the emulator it works successfully and the icon of the application is show in the emulator menu but when i try to run again that app from the emulator menu it can't allow me to run from that and display the Toast "Application is Not installed in your phone".

Solution - 


This can happen if you have your MainActivity declared twice in your AndroidManifest.xml,
first as a launhcer

<activity android:name=".MyActivity" android:label="@string/app_name">  
    <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>
 
and then just declared like:

<activity android:name=".MyActivity" />
 
So check for this and delete the second extra declaration.

Monday, September 24, 2012

Developers From India Can Now Sell Paid Apps In The Play Store

Good News to Indian Developer.....

Bad news again, India name removed from the list

Following the addition of a number of countries way back in April, Google has updated the Google Play for Developers site to indicate that developers in India can now sell apps on the Play Store. Obviously, this is a big deal. Not only because India is the second-most populous nation on earth, but because mobile technology and software development have absolutely exploded there. Android is absolutely dominating the country thanks to budget handsets.

Friday, September 21, 2012

My eclipse ADB server didn't ACK, failed to start daemon



After updating the SDK, my eclipse shows this error:
ADB server didn't ACK, failed to start daemon.
When I run an android application, it gives me the following:
Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and can be executed.



This error is general for all developer, there are few fix for this -

A.

Step 1: CTRL+Shift+Esc to open the task manager, which has adb.exe process and end (kill) that process
Step 2: Now, close the eclipse, which is currently running on my computer.
Step 3: Again, restart eclipse then solved that problem.

B. Some times i made same problem like
I met same problem, though I didn't what caused this. Whatever, i find some clues and fixed finally.
When I open SDK and AVD manager, but find the AVD version(2.3.3) is not same with android lib version(2.3). So I create a new AVD with 2.3.
I fixed it by the following steps: 
1. Open windows task manger and kill adb.exe process. 
2. Close eclipse and restart it. Then it works.

C. ADB will often fail if there is a newline in adb_usb.ini, remove it and restart it and that will often solve the problem (at least for me anyways)

D. i have solve my question,1 :open eclise open the SDK Manager ,choice i device to open
or you can open the sdk dir open the SDK Manager then choice i device to open 2: close the eclipse,then open it

E. type ./adb nodaemon server in terminal
if it returns Invalid content in adb_usb.ini. then there is a problem with your adb_usb.ini file in .android folder..open adb_usb.ini and erase its contents. then restart server...it worked for me.

F
You don't need to restart Eclipse to get ADB running again. Just open a shell and run the command:
adb start-server
If you haven't set the path to ADB in your system properties then you must first go to the directory in which ADB exists(in Android\android-sdk\platform-tools....I'm running Windows,

G.  Some time
Same problem with me. But no process of adb in my laptop, I just logout and login my account, and it's resolved... ADB could start from CMD windows after that.

I hope you will enjoy with this post.

Friday, September 14, 2012

Step By Step Learn Mobile Application Development Android




Step By Step Learn
Mobile Application Development Android

By: - Rakesh Kumar Jha
M. Tech. MCA
+91 8050753516


Introduction

Today is mobile eras basically as more and more people bring Mobile devices into their daily lives that connect them to the worldwide network in its countless forms. Every aspect of life inside mobile, education, entertainment, game, banking etc, due to in part to changes in current situation, competition, and job opportunity and global education and competition market structures.

Mobile devices are not only convenient and always with us, they are the focus of a convergence of capability, each device offering a combination of applications to support for daily life.

To learn mobile technologies it will give huge benefits to life, positive ROI on their learning, mobile learning is a transformative opportunity.. The tree of digital convergence has borne fruit, and it is only now that we are now picking the low-hanging, mobile learning being one of them.

Wednesday, September 12, 2012

Managing Project Team - Dos & Dont's

Project management can be roller coaster ride where you can bump on to  surprises every day and every hour of the day. And managing a team has always been a great challenge for project managers. If you have superb team such that all team members are skilled, professional, extremely committed as well as loyal then you one of the most lucky manager. But that is not a real world. You will have to work with the diverse set of people who have different skill set, different aspirations and varied level of commitments. Here are few Dos and Don’ts while dealing with your project team with a generic view.


Thursday, August 30, 2012

Google Cloud Messaging (GCM)


Google Cloud Messaging (GCM)

GCM Application


Google Cloud Messaging for Android (GCM) is a service that helps developers send data from servers to their Android applications on Android devices. The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The GCM service handles all aspects of queuing of messages and delivery to the target Android application running on the target device.
The Google Cloud Messaging (GCM) is to use the Google Cloud Messaging framework in your Android application. You will get configuration and setting up GCM in Android.

DCM consists of two part –
1.       A web server containing a page where you can send messages
2.       An Android application that receives and displays such messages.

Details information about API reference documentation  are available here –


Wednesday, August 29, 2012

How do I insert special characters as text in XML editor for Android?



You are writing an app that involves using some mathematical symbols. I'm doing this in the visual XML editor.
Is there any way I can get, say, an integral symbol, or a "less than or equal to" symbol?


Answer is  - Yes.


String htmlStringWithMathSymbols = "&#8804;  &#8805;";
textView.setText(
Html.fromHtml(htmlStringWithMathSymbols)); 
OR
<string name="item_unknown">\u003c Item Unknown \u003e</string> 


Tuesday, August 21, 2012

Best Answers to Tough HR Interview Questions

Best Answers to Tough HR Interview Questions :
Check these typical interview HR questions with sample answer that will guide you to choose your answer. There questions are tragated more towards freshers but are equally useful for experience candidates also.
1. Tell me about yourself:
2. We're considering two other candidates for this position. Why should we hire you rather than someone else?
3. Why do you want to work in this industry?
4. Why should I hire you?
5. Tell me about a time you didn't perform to your capabilities.
6. Tell me about an effective manager, supervisor, or other person in a leading role you've known. 7. What's your greatest achievement to date?
8. Give an example of a time when you were asked to accomplish a task but weren't given enough information. How did you resolve this problem?
9. What is your biggest weakness?
10. Why weren't your grades better.

Monday, July 23, 2012

What is design pattern ? What are good design patter in Android ?


What is design pattern?  What is design pattern in Android?

In software engineering, a design pattern is a general reusable solution to a commonly occurring problem within a given context in software design. A design pattern is not a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. So patterns are formalized best practices that you must implement yourself in your application

Friday, July 20, 2012

What is the difference between minSdkVersion, maxSdkVersion and targetSdkVersion


  • android:minSdkVersion — Specifies the minimum API Level on which the application is able to run. The default value is "1".
  • android:targetSdkVersion — Specifies the API Level on which the application is designed to run. In some cases, this allows the application to use manifest elements or behaviors defined in the target API Level, rather than being restricted to using only those defined for the minimum API Level.
  • android:maxSdkVersion — Specifies the maximum API Level on which the application is able to run.Important: Please read the <uses-sdk> documentation before using this attribute.


<uses-sdk android:minSdkVersion="integer" 
          android:targetSdkVersion="integer"
          android:maxSdkVersion="integer" />

Tuesday, July 17, 2012

Preventing status bar expansion - Disable Notification Bar

Use your phone for just about any length of time, and you'll notice that little icons pop up and sit on the top-most gray bar on your phone. This is known as the Notification Bar, though it's sometimes referred to as the "Status Bar" or "System Status Bar" in Android developer documents

Here, we will see, whether we can play with this status bar or not.
Is there anyway to prevent users from sliding the status bar (expand) or collapsing back?
I'm trying out a lockscreen replacement and seems like it's a must-have feature. Is there any possible way to do it without requiring root privileges?

Answer is Yes, it possible in some how. - 

Session Management in Android

Wanted to maintain Session, i.e. Session Management in Android.

This has nothing to do with Android. It has everything to do with Apache HttpClient, the library you are using for HTTP access.
Session cookies are stored in your DefaultHttpClient object. Instead of creating a newDefaultHttpClient for every request, hold onto it and reuse it, and your session cookies will be maintained.
Generally, in Java HttpURLConnection you can set / get a cookie this way (here is the whole connection process). The code below is in my ConnectingThread's run(), from which all the connecting activity classes inherit. All share common static sCookie string which is sent with all the requests. Therefore you can maintain a common state like being logged on / off:

Monday, June 18, 2012

How to Share your Mobile Screen in Android Mobile Phone


Have you ever think that you can share your mobile screen with any other android mobile user , yes this is possible using android.
Simple screen sharing android mobile viewer that help in Viewing someone’s screen and collaborate in real time, on your time.

Sunday, June 17, 2012

How do I make links in a TextView clickable?

When I wanted to show some TextView with click able and make it as a link to open a web pages in separate browser.
Android is highlighting the links in the TextView, but they do not respond to clicks

Thursday, June 14, 2012

Debug certificate expired at 5.36PM

Debug certificate expired Most of the time we are getting error like Debug certificate expired at 5.36PM </br>

lets example -

  type Error generating final archive: Debug Certificate expired on 6/13/12 5:36 PM XYZProjectName Unknown Android Packaging Problem


How to resolved Debug certificate expired

1. Delete your debug certificate under ~/.android/debug.keystore on Linux and Mac OS X;
2. Delete your debug certificate like %USERPROFILE%/.androidon Windows.


The Eclipse plugin will automatically generate a new certificate when you next try to build a debug package.
You may need to clean and then build to generate the certificate.

Wednesday, June 13, 2012

Difference between <merge> , <include>and < ViewStub /> tag in Android

The articles showed you how to use the &ltinclude/&gt tag in XML layouts, to reuse and share your layout code. This article explains the &ltmerge /> tag and how it complements the <include/> tag. We will see when to use <include> and when <merge>. Its re-use tricks, sort of xml file, elements to file many times. Define one place and will used in different places.

Thursday, March 1, 2012

Splash Screen in Android

If you wanted splash screen in Android apps, Splash screen will come first for few second then from splash screen main screen will lunch.
R.layout.splash -> this is .xml layout, it will show how you wanted to show your splash screen.
startActivity(new Intent(SplashScreen.this, MainScreen.class)) - > Mainscreen will be your next screen you wanted to come automatically after splash screen.
CountDownTimer timer = new CountDownTimer(1000, 1000)  -> splash screen will visible for 1 sec.

Tuesday, February 28, 2012

Gesture and Gesture detection in Android

Here I will show you how to control Robot through the Gesture Movement, basically here I'm getting the gesture movement, left right, up, down, based on this value (X and Y direction), I'm passing this value to Controller through mobile bluetooth and based on this command Robot will move left, right, fwd, back.

Gesture detection is one of the great features of all touch based mobile devices. Gestures are patterns drawn by the user on the screen. Simple gestures include tap, scroll, swipe, etc. Complex gestures are more complex patterns drawn on the screen. In Android we can detect simple gestures using GestureDetector class and complex gestures using GestureOverlayView class.

SMS Messaging in Android

It would be safe to say that nearly every mobile phone sold in the past decade has SMS messaging capabilities. In fact, SMS messaging is one great killer application for the mobile phone and it has created a steady revenue stream for mobile operators. Understanding how to use SMS messaging in your application can provide you with many ideas to create the next killer application.

In this article, we take a look at how you can programmatically send and receive SMS messages in your Android applications. The good news for Android developers is that you don't need a real device to test out SMS messaging - the free Android emulator provides the capability to do so.

Upcoming Releases: 1.0.1, 1.1, and beyond for Android

With the start of a new year, we’ll be resuming our more regular team updates to keep you in the loop on what we’re working on here in the jQuery Mobile project. To kick things off, we’d like to share our current thinking on the next few releases so you can start planning ahead.

JQuery planning on releasing our first maintenance release for 1.0 within the next two weeks. This will consist of bug fixes and minor improvements to 1.0 after which we’ll focus on getting 1.1 out the door.


Saturday, February 25, 2012

HelloWorld with EditText & TextView and Orinetation

In this example you will see Helloworld with EditText features and TextView feature along with Orientation.

Horizontal Orientation - it is default orientation, no need to provide explicitly in xml
Vertical Orientation - we need to specify, if we wanted, 

Wednesday, February 22, 2012

User scenario testing for Android - Robotium

Robotium is a test framework created to make it easy to write powerful and robust automatic black-box test cases for Android applications. With the support of Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.
Robotium has full support for Activities, Dialogs, Toasts, Menus and Context Menus.
See below for common Robotium questions and answers.


Monday, February 20, 2012

GridView with Image and TextView

How to use GridView with Images and TextView ?
How to Organize TextView and Image in Horizontal & Vertical combination ?
How to Create Advanced GridView with Image and TextView ?

We will solve here all the above question.
In this tutorial we are going to see how to create an advanced Gridview screen, that will have text + image

It’s time to say bye-bye to buttons - Android

With its new iOS app, Clear, Realmac Software has taken the “less is more” axiom to its ultimate conclusion. The Clear app puts a new spin on the common to-do list by enriching it with a playful perception of depth, dynamic transitions and crisp audio feedback, all wrapped under a minimalistic visual language and shallow navigation.


Sunday, February 19, 2012

14 Ways To Be A Great Startup CEO

Everyone thinks that being a startup CEO is a glamorous job or one that has to be a ton of fun. That's what I now refer to as the "glamour brain" speaking aka the startup life you hear about from the press. You know the press articles I'm talking about... the ones that talk about how easy it is to raise money, how many users the company is getting, and how great it is to be CEO. Very rarely do you hear about what a bitch it is to be CEO and how it's not for every founder that wants to be an entrepreneur. I've spent a lot of time recently thinking about what it takes to be a great Startup CEO that is also a founder. Here are some of the traits I've found.

Friday, February 17, 2012

Google Map in Android




<strong>Introduction -</strong>
Google Maps is one of the many applications bundled with the Android platform. In addition to simply using the Maps application, you can also embed it into your own applications and make it do some very cool things.

<strong>Objective - </strong>
Change the views of Google Maps
Obtain the latitude and longitude of locations in Google Maps
Perform geocoding and reverse geocoding
Add markers to Google Maps

<strong>Common Issue</strong>
API key is incorrect (http://code.google.com/android/add-ons/google-apis/mapkey.html)
You are using the standard Android emulator and not the Google APIs.
You have extended Activity instead of MapActivity


Tuesday, February 7, 2012

Android, ListView and Sqlite, Databases

Here I'll show how to get data from the Sqlite database and show them into ListView. I am intending to query a database using a SQLiteDatabase API. The results I obtain are in a Cursor object that I iterate and create an ArrayList that is passed to the ListView. Let us see the steps involved in this exercise:
What you will learn -

ListView
ListView icon
ListAdapter
ListActivity
ListActivity and Layout
What is Adapter
ListViews and performance
Create ListActivity Show Data from Array without Database
ListActivity with own layout
Implementing your own ListAdapter
Implementing your own adapter
Rows interacting with the data model – CheckBox
Use of SimpleCursorAdapter – Database
What is SQLite
SQLite in Android – brief
rawQuery() Example
query() Example
What is Cursor?
ListViews, ListActivities and SimpleCursorAdapter –Details
ListView with Database


Wednesday, February 1, 2012

Android SDK : Launching the Camera

launch the built-in Camera application and use the results for displaying the captured image. You will achieve this by creating an Intent within your application’s Activity.
process the Intent’s results and use the resulting image within your application.

<strong>Step 1: Create an Android Application</strong>
<strong>Step 2: Creating the Intent
Step 3: Asking for Results</strong>
<strong>Step 4: Handling the Results</strong>
<strong>Step 5: Getting the Image</strong>
<strong>Step 6: Enforcing Device Requirements</strong>
<strong>Conclusion</strong>

Friday, January 27, 2012

How to move from one activity to another

1.Create a project with HelloShiva and name the activity as HelloShivActivity
2 Create another activity SecondActivityactivity
2. create two xml file say mail.xml and second.xml file

Wednesday, January 25, 2012

Conducted First workshop on Android at IITB

Introduction
“The android operating system is inching to grab almost 50% of smartphones market”.
Which is the best selling open source smart phone platform worldwide? Android! Techfest brings a workshop for this very topic. Get a chance to enter the world of android app development and get insights into industry standards in this field. For anyone and everyone who wants to enter the field of mobile application development.
Dates: 6th and 7th of January, 2012
Duration: 16 hours spread over 2 days
Venue: IIT Bombay

Conducted First workshop on Android at CDAC-Bangalore

Really this one is one of my best workshop i conducted.

Android is the best selling open source smart phone platform worldwide and lots of feature. CDAC-Bangalore brings a workshop for this very topic. Get a chance to enter the world of android app development and get insights into industry standards in this field. For anyone and everyone who wants to enter the field of mobile application development.

Dates: 5th November, 2011
Duration: 8 hrs
Venue: CDAC (NCST) Bangalore

Monday, January 23, 2012

How to Use HTML, CSS and JavaScript in Android

1. Create project called "htmlIntent"
2. create activity "WebviewExample"
3. in assets folder create a folder named "www"
4. create "local.html" file inside www folder
5. create a activity called "WebviewOtherExample"
6. manifest file
see below to details -

Friday, January 20, 2012

What will happen if we set same xml file for two activity?


We create subclass of which class and override onCreate( ) method to create SQLite database?


What are different resource type in Android?


What is notification? What are its different types?


What is Dialog?


A dialog is usually a small window that appears in front of the current Activity.
The underlying Activity loses focus and the dialog accepts all user interaction
Types of Dialog -

Explain View hierarchy?


What is thread-safe method?


What is ContentResolver?


What is SGL?


What is NullpointerException?


How to close one activity from other activity?


Thursday, January 19, 2012

What is Notifiaction manager?


What is cursor?


What is the significance of gen folder in Android project?


What is the difference between Min and Target SDK version?


How to make our view scrollable?


Every AVD has a number(e.g 5554) associated with it.What is the significance of that number??


What do you mean by supporting multiple screen?


What is aspect ratio?


Difference between match_parent,wrap_content,fill_parent?


What is the short cut to change emulator orientation?


If we rename a package in the existing project then what we should do?


What is context?


Is it possible to create form widget with javacode?explain in support of your answer.


How to set space between two buttons?


How to get a list of installed android applications and select one to run?


What is the difference between px, dip, dp and sp in android?


What is intent filter?


Difference between process and thread?


What is sticky intent?


what is action in Android?


Is nesting of layout possible in Android? Explain in support of your answer.


Explain ViewGroup and View .


What do you mean by externalization of resources? Explain it advantage/disadvantege if any.


Which database supported by Android? How that is useful?


Give brief comparision between internal and external storage.


What is sharedpreferrences?


Difference between button and Imagebutton?


How to set desired background color to our application?


why we use this tag android:id="@+id" in UI widget code snippet inside xml file?


What are the form widgets availbale for Android UI design? Explain each widgets attribute?


How and why we need to add service in manifest?


What we should do when we create add new activity in an Android project?


Explain the methods in Activity class?


Explain API level/platform in Android? What is the naming convention for Android API?


What is DDMS?


What is .dex extension?


What is AVD in Android?


What is an adb?


what is .apk in android?


What is linux kernel and how it is supporting Android ?


What are the different layouts available for Android ui design? Explain each briefly.


How can we set icon to our android application?


What is the importance of having three drawable(hdpi,mdpi,ldpi) in android project?


What is the tag uses-permission signify and where it is used?


What is the role of Bundle in Android program/project?


How to assign a .xml(UI) file to activity?


What is the significance manifest file in Android project?


What is broadcast receiver?


What is intent and its types?Explain each with its syntax.


What is content provider?


What is services?


Saturday, January 14, 2012