Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/addonsol/public_html/addontechnologies.net/knowledge-base/wp-includes/plugin.php on line 601
Android Archives - Page 2 of 8 - Knowledge Base
Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/addonsol/public_html/addontechnologies.net/knowledge-base/wp-includes/plugin.php on line 601
Knowledge Base

How to Make a gridview Item in perfect square ?

With this answer we no need to specify the height and width to gridview. We can easily manage gridview item with proper square with this customsquare view. Below I add the customsquare view code and also how to implement in

Read More

Using Edit Text IME Option in Android App.

An Editor Info is most useful class when you have to deal with any type of user input in your Android application. For e.g. in login/registration/search operations we can use it for more accurate keyboard input. Example:   mainactivity.xml: <EditText android:id=”@+id/editText1″ android:layout_width=”wrap_content” android:layout_height=”wrap_content”

Read More

How to retrive BLOB Image from database in android?

Step 1 : add database in your src folder.   import java.io.ByteArrayOutputStream; import com.blobimageretrive.Data; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Bitmap.CompressFormat; public class DBAdapter { private static final int

Read More

How to search all wifi devices programmatically in android?

import java.io.File; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.wifi.ScanResult; import android.net.wifi.WifiConfiguration; import android.net.wifi.WifiManager; import android.net.wifi.p2p.WifiP2pManager; import android.net.wifi.p2p.WifiP2pManager.Channel; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.AdapterView; import android.widget.AdapterView.OnItemClickListener;

Read More

How to read custom pdf in android?

Step 1 :  create activity in src folder. import net.sf.andpdf.pdfviewer.PdfViewerActivity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); try{ Intent intent = new Intent(this, MyPdfViewerActivity.class); intent.putExtra(PdfViewerActivity.EXTRA_PDFFILENAME,filepath);

Read More