I am doing an Android application using JDBC to send data to database without using any web services. I did an experiment using Android 2.2 emulator and I am able to send data to MySQL DB (LOCALHOST). After that I tried to send using Android 2.2 device, I changed the path from
jdbc:mysql://10.0.2.2:3306/
with jdbc:mysql://xx.xx.xx.xx:3306/
.
xx.xx.xx.xx is from ipconfig
of my localhost machine. But it is not working in the device. What could be the reason.
Main doubts:
- Do Android devices currently support JDBC?
- Will Android 2.2 support JDBC?
- If supported, which Android versions will support JDBC?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…