Just Simple Info

Pages

Upload File to Server With Extra String Data In Android




I developing android application that need to upload images in server using okhttp3 library.
This library work great with small amount of time writing code. Then suddenly my internet connection get worst. I thought my application not working because no server response for almost a minute. Luckily android studio has great tool for debugging. I notice that my application have network activity therefore the android application is working.

So I write simple code to show uploading progress to notify user what happening.

Android Simple Login with Php and Mysql



Android Simple Login with Php and Mysql
Must android application required connection in cloud server. So I wrote this simple code to share an idea on how to create simple login in android application connected to server using PHP and Mysql database and OkHttp library.

Android as Web Server

set android as web server


This sample code is about how to set android device as your web server on local network.
It may use to develop android application which need to transfer file from your laptop or desktop without need of any application in client side just a browser.

Save AES encypted object as file in android storage

Sometimes android application need to save some data in device storage.
It is not a good practice that data in file is human readable.

So, now I going to share simple code to save file encrpyted AES ecrypted.

Enable internet connection in CentOs 7 installed in virtualbox

I have having hard time to enable internet connection in CentOs 7 installed in VirtualBox.
When I execute command 'ping google.com' the output is 'ping: unknown host google.com'.

Now I will share the steps on how to enable the internet connection in virtulabox.

Hope it helps...

1. Right click the installed CentOs in virtualbox and select settings. In next window select Network then just copy setting like in image below.


Search Auto Suggest In Android (AutoCompleteTextView)



AutoCompleteTextView in one of the most important android view for user experience. Imagine your application has ListView with hundred of item display. It’s hard for users to find the item they want to see.

Thanks for AutoCompleteTextView, users will just type the chunk of word of item they want to see the AutoCompleteTextView will just display items based on what user type in.

Speed up Large Data Insertion in Sqlite Database in Android Application


Speed up large data insertion in sqlite database in android application

In my android project I need to insert large data in sqlite database. Inserting 20000 lines of data using ContentValues is not a good idea in term of speed of insertion. It's take more than a minute.