0

anybody please help me regarding in app crediting within android app, which show dialog message/splash text on app startup; like "hacked by RIU - WWW.ALPHAGAMER.ORG" as shown in the screenshot

Michael Yaworski
  • 13,410
  • 19
  • 69
  • 97
  • 1
    possible duplicate of [How to show splash image while loading activity](http://stackoverflow.com/questions/8179092/how-to-show-splash-image-while-loading-activity) – Ted Hopp Jan 05 '14 at 08:18

3 Answers3

2

Just do a Toast when the application is starting

Context context = getApplicationContext();
CharSequence text = "Hello toast!";
int duration = Toast.LENGTH_SHORT;

Toast toast = Toast.makeText(context, text, duration);
toast.show();

http://developer.android.com/guide/topics/ui/notifiers/toasts.html

SuNnY_sYeD
  • 513
  • 1
  • 6
  • 19
2

You can use following code to do this-

Toast toast = Toast.makeText(getApplicationContext(), "Hacked by Riu", Toast.LENGTH_LONG);
toast.show();

You can use Toast.LENGTH_SHORT for smaller duration.

Kanwaljit Singh
  • 4,339
  • 2
  • 18
  • 21
general_bearbrand
  • 827
  • 5
  • 13
  • 29
0

You need to show Toast. get the running tasks using ActivityManager, get the top task and get the top activity from that task. if top activity package name is equal to the package name of target app, show the Toast. for this you need to run a Service and check for running tasks at regular intervals (might be for every 1 sec) and do validation as said...

Gopal Gopi
  • 11,101
  • 1
  • 30
  • 43