Friday 17 January 2014

Google Map with Photos

                                                  GoogleMapV2



NOTE: Version 1 of the Google Maps Android API has been officially deprecated as of December 3rd, 2012 . This means that from March 3rd , 2013 you will no longer will able to request an API key for this  version. No new features will be added to Google Maps API v1 . However , apps using v1 will continue work on devices. Existing and new developers are encouraged to use Google Maps Android API v2.


NOTE: You cannot run your application using Google Play API(Google Maps Android API V2) on Android emulator, Because your emulator doesn't support Google Play services. So you need to check your application in Android mobile phone which supports google play services.


Step:1

 GoogMapAccess.java

 package com.example.crudapps;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.GoogleMap.OnMapClickListener;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;

public class GoogMapAccess extends Activity {

  
    GoogleMap googleMap;
    double latitude = 13.003597;
    double longitude =80.202485;
  
    private final LatLng KIEL = new LatLng(13.003597,80.202485);
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_goog_map_access);
      
        googleMap = ((MapFragment)getFragmentManager().findFragmentById(R.id.map_simple)).getMap();
      
      
        LatLng latLng = new LatLng(latitude, longitude);
        googleMap.addMarker(new MarkerOptions().position(latLng));
        googleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));
        googleMap.animateCamera(CameraUpdateFactory.zoomTo(15));
      //  googleMap.icon(BitmapDescriptorFactory.fromResource(R.drawable.chandru));
        

       googleMap.addMarker(new MarkerOptions()
        .position(KIEL).title("chandru home").snippet("Population: 4,627,300")        .icon(BitmapDescriptorFactory.fromResource(R.drawable.chandru)));
      
        googleMap.setOnMapClickListener(new OnMapClickListener() {
          
            @Override
            public void onMapClick(LatLng latlng) {
              
                Log.i("just location showing in map","Latitude"+latitude+"Longitude"+longitude);
              
            }
        });
      
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.goog_map_access, menu);
        return true;
    }

  
}


Step:2

activity_goog_map_access.xml


<?xml version="1.0" encoding="utf-8"?>
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/map_simple"
   android:name="com.google.android.gms.maps.MapFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />



Step:3

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.crudapps"
    android:largeHeap="true"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="21" />

   
    <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
 
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
   
    <permission
        android:name="com.example.crudapps.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="com.example.crudapps.permission.MAPS_RECEIVE" />
   
   
    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".GoogMapAccess"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
             
       
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIzaSyBY3ouErTfhFXk6FyIv50zGiPMb7agoOgMS" />
       
    </application>

</manifest>



 Step:4

 Add googleplayservicelib.



Screen Sample:

                                                                                       only Marker


Add Image

                                                      

Download Source Code:

Full source code for Googe Map in andorid


 

Sunday 12 January 2014

File Security for mobile

                                                               Android Developer-CHANDIRASEKAR

Hi.

                   I'm    CHANDIRASEKAR AND ANDROID DEVELOPER. now i have developed in one android apps 











Description
Secret Space Encryptor (S.S.E.)
● Password Manager, Message (Text) Encryption and File Encryption integrated in the all-in-one solution. 
● Store and manage all your passwords, PINs or notes in one secure place protected with one Master Password. Import/Export function is available (compressed, fully encrypted .pwv file format or unencrypted, editable .xml file format).
● Keep your messages, notes and other texts safe from unintended readers. Use internal database or just copy/paste to/from your favorite applications.
● Securely encrypt your private and confidential files or whole folders. Wiping (secure delete) feature is included.
● Everything is encrypted using strong encryption algorithm: AES(Rijndael) 256bit, RC6 256bit, Serpent 256bit, Blowfish 256bit/448bit, Twofish 256bit and GOST 256bit ciphers are available.
● Other Utils: Password Generator, Clipboard Cleaner, Algorithm Benchmark, ...
● Minimal Permissions. No ads.
● Cross-Platform (Windows, Linux, Mac OS X, ...) GUI Version and Command Line Version of the File Encryptor is available on the application home page (download section).



Friday 10 January 2014

Android-Activity Life Cycle










Called when the activity is first created. This is where you should do all of your normal static set up: create views, bind data to lists, etc. This method also provides you with a Bundle containing the activity's previously frozen state, if there was one. Always followed by onStart().
Called after your activity has been stopped, prior to it being started again. Always followed by onStart()
Called when the activity is becoming visible to the user. Followed by onResume() if the activity comes to the foreground, or onStop() if it becomes hidden.
Called when the activity will start interacting with the user. At this point your activity is at the top of the activity stack, with user input going to it. Always followed by onPause().
Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed. The counterpart to onResume(). When activity B is launched in front of activity A, this callback will be invoked on A. B will not be created until A's onPause() returns, so be sure to not do anything lengthy here.
Called when you are no longer visible to the user. You will next receive either onRestart(), onDestroy(), or nothing, depending on later user activity.
Note that this method may never be called, in low memory situations where the system does not have enough memory to keep your activity's process running after its onPause() method is called.
The final call you receive before your activity is destroyed. This can happen either because the activity is finishing (someone called finish() on it, or because the system is temporarily destroying this instance of the activity to save space. You can distinguish between these two scenarios with the isFinishing() method.









Wednesday 1 January 2014

Android tutorial syllabus

                                                  
                                        Android Syllabus
                                        *************************** 

                                      Core Android

Basics of Android
  •    What is Android
  •    History and Version
  •    Installing softwares
  •    Setup Eclipse
  •    Hello Android example
  •    Internal Details
  •    Dalvik VM
  •    Software Stack
  •    Android Core Building Blocks
  •    Android Emulator
  •    AndroidManifest.xml
  •    R.java file
  •    Hide Title Bar
  •    Screen Orientation

UI Widgets
  •    Working with Button
  •    Toast
  •    Custom Toast
  •    Button
  •    Toggle Button
  •    Switch Button
  •    Image Button
  •    CheckBox
  •    AlertDialog
  •    Spinner
  •    AutoCompleteTextView
  •    RatingBar
  •    DatePicker
  •    TimePicker
  •    ProgressBar
  •    Quick Contact Budge
  •    Analog Clock and Digital Clock
  •    Working with hardware Button
  •    File Download

Activity, Intent & Fragment
  •    Activity Lifecycle
  •    Activity Example
  •    Implicit Intent
  •    Explicit Intent
  •    Fragment Lifecycle
  •    Fragment Example
  •    Dynamic Fragment

Android Menu
  •    Option Menu
  •    Context Menu
  •    Popup Menu

Layout Manager
  •    Relative Layout
  •    Linear Layout
  •    Table Layout
  •    Grid Layout

Adaptor
  •    Array Adaptor
  •    ArrayList Adaptor
  •    Base Adaptor

View
  •    GridView
  •    WebView
  •    ScrollView
  •    SearchView
  •    TabHost
  •    DynamicListView
  •    ExpandedListView

                                              Advance Android




Android Service
  •    Android Service
  •    Android Service API
  •    Android Started Service
  •    Android Bound Service
  •    Android Service Life Cycle
  •    Android Service Example
Data Storage
  •    Shared Preferences
  •    Internal Storage
  •    External Storage

SQLite
  •    SQLite API
  •    SQLite Spinner
  •    SQLite ListView

XML & JSON
  •    XML Parsing SAX
  •    XML Parsing DOM
  •    XML Pull Parser
  •    JSON Parsing

Cotent Provider
  •    Content Proivider Fundamental
  •    Contact Content Provider
  •    Other Built-in Content Providers
  •    Creating Custom Content Provider
  •    Understanding Content URI
  •    ContentResolver
  •    Sharing Information from custom content provider

Android Notification
  •    Notification API
  •    Creating Notification Builder
  •    Setting Notification Properties
  •    Attaching Actions
  •    Issuing Notification
  •    NotificationCompat.Builder class
  •    Android Notification Examples

Multimedia
  •       Wallpapaer
  •       Live Wallpaper
  •       Multimedia API
  •       Playing Audio
  •       Creating Audio Player
  •       Playing Video
  •       Alarm Manager
  •       Gallery

Speech API
  •       TextToSpeech API
  •       TextToSpeech Example
  •       Managing speed and pitch
  •       Speech To Text

Telephony API
  •       Telephony Manager
  •       Get Call State
  •       Call State BroadcastReceiver
  •       Simple Caller Talker
  •       Making Phone Call
  •       Send SMS
  •       Send Email

Location API
  •     Location API Fundamental
  •     Example of Android Location API
  •     Working with Google Maps

Animation
  •    Android Animation API
  •    Android Drawable class
  •    Android Animation Example
  •    Android Rotate Animation
  •    Android Fade Animation
  •    Android Zoom Animation

Device Connectivity
  •    Bluetooth Tutorial
  •    List Paired Devices
  •    Working with WiFi
  •    Working with Camera

Sensor
  •    Sensor API
  •    Motion Sensor
  •    Position Sensor
  •    Environmental Sensor
  •    Sensor Values
  •    SensorManager class
  •    Sensor Class
  •    SensorEvent class
  •    SensorEventListener interface
  •    Compass Acceslerometer and Orientation Sensors
  •    Sensor Examples

Android Graphics
  •    Graphics API
  •    2D Graphics
  •    android.graphics.Canvas
  •    android.graphics.Paint class

Android P2P Communication
  •    Introducing Instant Messaging
  •    Using the GTalk Service
  •    Monitoring the Roste for Changes
  •    Sending and Receiving Data Messages
  •    Transmitting Data Messages
  •    Receiving Data Messages

Android Web Services
  •    What is web service
  •    Soap Vs Restful web service
  •    Android Restful web service example with java servlet
  •    Storing data into external oracle database
  •    Verifying data in android with external oracle database

Android Google Map
  •    Android Map V2 API
  •    Adding Map
  •    Customizing Map
  •    GoogleMap class
  •    Android Google Map Application