Search found 35 matches

Go to advanced search

by vivekkalady
Sun Dec 14, 2014 3:36 pm
Forum: Tutorials & Examples
Topic: Manual Proxy in Android Studio
Replies: 0
Views: 7429

Manual Proxy in Android Studio

If your android studio is stuck because you are behind a proxy,then you can setup manual proxy by this method. Got you this location by pasting this in the addressbar of windows explorer %HOMEPATH%\.AndroidStudio\config\options The proxy is given in the other.xml file Proxy.jpg Modify the code accor...
by vivekkalady
Tue Dec 02, 2014 6:11 pm
Forum: Tutorials & Examples
Topic: Compare Multidimensional Array in Android
Replies: 0
Views: 454

Compare Multidimensional Array in Android

First way to check equality is to use deepEquals: boolean check1 = Arrays.deepEquals(a2, a3); Second way is to iterate the outer array explicitly: boolean check1 = true; for (int i = 0; check1 && i < a2.length; ++i) { check1 = Arrays.equals(a2[i], a3[i]); } Thirst Way you can create a custo...
by vivekkalady
Sun Nov 30, 2014 1:35 pm
Forum: Tutorials & Examples
Topic: Start Activity for Result in Fragment
Replies: 0
Views: 1017

Start Activity for Result in Fragment

Explicit call from fragment to onActivityResult function as follows In Parent Activity class, override the onActivityResult() method and even override the same in Fragment Class and call as the following code. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { ...
by vivekkalady
Sun Nov 30, 2014 1:16 pm
Forum: Tutorials & Examples
Topic: Create Thumbnails in Android
Replies: 0
Views: 1036

Create Thumbnails in Android

First Method Thumbnails can be created by using ThumbnamilUtils class available in android Image Thumbnail final int THUMBSIZE = 64; Bitmap ThumbImage = ThumbnailUtils.extractThumbnail(BitmapFactory.decodeFile(imagePath), THUMBSIZE, THUMBSIZE); Video Thumbnail // MICRO_KIND: 96 x 96 thumbnail bmThu...
by vivekkalady
Thu Nov 27, 2014 6:01 pm
Forum: Tutorials & Examples
Topic: Simple Alert Dialog Example for Android
Replies: 0
Views: 275

Simple Alert Dialog Example for Android

This is a simple example to show the usage of Alert.Dialog.This code is used to Show the About Us in an application private boolean aboutDialog() { // TODO Auto-generated method stub String vNo=""; try { vNo=MainActivity.this.getPackageManager().getPackageInfo(MainActivity.this.getPackageN...
by vivekkalady
Thu Nov 27, 2014 5:51 pm
Forum: Libraries
Topic: AppRate - A Library to Prompt Users to Rate your Application
Replies: 0
Views: 6434

AppRate - A Library to Prompt Users to Rate your Application

AppRate ⋅ AppRate allows your users to rate your application. ⋅ AppRate shows a customizable rate dialog according to your chosen settings. How to install and use ⋅ Put the AppRate jar in your libs folder or add AppRate as a library project. ⋅ Use AppRate as ...
by vivekkalady
Thu Nov 27, 2014 5:34 pm
Forum: Tutorials & Examples
Topic: Shared Preference in Android
Replies: 0
Views: 360

Shared Preference in Android

You can save and retrieve key, value pair data from Shared preferences. SharedPreferences values will persist across user sessions. Data in shared preferences will be persistent even though user closes the application. You can get values from Shared preferences using getSharedPreferences() method. Y...
by vivekkalady
Thu Nov 27, 2014 4:57 pm
Forum: Tutorials & Examples
Topic: Custom Dialog in Android
Replies: 0
Views: 889

Custom Dialog in Android

Custom Dialog First Method This Method is simple.Without creating a separate class final Dialog dialog = new Dialog(context); dialog.setContentView(R.layout.custom); dialog.setTitle("Title..."); // set the custom dialog components - text, image and button TextView text = (TextView) dialog...
by vivekkalady
Mon Nov 24, 2014 4:48 pm
Forum: Tutorials & Examples
Topic: Adjust Brightness in Android Programatically
Replies: 0
Views: 336

Adjust Brightness in Android Programatically

First Method This Method is used to increase brightness of the current window WindowManager.LayoutParams lp = getWindow().getAttributes(); lp.screenBrightness = 75 / 100.0f; getWindow().setAttributes(lp); where the brightness value very according to 1.0f.100f is maximum brightness. Second Method Th...
by vivekkalady
Mon Nov 24, 2014 3:41 pm
Forum: Tutorials & Examples
Topic: Send Data from Activity to Fragment in Android
Replies: 0
Views: 2827

Send Data from Activity to Fragment in Android

We can send data to a fragment by using Bundle First Method eg:- Bundle bundle = new Bundle(); bundle.putString("Key", "StringValue"); NewFragment fragobj = new NewFragment(); fragobj.setArguments(bundle); Then in Fragment we can take the data as Fragment onCreateView method: @Ov...

Go to advanced search

cron