Friday, February 27, 2015

Simple Rss Reader Application in Android


After migrating from Ecipse, I have created simple Android News Reader application in Android Studio with XmlPull Parser, ViewPager, SlidingTabLayout, Fragment, AppCompat-v7 Libary with Material Design.

I have taken ndtv rss xml feed as sample to show how it works.

Note:
There are some issues in webview to watch video.



Screen Shots:




                           


Sample Demo:


















Source Code of the Project :

DropBox Link.





Thursday, February 26, 2015

Helper Methods in JAVA/Android


 Helper Methods in JAVA/Android. I will add more to this Post..



 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package com.jsp.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
import android.app.AlertDialog;
import android.content.Context;
import android.util.Log;
import android.view.Gravity;
import android.widget.Toast;

public class HelperMethods {

// 1) Convert datetime from one format to other format

public static String changeDateFormat(String inputDateString) {

String formatedDate = "";

// yyyy-dd-MM HH:mm
SimpleDateFormat inputFormat = new SimpleDateFormat("yyyy-dd-MM HH:mm",
Locale.getDefault());

// MMM d yyyy HH:mm
// MMM d yy HH:mm
SimpleDateFormat myFormat = new SimpleDateFormat("MMM d yyyy HH:mm",
Locale.getDefault());

try {
formatedDate = myFormat.format(inputFormat.parse(inputDateString));

System.out.print(formatedDate);

} catch (java.text.ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

return formatedDate;
}

// 2) Get Present DateTime

public String getPresentDatetime() {
Calendar c = Calendar.getInstance();

// dd-MM-yyyy KK:mm:ss a
SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy KK:mm:ss a",
Locale.getDefault());
String formattedDate = df.format(c.getTime());
return formattedDate;

}

// 3) Toast Helper Methods

public static void showToastAtCenter(Context context, String text) {
Toast toast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
toast.setGravity(Gravity.CENTER, 0, 0);
Log.i("Seltis-showToast", "" + text);
toast.show();
}

public static void showToastAtBottom(Context context, String text) {
Toast toast = Toast.makeText(context, text, Toast.LENGTH_LONG);
toast.setGravity(Gravity.BOTTOM, 0, 0);
Log.i("Seltis-showToastBotom", "" + text);
toast.show();
}

// 4) Alert Dialog
public static void showAlertDialog(Context context, String title,
String message) {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
if (title != null)
builder.setTitle(title);
builder.setMessage(message);
builder.setNegativeButton("OK", null);
builder.show();
}

}

Saturday, February 7, 2015

What do you mean by CryoVolcano?

A cryovolcano (colloquially known as an ice volcano) erupts slurries of volatile compounds such as water or methane instead of lava. These substances are usually liquids and form plumes, but can also be in vapour form. After eruption, cryomagma condenses to a solid form when exposed to the very low surrounding temperature. Cryovolcanoes form on icy moons, and possibly on other low-temperature astronomical objects (e.g., Kuiper belt objects).
The energy required to melt ices and produce cryovolcanoes usually comes from tidal friction. It has also been suggested that translucent deposits of frozen materials could create a sub-surface greenhouse effect that would accumulate the required heat.
Ice volcanoes were first observed on Neptune's moon Triton during the Voyager 2 flyby in 1989.
On November 27, 2005 Cassini photographed geysers on the south pole of Enceladus.

Indirect evidence of cryovolcanic activity was later observed on several other icy moons of our Solar System, including Europa, Titan, Ganymede, and Miranda. Cassini has observed several features thought to be cryovolcanoes on Titan. Such volcanism is now believed to be a significant source of the methane found in Titan's atmosphere.
In 2007, observations by the Gemini Observatory showing patches of ammonia hydrates and water crystals on the surface of Pluto's moon Charon suggested the presence of active cryovolcanoes/cryo-geysers


 -Content taken from wikipedia

Sunday, February 1, 2015

Dino Island Cheats

Unlimited Coins, Unlimited Diamond, Unlimited Mangoes, All Dino Unlocked.                                                                                                                                                             Dino Island Cheats
Dino Island Cheatsclick on the image to see more screenshot

UPDATED ON FEBRUARY 02, 2015

DESCRIPTION
 • Dino Island game save file
 • Level 38
 • 1,842,327,198 coins
 • 100,977,124 Diamonds
 • 109,427,393 Mangoes
 • All Dino unlocked
 • All Island unlocked
 • You can update the game after applied this cheat
 • Only work for rooted devices

TESTED AND WORKS ON
  • Jiayu G5 phone and several devices.
  • Dino Island v1.1.0
  • Android 4.2.1 | 4.4.2

WARNING!!!
  • This will remove your current progress!
  • Backup your game data!

LET'S DO IT
  • Force stop and clear game data
  • Download game save file
  • Extract to /data/data/ 
  • Run your game and enjoy

IMPORTANT!
  • How to force stop and clear game data
  • How to extract game save to /data/data/
  • How to get access to /data/data/
  • How to backup game data
  • How to check root on your device
  • How to find bestselling product  ads