Skip to main content

Posts

Showing posts from April, 2013

How to create Android Facebook Key Hash

Download openSSl  Extract it in C:/ drive now Open CMD goes to  C:\Program Files\Java\jdk1.7.0\bin using cd C:\Program Files\Java\jdk1.7.0\bin $ keytool - exportcert - alias androiddebugkey - keystore "C:\user\dj-android\.android\debug.keystore" | "C:\OpenSSL\bin\openssl" sha1 - binary | "C:\OpenSSL\bin\openssl" base64 You will be prompted for a password. This should be 'android' without quotes. You'll then be given a key hash of 30 characters or so. (If you are  not  prompted for a password, something is wrong and you must check your paths above to ensure the  debug.keystore  is present.)

Android - Google MAP V2 PART 4 (Google Map V2 Direction)

Download Full Code  of  PART-1 , 2 , 3 , 4 before go ahead check all articals. Android google map v2 part-1 Android google map v2 part-2 Android google map v2 part-3 for support all Android OS Version I have used  ActionBarSherLock  library. Do not forgate to generate Google MAP API KEY and add Google Play services library . Download Code Note: this code is only work in Android Device not in Android Emulator

Android - Notifications - 3 (Applying a big view style to a notification)

Big picture style Bitmap icon1 = BitmapFactory.decodeResource(getResources(), R.drawable.dhaval1); NotificationCompat.Builder mBuilder = new NotificationCompat.Builder( this).setAutoCancel(true) .setContentTitle("DJ-Android notification") .setSmallIcon(R.drawable.ic_launcher).setLargeIcon(icon1) .setContentText("Hello World!"); NotificationCompat.BigPictureStyle bigPicStyle = new NotificationCompat.BigPictureStyle(); bigPicStyle.bigPicture(icon1); bigPicStyle.setBigContentTitle("Dhaval Sodha Parmar"); mBuilder.setStyle(bigPicStyle); // Creates an explicit intent for an Activity in your app Intent resultIntent = new Intent(this, testActivity.class); // The stack builder object will contain an artificial ba

ANDROID - Set Gujarati font inside Spinner

Download Gujarati Font package com . example . main . util ; import android . app . Activity ; import android . graphics . Typeface ; import android . os . Bundle ; import android . view . LayoutInflater ; import android . view . View ; import android . view . ViewGroup ; import android . widget . BaseAdapter ; import android . widget . Spinner ; import android . widget . TextView ; import com . example . testapp . R ; public class testActivity extends Activity { private static final String [] COUNTRIES = new String [] { "Belgium" , "France" , "Italy" , "Germany" , "Spain" }; private Spinner mySpinner ; private Typeface myFont ; @Override protected void onCreate ( Bundle savedInstanceState ) { // TODO Auto-generated method stub super . onCreate ( savedInstanceState ); setContentView ( R . layout . newlay );