The Way Of Life
Google

Tuesday, March 28, 2023

Error “Data supplied is of wrong type” When Copying File from Smartphone to Computer

Error "Data supplied is of wrong type.

This error appears when I was copying a file from Smartphone ( Samsung S7 Edge ) to my Laptop. I have bought two micro USB cable data, but still errors when copying data.  I thought that was a data cable issue, and it caused corrupted the file when transferred through the data cable

The error message is “Data supplied is of wrong type”.

My second try was installing USB Driver from Samsung. In my thought that if the laptop doesn’t have USB Driver installed it caused the problem above. But the error still appears.


But Finally, the solution is simple, you need to reboot your smartphone. And everything's gonna be OK.


Good luck and have fun.



Software :

Windows 10 Pro

Hardware:

Samsung S7 Edge

Micro USB Data Cable 

Labels: , , ,

Monday, September 13, 2021

Aplikasi BPJSTKU Error Pada HP Android VIVO

 

Aplikasi BPJSTKU

Kali ini saya akan berbagi pengalaman tentang aplikasi BPJSTKU yang berbasis Android error pada Smartphone Android merk VIVOAplikasi BPJSTKU pada saat ditekan tombol LOGIN , aplikasi langsung keluar / close. Atau ketika masuk ke menu Pendaftaran Pengguna Baru, pada saat setelah selesai mengetik tanggal lahir kemudian menekan tombol  LANJUT, tiba tiba aplikasi keluar sendiri. Jika anda mendapatkan masalah di atas, dan komplain langsung di kantor BPJS biasanya anda disarankan untuk menhubungi CALL CENTER BPJS yaitu 175. Tetapi jika anda tidak mendapatkan solusi pada CALL CENTER tersebut, semoga artikel ini bisa membantu.

Input Tanggal Lahir


Biasanya muncul notifikasi Error pada Smartphone VIVO  yaitu :

“Pengecualian waktu pengoperasian “BPJSTKU”

“BPJSTKU” mengalami macet. Hubungi layanan pelanggan “BPJSTKU” untuk mendapatkan solusi

Pesan Error BPJSTKU di HP VIVO

Nah kali ini saya akan berbagi solusi khususnya di Smartphone VIVO untuk masalah tersebut. Langkah Langkanya antara lain :


Untuk tiap versi Android tentu ada sedikit perbedaan struktur menu di bawah ini, tetapi secara garis besar sama.

Masuk Ke Menu Pengaturan – Pengaturan Lainnya – Aplikasi – Terpasang – “BPJSTKU” – Penyimpanan , kemudian Hapus Data dan Hapus  Cache

Hapus Data dan Hapus Cache



Setelah itu buka aplikasi BPJSTKU kembali.

Semoga bermanfaat


Labels: , ,

Tuesday, January 12, 2021

Aplikasi BPJSTKU Error Pada HP Android VIVO

Aplikasi BPJSTKU

Kali ini saya akan berbagi pengalaman tentang aplikasi BPJSTKU yang berbasis Android error pada Smartphone Android merk VIVO. Aplikasi BPJSTKU pada saat ditekan tombol LOGIN , aplikasi langsung keluar / close. Atau ketika masuk ke menu Pendaftaran Pengguna Baru, pada saat setelah selesai mengetik tanggal lahir kemudian menekan tombol  LANJUT, tiba tiba aplikasi keluar sendiri. Jika anda mendapatkan masalah di atas, dan komplain langsung di kantor BPJS biasanya anda disarankan untuk menhubungi CALL CENTER BPJS yaitu 175. Tetapi jika anda tidak mendapatkan solusi pada CALL CENTER tersebut, semoga artikel ini bisa membantu.

Input Tanggal Lahir


Biasanya muncul notifikasi Error pada Smartphone VIVO  yaitu :

“Pengecualian waktu pengoperasian “BPJSTKU”

“BPJSTKU” mengalami macet. Hubungi layanan pelanggan “BPJSTKU” untuk mendapatkan solusi

Pesan Error BPJSTKU di HP VIVO

Nah kali ini saya akan berbagi solusi khususnya di Smartphone VIVO untuk masalah tersebut. Langkah Langkanya antara lain :


Untuk tiap versi Android tentu ada sedikit perbedaan struktur menu di bawah ini, tetapi secara garis besar sama.

Masuk Ke Menu Pengaturan – Pengaturan Lainnya – Aplikasi – Terpasang – “BPJSTKU” – Penyimpanan , kemudian Hapus Data dan Hapus  Cache

Hapus Data dan Hapus Cache



Setelah itu buka aplikasi BPJSTKU kembali.

Semoga bermanfaat


Labels: , ,

Wednesday, May 09, 2012

How Fast JSON on Android ?


This time, I will show you, how fast Android Application parsed JSON from Microsoft SQL Server. I've used Android Emulator ( AVD Manager ), perhaps it will be so much faster on the real Android handset. First I check my speed connection with speedtest.net, and here is the result

And then i check signal bar on my modem, and here is the result 


I will query 1478 records from Microsoft SQL Server via internet using PHP web service from my house, it takes at least 10 seconds, on local network it takes at least 5 second, you can checked at this video.


When I use keyword for searching the records it takes under 2 seconds.

 

That means, JSON is fast enough to transfer data from Microsoft SQL Server to Android.

related links:




Labels: , , , , , ,

Friday, March 30, 2012

Ubuntu-Apache-PHP-FreeTDS-MSSQL


This article is part two of my previous articles that is Android-PHP-Microsoft SQL Server. This time i will share, how to make web server in the "real life", this web server used Linux Ubuntu as operating system. Why I call "real life", because we are not used XAMPP again like on Windows at development phase. We will make real web server on Linux to handle data from SQL Server to our android application. Using the web server as a link between the android and MSSQL has several problems that we must understand.

You must understand that web server respond is not as fast ADO connection on desktop programming. Second, web server used internet connection that have up and down speed connection that we cannot guarantee. With that problems, you must learn how to make a several query in SQL that handle several process on android, and make on one "single shoot" to Microsoft SQL Server to reach "Speed of Light". The point is how to make minimum data traffic between Android and MS SQL Server. And the last you need to secure data path with cryptographic protocol (SSL) to prevents Man In The Middle Attack.

Okay, lets began our project, first we must collecting our tools :
1. Linux Ubuntu ver 11.10 you can download the ISO here, and burn to CD.
2. Apache Web Server for Linux.
3. PHP.
4. FreeTDS, to get PHP seeing Microsoft SQL Server.
5. Microsoft SQL Server as database server.

First, we must fresh install Linux Ubuntu on our Linux Box. I think I do not need to explain on this part.

And then , we must install apache web server on our Linux Box, with several command on terminal windows.

# sudo su
# apt-get install apache2

then install PHP 5

# apt-get install php5
# /etc/init.d/apache2 restart


Install FreeTDS to get PHP seeing Microsoft SQL Server, i found really good and simple tutorial and i was added several steps, as below:

1. mkdir source and then cd source
2. apt-get source php5
3. tar -xf php5_5.3.6.orig.tar.gz
4. cd /php-5.3.6/ext/mssql
5. apt-get install freetds-dev

6. apt-get install php5-dev
7. phpize
8. ./configure –with-mssql
9. make
10. php -i grep | extension_dir

10. cp /modules/mssql.so /usr/lib/php5/20090626+lfs
11. nano /etc/php5/apache2/php.ini and add on a new line the following ; extension = mssql.so then save
12. /etc/init.d/apache2 restart


13. nano /etc/freetds/freetds.conf and add this on the end of the file :

[yourserver]
host = your.server.name
port = 1433
tds version = 8.0 

14. and test your mssql_connect , on my php script i was select sysobjects table on Microsoft SQL Server, and if it return values from mssql_rows_affected then display "SUCESS" as the picture below.

Have Fun! Someday i will show you real android application that i make. There are many uses of Android Applications, such as mobile POS, e-prescribing, if your are a doctor, you can prescribed from anywhere in the world with android apps, if you are a boss you can check the balance sheet and income statement in the Hawaiian beach with drinking coconut ice with android apps.If you have any questions, you can email me at budy_wijaya@yahoo.com , or via comments on this blog.


picture take from here
related links:


Android - PHP - Microsoft SQL Server

How Fast is JSON on Android? 

Could Not Find libtds.so

A Beginner’s Guide to SQL: A MySQL Tutorial





Labels: , , , ,

Sunday, March 04, 2012

Android - PHP - Microsoft SQL Server

As I promised before, now I would like to share how to create Android applications that connect to Microsoft SQL Server database, using PHP Web Service. And one more thing I want to teach you about how to make Android application WITHOUT using the JAVA programming language. Okay, the tools we will use this time are:

1. Basic 4 Android, you can download it here.
2. XAMPP as a web server, you can download it here.
3. Microsoft SQL Server 2000, 2005 Express, 2005, 2008 or later, you can download it here.
4. Microsoft Drivers for PHP for SQL Server, you can download it here.
5. Android SDK which you can download here and Java JDK here.

First you must install the Basic 4 Android, and of course you have to buy licenses to use the library functions in it.

Then install XAMPP, need to be considered for connection to Microsoft SQL Server 2000 I recommend to use the old version for example XAMPP version 1.6.8. If you use Microsoft SQL Server 2005 and above, I recommend to install the latest version of XAMPP and also install the SQL Server Driver for PHP which you can download here. This is because the new version of XAMPP is not included drivers for connection from PHP to Microsoft SQL Server.

I will not go into too much detail for the setting on the Basic 4 Android, then XAMPP, I assume that you can, because if I was too detailed to discuss this article becoming too long. I hope you can understand, if you have any questions , you can email me at: budy_wijaya@yahoo.com or through comments on this blog.

First time we will make the user interface in the Basic 4 Android, by first running the Android SDK - AVD manager.


Then connect the menu Designer at Basic 4 Android to AVD manager.


Then create a login view, user text box, password text box, then the Login button, then save by name Login_Form, as shown below


Then we move to make the code in Basic 4 Android, the language used is Basic, or Visual Basic Like. First put all the variables in Sub Globals, as shown below


Then the procedure Activity_Create type the code shown below, the function of this code is to load Login_Form. And do not forget to checked the necessary library ,library http and json library.


Then create a procedure to capture input on user text box , create a procedure and code like in the picture below


For complete syntax querp.php you can see here and you have to replace mysql_connect to mssql_connect (because we used Microsoft SQL Server not MySQL as database server), if you use XAMPP is necessary to note problems like this.

Then at procedure hc_responseSuccess, type the code as shown below:


When finished,try to run the program in Basic 4 Android, for the initial setting Basic 4 Android, you can see the tutorial here


Then try the user name previously already exists in Microsoft SQL Server database, and then press enter, if successful it will appear as below:


Related Links:

How to connect Java to MySQL

How to connect Java to SQL Server

Ubuntu-PHP-Apache-FreeTDS-MS SQL Server 

How Fast JSON on Android?





Labels: , , , , ,

Wednesday, February 15, 2012

Android connection refused to http://localhost


This time I will share an experience in creating Android Application that accesses a web service with PHP script using Apache Web Server.When I make a connection to the Apache Web Server, I am using XAMPP on my notebook. Android application will refuse connection to http://localhost, it same when i make a connection to http://127.0.0.1

After I was browsing on the internet, I found that android application have loopback to itself, one simple solution is to connect the LAN port of your notebook to a Network or a Switch Hub, so you can setting your IP Address to a web server, eg http://192.168.0.1

In my next article , I will share how to make an Android Application that connected to Microsoft SQL Server.Why I’ve used web server as a tool to connect to the database server, because with web server application for the android to be more flexible to connect from everywhere.

related links:

How to connect Java to Microsoft SQL Server

How to connect Android to Microsoft SQL Server

Labels: , , ,