Friday, 22 December 2017

PhD & Engineering College Students IEEE & Real time Projects Source code explanation you tube link


Mainly We are focusing on PhD R & D Students IEEE Projects. If any other new concept also, we doing the projects.
These are the Languages concentrating. JAVA, .NET, ANDROID etc.

Mechanical, ECE, EEE, Computer Science Students. also, we are taking online package classes also for above mentioned languages hourly basics, by Software Programmer Experts.

Phd Students Projects YouTube Link

Project are doing by 5 year plus experienced MNC software professionals(Senior Java,Senior Android Developers,Senior .Net Programmers).


IEEE, Real time Arts&Science and Engineering & PhD College R & D Projects Link


ONE INDIA TAMIL NEWS LIVE ANDROID APP

Description:

The above android mobile app contains latest India and tamilnadu national news. also one additional link are enabled here.

which contains, College Students helpful real time and IEEE Projects students with source code you tube links.
students, who are all expecting final year semester projects students can contact their email id. will get the projects immediately. Already IEEE projects explanation you tubes link also available.

we are covering Arts and Science college & Engineering college students projects.

We are mainly  focusing on PhD( R&D, IEEE Projects and Real time concepts also) students project at low cost. we are help/support the students till complete the projects with exam. 

Contacts emails are available in the app page.

Download the app from google play store: One India Tamil New Live App






Friday, 17 November 2017

android.permission.READ_PHONE_STATE

The above permission only getting to show only google ads in my one India new live mobile app.        My App Link

Note: I do not have website to give the explanation, using permission in mobile app.
which is consider only for my individual, none of others like..employer etc.

Thursday, 15 December 2016

Publish my Android Studio 2.2.2 Library to GitHub Repository at first time commit/push.

- Click the VCS menu option and click the Enable version control Integration and select the git from drop down inside vcs dialog.
( select a version control system to associate with the project root: Git)
- then, Right click on Android Studio 2.2.2 Project and drop down showing and click git and select for Add button.
- then, all project source codes synced with local git hub repository.
-then, again, click VCS->import into version control->share project on GitHub
-the, Enter Master password dialog will come, enter your password of git-hub.
-if you are connected with proxy means, error will come and failure to publish.
- use direct internet, then, proceed with same for above steps.
-then, share project on GitHub window will come , it will show like
New repository name
remote name
description
-the, verify all those details and click share button, then, completed project code will synced with GitHub repository.
- if you want to see means, go git hub website and see the project code.
 GitHub

Publish my Android Studio Library to Jitpack Repository

- Just syncronize the github code to jitpack repo using git authorization
- select the project and click the build and commit
- then, will show SNAPSHOT button, when click that button
- page will scrolldown and showing the jitpack url and dependencies compile release url

Android Studio 2.2.2 Repeated Error Scenarios

4).* What went wrong:
A problem occurred evaluating project ':app'.
> Could not find method embedded() for arguments [project ':submoduleproj'] on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

solution:
enable the fat aar plugin above dependency url, while taking the fat aar build
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
dependencies{
}


5).There are three steps need to follow the fat aar build taking.
-comment application plugin in app module build.gradle
-then, below , enable apply plugin: 'com.android.library'
-comment the application package id
-then,apply this plugin above dependencies
apply from: 'https://raw.githubusercontent.com/adwiv/android-fat-aar/master/fat-aar.gradle'
- https://github.com/adwiv/android-fat-aar use this link and download the fat-aar.gradle and paster your project.
-then, give gradle sync. check the compilation errors if anything found
- the follow the command for taking fat aar build
gradlew clean
gradlew build
- then, check the build\output\aar folder
- then convert the aar to zip and check the classess and libs are properly merged with main classess or not.
http://stackoverflow.com/questions/27486506/how-to-include-an-android-library-module-in-another-library

6). classes.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:app:compileReleaseJavaWithJavac FAILED

solution:
I am also faced this error. dont know, how to fix it.
my same code another project is running,there is no error.
but, same code,another project getting above error.some rare case, go for new project, copy all code to new project with new workspace.

Android Studio 2.2.2 Repeated Error Scenarios


3).Error:(55, 0) Could not find method embedded() for arguments [project ':submoduleproj'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

solution:
For normal running submodule given as compile, but, when we build as fat aar means, need to change as embedded instead of compile
(then only, need to combine the main submodule classes and jars are going to merge with main aar classess)

Android Studio 2.2.2 Repeated Error Scenarios:


1).
Android Studio 2.2: while uploading our Project to bintrayupload, need to comment the application id ( package name: com.test.main )
What went wrong:
A problem occurred configuring project ':app'.
> Library projects cannot set applicationId. applicationId is set to 'com.test.testproj16' in default config.

solution:
comment the application id in app build.gradle

2).Error
Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error:1 error; aborting
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process

solution:
=just disabled instantrun- uncheck the instant run hot swap to

Wednesday, 29 October 2014

How to write select query for retrive datas or values from more than a table using join query in android programmatically

Log.v("tag", "retriveDetails_Database()---------------------------------") ;
       
        // LIKE , GROUPBY , SUM , HAVING , ORDERBY , COUNT , DISTINCT , UNION , UNIONALL 
       
         String selectQuery = "select e.empmobile from employeetable e inner join labourtable v on e.salary == v.salary" ;
       
         String SELECT_QUERY = "SELECT * FROM employeetable t1 INNER JOIN labourtable t2 ON t1.salary = t2.salary GROUP BY t1.empname";
       
       
         //The following SQL statement selects all employeetable with a empcity starting with the letter "s":
         String selectQueryLike = "select * from employeetable where empcity LIKE '%I' ";
       
         //The following SQL statement selects all employeetable with a empcity containing the pattern "nna":
         String selectQueryLikeTwo = "select * from employeetable where empcity LIKE '%ROD%' ";
       
       
         //Using the NOT keyword allows you to select records that does NOT match the pattern.
         //The following SQL statement selects all customers with a Country NOT containing the pattern "land":
         String selectQueryLikeThree = "select * from employeetable where empcity NOT LIKE '%LOR%' ";
       
       
         //SQL statement selects only the distinct values from the "City" columns from the "Customers" table:
         String queryDistinct = " SELECT DISTINCT empcity FROM employeetable " ;

       
         SQLiteDatabase db ;
         TestingDBHelper dbHelper = new TestingDBHelper(getApplicationContext()) ;
         db = dbHelper.getWritableDatabase() ;
       
        Cursor c = db.rawQuery(queryDistinct, null);
       
        Log.v("tag", "cursor:"+c.getCount() ) ;
           
        while( c.moveToNext() )
        {
           
            // String dataResult = c.getString(c.getColumnIndex(TestingTableEmployee.COLUMN_ID)) ;
            //String dataResult = c.getString(c.getColumnIndex(TestingTableEmployee.DATA5_EMPCITY)) ;
            //String dataResult = c.getString(c.getColumnIndex(TestingTableEmployee.DATA3_EMPMOBILE)) ;
            String dataResult = c.getString(c.getColumnIndex(TestingTableEmployee.DATA6_EMPSALARY)) ;
           
             Log.v("tag", "dataResult:"+dataResult) ;
        }
        c.close() ;
        db.close() ;
       
        //-----------------------------------------------------------------------------------------------------------
       
         String querySum = "SELECT SUM(salary) FROM employeetable;" ;
         String queryCount = "SELECT COUNT(*) FROM employeetable;" ;
       
         c = db.rawQuery(querySum, null);
       
        Log.v("tag", "cursor:"+c.getCount() ) ;
       
        if ( c.moveToFirst() ) {
           
            String data = c.getString(0) ;
            Log.v("tag", "data:"+data) ;
        }
        c.close() ;
        db.close() ;
       
        //-----------------------------------------------------------------------------------------------------------

Tuesday, 12 August 2014

How to get facebook integration app id in android

this is for testing method. while going for live, change live upload keystore instead of debugkeystore

C:\Program Files (x86)\Java\jdk1.6.0_01\bin>keytool -exportcert -alias

androiddebugkey -keystore "C:\Users\suresh\.android\debug.keystore" | "D:
\harikrishnan\example programs\fb integration\openssl-0.9.8k_WIN32\bin\openssl.exe"
sha1 -binary | "D:\harikrishnan\example programs\fb integration\openssl-
0.9.8k_WIN32\bin\openssl.exe" base64
Enter keystore password:  android
PJwlSLUFRDgdTOukCDBPzjwLfXI=

C:\Program Files (x86)\Java\jdk1.6.0_01\bin>


app id : 675547132491488t=

//--------------------------------------------------------------
when release application in google live

keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore

<RELEASE_KEY_PATH> | openssl sha1 -binary | openssl base64

take key from-- release keystore file.....

//--------------------------------------------------------------

Wednesday, 11 June 2014

Simple PushNotification in ANdroid Programmatically

when I click the button, notification will come on status bar in android mobile..

Ex: 1
//---------------------------------------------------------------------------------------------
package com.example.testing1;
import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivityPushNotification extends Activity {
   
    NotificationManager notifManagerObject ;
    private String title = "Testing Notification Title", body = "Push Notification Messages" ;
    Button btnOne ;
   
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.push_notification);
       
        btnOne = (Button) findViewById(R.id.button1) ;
       
       
        btnOne.setOnClickListener(new OnClickListener() {
            @SuppressWarnings("deprecation")
            @Override
            public void onClick(View v) {
               
                notifManagerObject = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE) ;
               
                @SuppressWarnings("deprecation")
                Notification nofity = new Notification(R.drawable.ic_launcher, title, 5) ;
               
                PendingIntent pendIntent = PendingIntent.getActivity(getApplicationContext(), 0, new Intent(), 0) ;
               
                nofity.setLatestEventInfo(MainActivityPushNotification.this, title, body, pendIntent) ;
               
                notifManagerObject.notify(0, nofity) ;
               
               
            }
        }) ;
       
    }
}
//-----------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:text="Button" />

</RelativeLayout>

Get google map api from Google APi Console


using our SHA1 key from windows->pref->android->ddms->copy sha1 key and paste on to google api authentication page with package name using semicolon..

then copy the key and paste it in manifest file...

add more permissions....

Google map api get key procedure while uploading app to play store live

While uploading app to play store live. that time, we need to follow this procedure and get Google Map API key.
Because, normal, app running in testing purpose, we will get the key from eclipse itlself.
via : eclipse->windows->preference->android->Build-> then copy the SHA1 fingerprint 5A:BF:99:54:E3:F0:D2:20:6A:58:0B:16:0C:0B:52:62:B6:5F:9D:4F

D:\Program Files\Java\jdk1.6.0\bin>keytool -list -v -keystore "C:\Users\trainee\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

Alias name: androiddebugkey
Creation date: Aug 21, 2012
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Android Debug, O=Android, C=US
Issuer: CN=Android Debug, O=Android, C=US
Serial number: 50337779
Valid from: Tue Aug 21 17:26:41 IST 2012 until: Thu Aug 14 17:26:41 IST 2042
Certificate fingerprints:
         MD5:  5A:88:23:FC:2D:BC:4F:E5:BE:7F:16:91:BC:98:1C:F0
         SHA1: 5A:BF:99:54:E3:F0:D2:20:6A:58:0B:16:0C:0B:52:62:B6:5F:9D:4F
         Signature algorithm name: SHA1withRSA
         Version: 3

D:\Program Files\Java\jdk1.6.0\bin>

Cinema News RSS feed websites free access

sample websites

tamilstar.com
http://ibnlive.in.com/rss/
http://cinema.dinamalar.com/rss.php
http://www.nowrunning.com/tamil/
http://www.cinespot.net/gallery/v/Movies/Tamil/?g2_page=2
http://www.indiaglitz.com/channels/tamil/rss.asp
http://www.bharatstudent.com/cafebharat/rssfeed-Tamil-RSS-Feed-3.php

How to restart a emulator or android mobile device using adb tool via command prompt

sometimes, emulator or device get connection disconnected from eclipse to emulator/device.
that time also, its very useful to detect emulator or device again in eclipse using adb(android device bridge).

D:\Android\android-sdk\platform-tools>adb.exe kill-server

D:\Android\android-sdk\platform-tools>adb.exe start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *

D:\Android\android-sdk\platform-tools>

How to import the svn code in to eclipse

1. file->new-> others->svn checkout
2 then select create a new reposiroty location
3.then give url details ->next
4 select the source code location ->next
5 give a project name ->finish

How to commit code in first time in svn


1 create new folder rename to projectname
2 select the folder right click select svn checkout
URL : http://000.00.000.000/svn/project name
uname :
password :
3 create the folder tag,branch,trunk
4 copy the source file in trunk
5 right click the project name folder select tortoise svn ->add, once done
6 right click the project name folder select svn commit, succefully completed
7 right click the project name folder select svn update.

Finally check source file updated in svn via http://000.00.000.000/svn/projectname in browser.

Wednesday, 4 June 2014

pass object one activity to another activity using Serialization in android


pass object through bundle android
//--------------------------------------------------------------------------------------------------
public class MainActivityFrom extends Activity {
   
    ArrayList<String> listTest = new ArrayList<String>() ;
    Button btn1 ;
    MySerialization objectSetialization ;
   
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_second);
       
        listTest.add("CMBT BUS STATION");
       
        Log.v("hari","MainActivityFrom") ;
        btn1 = (Button) findViewById(R.id.button1);
       
       objectSetialization = new MySerialization("krishnanhari",25 , listTest) ;
              
        btn1.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
               
                //Passing  MySerialization instance
                Intent mIntent = new Intent(MainActivityFrom.this, MainActivityTo.class);
                Bundle bund = new Bundle() ;
                bund.putSerializable("serialbundle", objectSetialization);
                mIntent.putExtras(bund);
                startActivity(mIntent);
               
            }
        }) ;
    }
}
//--------------------------------------------------------------------------------------------------
import java.io.Serializable;
import java.util.ArrayList;

@SuppressWarnings("serial")
public class MySerialization implements Serializable {
private int age;
private String name;
private ArrayList<String> address;

public MySerialization(String name, int age, ArrayList<String> address) {
    this.name = name;
    this.age = age;
    this.address = address;

}
public int getAge() {
    return age;
}
public String getName() {
    return name;
}
public ArrayList<String> getAddress() {
    if (!(address == null))
        return address;
    else
        return new ArrayList<String>();
}
}
//--------------------------------------------------------------------------------------------------

public class MainActivityTo extends Activity {

    Intent mIntent ;
    Bundle bund = null ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_second);
       
        mIntent = getIntent();
               
        @SuppressWarnings("null")
        MySerialization serial = (MySerialization) mIntent.getSerializableExtra("serialbundle");
       
        bund = mIntent.getExtras();
       
        Log.v("hari","bundle:"+bund.getSerializable("serialbundle"));
       
        Log.v("hari","serial:"+serial.getAge()+"--"+serial.getName()+"--"+serial.getAddress());
             
    }
}
//--------------------------------------------------------------------------------------------------



Tuesday, 3 June 2014

send objects from one activity to another activity through intent using parcelable in android programmatically


Programs :
MainActivityFrom.java
//------------------------------------------------------------------------------------------------
public class MainActivityFrom extends Activity {

    ArrayList<String> list = new ArrayList<String>() ;
    Button btn1 ;
    MyParcealableObjects objects ;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_second);
       
        list.add("12 big street,");
        list.add("koyambadu,");
        list.add("chennai");
       
        Log.v("hari","MainActivityFrom") ;
        btn1 = (Button) findViewById(R.id.button1);
       
        objects = new MyParcealableObjects("harikrishnan",26,list) ;
       
        btn1.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
               
                //Passing MyOjects instance
                Intent mIntent = new Intent(MainActivityFrom.this, MainActivityTo.class);
                mIntent.putExtra("key", objects);
                startActivity(mIntent);
                               
            }
        }) ;
               
    }
}


//-------------MainActivityTo.java-----------------------------------------------------------------
 public class MainActivityTo extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_second);
      
      
      
        //Bundle data = getIntent().getExtras();
    //  
        //Getting MyParcealableObjects instance
        Intent mIntent = getIntent();
        MyParcealableObjects workorder = (MyParcealableObjects) mIntent.getParcelableExtra("key");
      
        Log.v("hari","workorder:"+workorder.getAge()+"--"+workorder.getName()+"--"+workorder.getAddress());
      
      
    }
}

//------------------------------------------------------------------------------------------------

 package com.example.testing1;

import java.util.ArrayList;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import android.util.Log;

public class MyParcealableObjects implements Parcelable {

private int age;
private String name;

private ArrayList<String> address;

public MyParcealableObjects(String name, int age, ArrayList<String> address) {
    this.name = name;
    this.age = age;
    this.address = address;

}

public MyParcealableObjects(Parcel source) {
    age = source.readInt();
    name = source.readString();
    address = source.createStringArrayList();
}

@Override
public int describeContents() {
    return 0;
}

@Override
public void writeToParcel(Parcel dest, int flags) {
  
    Log.v("hari", "writeToParcel:dest:"+dest+"--flags:"+flags);
  
    dest.writeInt(age);
    dest.writeString(name);
    dest.writeStringList(address);

}

public int getAge() {
    return age;
}

public String getName() {
    return name;
}

public ArrayList<String> getAddress() {
    if (!(address == null))
        return address;
    else
        return new ArrayList<String>();
}

public static final Creator<MyParcealableObjects> CREATOR = new Creator<MyParcealableObjects>() {
    @Override
    public MyParcealableObjects[] newArray(int size) {
        return new MyParcealableObjects[size];
    }

    @Override
    public MyParcealableObjects createFromParcel(Parcel source) {
        return new MyParcealableObjects(source);
    }
};

}
//------------------------------------------------------------------------------------------




is it possible to start a thread in Asynctask doinbackground method in android

yes, we can start a new separate thread inside asynctask doinbackground method..

also ,  we can start new asynctask inside another asynctask in android..