Langsung ke konten utama

Postingan

Menampilkan postingan dari Oktober, 2015

How to Create a Digital Signature Application in Android

In this post, I will show you how to Create Digital Signature in Android. Project Structure: Create a new Project in Eclipse/Android Studio with the required Specifications. Codes: AndroidManifest.xml Don't forget to add the following permission in your manifest file <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission> color.xml Create color.xml and replace it with the following code <resources> <color name="ColorPrimaryDark">#3367d6</color> <color name="ColorPrimary">#4285f4</color> </resources> strings.xml Create strings.xml and replace it with the following code <resources> <string name="app_name">Digital Signature</string> <string name="hello_world">Hello world!</string> <string name="action_settings">Settings</string> <string name="hint_sign">Get Signature</st

How to Add and Remove Grids in GridView Dynamically

In this post, I will show you how to add and remove grids in GridView. And also, I am explained about SharedPreferences. Project Structure: Create a new Project in Eclipse/Android Studio with the required Specifications. Codes: activity_main.xml Create activity_main.xml and replace it with the following code <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="5" android:orientation="vertical"> <GridView android:id="@+id/gridView1" android:layout_width="match_parent" android:layout_height="0dp" android:columnWidth="100dp" android:gravity="center" android:numColumns="auto_fit" android:stretchMode="columnWidth" android:layout_weight="4.5"/> <LinearLayo

How to perform CRUD Operations in Android SQLite with Blob

In this post, I will show you how to perform CRUD ( C reate, R ead, U pdate and D elete) operation with Images from Gallery in SQLite which is embedded in Android devices. Codes: AndroidManifest.xml Don't forget to add the following permission in your manifest file. DBHelper.java Open DBHelper.java and replace it with the following code. package com.example.blob.helper; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBHelper extends SQLiteOpenHelper { static DBHelper dbhelper; static final String DATABASE_NAME = "IMAGE_EX"; static final int DATABASE_VERSION = 1; public static final String IMAGE_TABLE="image_table"; public static final String IMAGE_="image"; public static final String IMAGE_NAME="image_name"; public static final String IMAGE_ID="id"; public static final String IMAGE_EX = "CREATE TABLE

How to Extract source files from any APK

In this post, I will show How to Extract source files from any APK in Windows. Tools Required For this, we need the following 5 files. apktool.jar.zip apktool-install-windows-r05-ibot.tar.bz2 dex2jar-0.0.9.15.zip jd-gui-0.3.6.windows.zip app.apk (any apk your want to extract) Download Tools Download the above mentioned tools from the following link Click Here to download the required tools Steps Create New Folder and keep all the 5 files in it. Extract all the files. For APK, change .apk extension into .zip and extract it too. Again, change .zip extension into .apk for APK. Create New folder and move all the extracted files into it except jd-gui. Move your APK file too into the created folder. Open your Command Prompt and route that to your Created folder. Now, execute the following command in Command Prompt. dex2jar classes.dex Now, open your jd-gui and route it to your created folder and select classes.dex2jar.zip and hit enter. And select File --> Save All Sources and save

How to Increase phpMyAdmin's Import Size

By default php engine in WAMP Server provides import size of 2Mb. What if someone needs to import a large database, say 20Mb. The Solution to increase the database size is given and which changes the original configuration permanently. Open php.ini files in C:\wamp\bin\php\php5.3.5 and C:\wamp\bin\apache\Apache2.2.17\bin and perform following in both files. Locate upload_max_filesize and set its value as large as you want. For example upload_max_filesize = 100M (M denotes Mb) Locate post_max_size and set its value as large as upload_max_filesize. For example post_max_size = 120M Locate memory_limit and set its value as large as post_max_size. For example memory_limit = 140M What if we didn't change post_max_size? By default post_max_size is set to 8M. So, phpMyAdmin will not extend it's import size greater than 8M.