Check out this , it lets the designers to see his design into a real time anDroiD device. Here is the link for more information.
Thursday, November 24, 2011
Displaying anDroid Screen on to PC/Laptop
If there any application presentation needed to be done ,it cant be done done on 4 inch screen . There are some tools through which you can Display your anDroiD device screen on to computer. One good tool which came across was Ashot: AndroidScreenCapureSetup.v1.1 , u can get download link here
Friday, October 7, 2011
Facebook Hash Key on windows
To Develop facebook app for anDroiD u need to get Hashkey.So go to Cmd prompt
Download the openssl for windows here . Then unzip and save it
Now in the cmd prompt change dir to the bin folder of the jdk(which u have installed before using Eclipse)
Type the command:
keytool -export -alias myAlias -keystore C:\Users\mpg\.android\myKeyStore | D:\software\openssl-0.9.8k_WIN32\bin\openssl sha1 -binary | D:\software\openssl-0.9.8k_WIN32\bin\openssl enc -a -e
The Red color highlighted is the location of your "keystore" folder,which u can finf in c/users/user_name/.android.
The Light Pink color is the path of the unziped location of the downloaded openssl.
In the figure the highlighted text is the hashkey.which u need to insert while creating the application in the URL , Just login and create the new app.
Download the openssl for windows here . Then unzip and save it
Now in the cmd prompt change dir to the bin folder of the jdk(which u have installed before using Eclipse)
Type the command:
keytool -export -alias myAlias -keystore C:\Users\mpg\.android\myKeyStore | D:\software\openssl-0.9.8k_WIN32\bin\openssl sha1 -binary | D:\software\openssl-0.9.8k_WIN32\bin\openssl enc -a -e
The Red color highlighted is the location of your "keystore" folder,which u can finf in c/users/user_name/.android.
The Light Pink color is the path of the unziped location of the downloaded openssl.
In the figure the highlighted text is the hashkey.which u need to insert while creating the application in the URL , Just login and create the new app.
Monday, August 22, 2011
Android and JSON
Here is basic JSON string which you will extract,Consider a string
Now is the Extracting of the JSON String
jObject = new JSONObject(Str);
JSONObject Question = jObject.getJSONObject("Question");
Q_id = Question.getString("Q_id");
System.out.println(Q_id);
Q_Name = Question.getString("Q_Name");
System.out.println(Q_Name);
JSONObject TypeOfQuest = Question.getJSONObject("TypeOfQuest");
Type = TypeOfQuest.getString("Type");
System.out.println(Type);
ValuesArray = TypeOfQuest.getJSONArray("Values");
//System.out.println(ValuesArray.length());
for (int i = 0; i < ValuesArray.length(); i++) {
//System.out.println(ValuesArray.getJSONArray(0).toString());
System.out.println(ValuesArray.getString(i).toString());
}
That is it..........................
{Question: {Q_id:111,Q_Name:How much is ur salry, TypeOfQuest: {Type:CheckBox,Values:[<50,>50,=50]}}}
The present string needs to be converted in to JSON form for doing this you can use String Builder Object else tou can convert manually
The present string needs to be converted in to JSON form for doing this you can use String Builder Object else tou can convert manually
as below
Str="{\"Question\": {\"Q_id\":\"111\",\"Q_Name\":\"How much is ur salry\", \"TypeOfQuest\": {\"Type\":\"CheckBox\", " +
"\"Values\":[\"<50\",\">50\",\"=50\"]}}}";Now is the Extracting of the JSON String
jObject = new JSONObject(Str);
JSONObject Question = jObject.getJSONObject("Question");
Q_id = Question.getString("Q_id");
System.out.println(Q_id);
Q_Name = Question.getString("Q_Name");
System.out.println(Q_Name);
JSONObject TypeOfQuest = Question.getJSONObject("TypeOfQuest");
Type = TypeOfQuest.getString("Type");
System.out.println(Type);
ValuesArray = TypeOfQuest.getJSONArray("Values");
//System.out.println(ValuesArray.length());
for (int i = 0; i < ValuesArray.length(); i++) {
//System.out.println(ValuesArray.getJSONArray(0).toString());
System.out.println(ValuesArray.getString(i).toString());
}
That is it..........................
Connecting anDroiD wid the Remote Server
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("www.yourUrl.com");
Here HttpClient Object is created and you are using post method. Using Http post method you can send and get data from server,whereas using Http Get you can only get the data.
Friday, August 19, 2011
How to get MD 5 fingerprint key and Google Map Api key for anDroiD
- In the Command prompt be in bib folder of the JDK , which must have installed before using Eclipse C:\Program Files\Java\jdk1.6.0_26\bin
- Then use this command line to get the MD5 key on the windows(both XP and 7) keytool -list -alias androiddebugkey -keystore "C:\Users\user_name\.android\debug.keystore" -storepass android
- When you click the enter button you will get a MD5 key. Example:F3:11:23:D2:35:6C:C3:8E:7B:ED:A3:93:DA:4C:95:8D
- The complete code C:\Program Files\Java\jdk1.6.0_26\bin>keytool -list -alias androiddebugkey -keystore "C:\Users\user_name\.android\debug.keystore" -storepass android
- Then go to http://code.google.com/android/maps-api-signup.html and insert the MD5 ,It will give you the Google Map Api Key!!!!!!!!!!!!!!!!!
Thursday, August 11, 2011
How to get data from web pages
DefaultHttpClient httpClient = new DefaultHttpClient();
HttpGet httpGet = new HttpGet("http://www.someplace.com");
ResponseHandler<String> resHandler = new BasicResponseHandler();
String page = httpClient.execute(httpGet, resHandler);
This can be used to grab the whole data from the web pages
Sunday, April 24, 2011
Saturday, January 8, 2011
Creating The SDcard or virtual memory card
- To create SdCard and inserting files into it http://android-er.blogspot.com/2009/10/create-sd-card-in-android-emulator-and.html
Subscribe to:
Posts (Atom)