Posts

Showing posts with the label sqlite3

online and offline manage images and show that in Viewpager without taking load

online and offline manage images and show that in Viewpager without taking load I have an app that runs online, if there is no internet that time not showing images in viewpager. I use this code to show image in imageview Picasso.with(mContext).load(sliderImagesId.get(i).getImageId()).error(R.drawable.microtube).into(photoView); now, I want to make that in offline support. i call API and show that images using Picaso Library so what i have to do to make offline view 1 Answer 1 insert and retrieve image from sqlite example link 1 another example for your kind knowledge Using above URL you got your answer, Good luck By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Intelij Windows 10 SQLITE Access denied

Intelij Windows 10 SQLITE Access denied This is a Java Project which connect to a sqlite database. I didn't really know where is the problem, I am making a login app to my manager here is my code : package dbUtil; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class dbConnection { public static final String USERNAME = "dbuser"; public static final String PASSWORD = "dbpassword"; public static final String CONN = "jdbc:mysql:\localhost/login"; public static final String SQCONN = "jdbc:sqlite:\dbname.sqlite"; public static Connection getConnection() throws SQLException{ try{ Class.forName("org.sqlite.JDBC"); return DriverManager.getConnection(SQCONN); }catch (ClassNotFoundException e){ e.printStackTrace(); } return null; } } And here is the error i found, i didn't know what exactly is happening: java.sql.SQLException: opening db: 'dbname.s...