Android Trainer

How to spoof or fake GPS location in Marshmallow?

Android Tutorials

Android Tutorials

Objectives :

  • How to spoof GPS location in Marshmallow?
  • How to fake GPS location in Marshmallow?

To spoof / fake GPS location in Marshmallow follow the steps below :

  1. Go to “Settings”
  2. Go to “About phone”
  3. Scroll to the bottom until you see Build Number.
  4. Repeatedly tap it until you unlock “Developer options”
  5. Go back to “Settings”
  6. Right above “About phone”, you will now see “Developer options”.
  7. Look for “Select mock location app”
  8. Click on this to select the app you use to GPS spoof.

 

Subscribe blog for more updates.

Passing data between activities in Android

Objective :

  • Passing data between activities in Android
  • Passing multiple data between activities in Android
  • Passing array between activities in Android
  • Passing ArrayList between activities in Android
  • Passing ArrayList to another activity in Android
  • Sending data via Intent in Android
  • Sending multiple data via Intent in Android
  • Sending array between activities in Android
  • Sending ArrayList between activities in Android
  • Sending ArrayList to another activity in Android
  • Sending data via Intent and Bundle in Android
  • Sending multiple data via Intent and Bundle in Android
  • Passing array between activities in Android using Intent and Bundle
  • How to pass array to another activity in Android?
  • How to pass array between activities in Android?
  • How to pass data to another activity in Android?
  • How to pass data to activity in Android?
  • How to pass data to between activities in Android?
  • How to pass ArrayList to another activity in Android?
  • How to pass ArrayList between activities in Android?

 

Code for passing data between activities in Android :

ActivityOne.java

[sourcecode lang=”java”]

String value = "Hello!";
Intent in = new Intent(this,ActivityTwo.class);
in.putExtra("Key", value);
startActivity(in);

[/sourcecode]

ActivityTwo.java

[sourcecode lang=”java”]

Bundle bundle = getIntent().getExtras();
String valueReceived = bundle .getString("Key");

[/sourcecode]

 

Code for passing multiple data or values between activities in Android :

Method 1 : Using Intent to pass data and Bundle to extract data between activities in Android

ActivityOne.java

[sourcecode lang=”java”]

String value1 = "Hello!";
String value2 = "Hi!";
Intent in = new Intent(this,ActivityTwo.class);
in.putExtra("Key1", value1);
in.putExtra("Key2", value2);
startActivity(in);
[/sourcecode]

ActivityTwo.java

[sourcecode lang=”java”]
Bundle bundle = getIntent().getExtras();
String valueReceived1 = bundle .getString("Key1");
String valueReceived2 = bundle .getString("Key2");
[/sourcecode]

 

Method 2 : Using Bundle to pass and to extract data between activities in Android

ActivityOne.java

[sourcecode lang=”java”]

String value1 = "Hello!";
String value2 = "Hi!";
Intent in = new Intent(this,ActivityTwo.class);
Bundle bundle = new Bundle();
bundle.putString("Key1", value1);
bundle.putString("Key2", value2);
in.putExtras(bundle);
startActivity(in);
[/sourcecode]

ActivityTwo.java

[sourcecode lang=”java”]
Bundle bundle = getIntent().getExtras();
String valueReceived1 = bundle .getString("Key1");
String valueReceived2 = bundle .getString("Key2");
[/sourcecode]

 

Code for passing array between activities in Android :

ActivityOne.java

[sourcecode lang=”java”]
String[] array = new String[]{"Item1", "Item2", "item3", "Item4", "item5"};
Intent in = new Intent(this,ActivityTwo.class);
Bundle bundle = new Bundle();
bundle.putStringArray("MyArray", array);
in.putExtras(bundle);
startActivity(in);
[/sourcecode]

ActivityTwo.java

[sourcecode lang=”java”]
Bundle bundle = getIntent().getExtras();
String arrayReceived[] = bundle.getStringArray("MyArray");
[/sourcecode]

 

Code for passing ArrayList between activities in Android :

ActivityOne.java

[sourcecode lang=”java”]
ArrayList<String> array = new ArrayList<String>();
array.add("Hello");
array.add("Hi");
array.add("Bye");
Intent intent = new Intent(this, ActivityTwo.class);
intent.putExtra("array_list", array);
startActivity(intent);
[/sourcecode]

ActivityTwo.java

[sourcecode lang=”java”]
Bundle bundle = getIntent().getExtras();
ArrayList<String> array = (ArrayList<String>) bundle.getStringArrayList("array_list");
[/sourcecode]


Have fun with Intent.

How should a trainer handle rude participants in a training workshop?

Objectives:

  • How should a trainer handle rude participants in a training workshop?
  • Do’s and Don’ts for Trainer

The ability to handle rude participants is critical to success as a trainer as each trainer has at one or the other time encountered rude participants. The participants who continue talking, who work on their laptops while you are training, who continuously attend calls on their mobiles, who flat out say you are wrong or you have no clue what it is to be in their shoes, participants who recline on their chairs as if they are in a lounge, who ask irrelevant questions…. the list is endless.

So, what can you do to prevent rude participants from derailing or hijacking a training workshop?

1. Do some pre-work to ensure a great learning environment: Many things impact a participant even before they meet you: how was the training need communicated to them? Do they think they NEED training? etc. Many times these are out of our control but I like to request clients to copy me on emails they send to the participants.

2. Invest some time in the beginning of the session establishing your credibility and getting them to articulate why they should invest their time learning what you are going to cover.

3. Set the training norms collaboratively upfront: your expectations from them, their expectations from you should be on the table and any misalignment needs to be handled. Here come issues like late to class, talking instead of doing assignments etc. Discuss course of action if someone oversteps the boundaries that you all have collaboratively set. Agree on how you will handle disagreements if any i.e. agree on how to disagree.

So, basically we attempt to pre-empt rudeness.

If after all of this, someone is rude, then we can take recourse to some of the following strategies:

1. Isolate what form the rudeness is taking: talking amongst themselves, asking irrelevant questions, negative body language, refusal to engage in any of the activities etc.

2. If the rude participants are in a group, split up the group by doing an activity in which you shift people around in the room. My favourite is to use numbers to divide people into groups as it ensures people who are sitting together are not in the same group.

3. Move the rude participants to the front of the room. Basically near you. Now shower them with your keen attention.

4. Redirect their attention by making them participate in the training activities. Use persuasion.

5. For one off comments, say “interesting point of view, lets discuss in the tea break”, and move on without getting affected.

6. If they are asking questions or expressing views, give the participant a patient hearing and try to see it from their perspective. Let them fully express themselves, then if the question is pertinent to the topic answer it. You can also ask for their permission to park the question and answer it later. If they feel heard they will allow that.

7. Be assertive. Tell them that while you appreciate their views, you have differing views. You could also say that since their concern is not the concern of the majority you will handle it post the session.

8. If time is not permitting then tell them you will discuss it with them in the break. Then do not forget to do so.

9. Do not let it get personal. It should not be your view vs. theirs. Ask other participants for their take on the issue / question. Then wrap up with summarizing the views.

10. Humour if used appropriately, can work wonders.

How to publish Android app to Google Play Store?

Objectives :

  • How to publish Android app to Google Play Store?
  • How to publish Android app to Google Play Store using Eclipse?
  • How to create keystore in Android?
  • How to zip align an Android app?
  • How to export signed Android package?
  • How to export signed Android APK?
  • How to export signed Android app?
  • How to create signature for Android app?
  • How to compress Android app for publishing?
  • How to make an Android app ready for publishing?

This video will guide you to publish your own Android apps on Google Play through some simple steps and that too with few clicks. This small video will answer all the questions above.

The video was recorded during a Online Android Training and uploading unedited video here. The training was conducted from Doha, Qatar. If you need online training on Android or need any support, please feel free to write me at aatul@ancyber.com

Please feel free to share the video if you like it and do comment below. And subscribe to my YouTube channel for more video tutorials.

[youtube=https://www.youtube.com/watch?v=1PsByMlw_zE]

Android Training at Oracle

20141215_175238

 

Conducted 3 days Live and Online Android Training at Oracle Mumbai from Oracle Park, Pune dated 15th Dec. 2014 to 17th Dec. 2014. It was a great experience to conduct training for the giant like Oracle. It is always pleasure and fun working with Oracle people. After the completion of the training received great feedback from all the attendees, glad to see that people out there liked training methodology. I always love to share the knowledge and experiences with the people.

Seminar on Android & HTML5

[youtube=https://www.youtube.com/watch?v=Vz0hIBRr754]

Conducted Seminar on Android and HTML5 at Ttulsiramji Gaikwad College of Engineering and Technology, Mohgaon, Nagpur on 28th Aug. 2014 for the students of second year, third year and final year Information Technology.

Android Workshop at MHSSCOE

[youtube=https://www.youtube.com/watch?v=DEOJnEYiGb4]

Conducted two days Android Workshop at M.H. Saboo Siddik College of Engineering, Byculla, Mumbai on 11th and 12th Aug 2014.

There were around 100 students who attended the workshop and get benefited out of it. Few staff member also attended the workshop.

The infrastructure of the college is very good and the seminar hall where we conducted workshop was also very good. The staff, coordinators and the student were also very good and keen to learn new technologies. I would love to visit the place again. I am very thankful to the coordinators who had assisted a lot during the training and for all the arrangements they have made for me.

Professional Android Training at SITRC

[youtube=https://www.youtube.com/watch?v=y7QVkAKByao]

Conducted 60 hours Professional Android Training at Sandip Institute of Technology and Research Center (SITRC), Nashik, Maharashtra – India.

I love to visit this college since the students of this college are very eager to learn new things. On the last day of the training students developed various android application such as;

1. Thank You (Gratitude app)
2. Encrypted SMS
3. PnC (Permutation and Combinations)
4. Guess Game (Anagram)
5. SQL Commands Tutorial App
6. Tic Tac Toe, etc.

And so many other apps were also ready.

The staff of the college is also very good specially HOD of Computer Department Mr. Amol Potgantwar and Mr. Nikhil Kulkarni who motivate students a lot.

The staff and students of this college has filed 30 patents last year and still counting.