Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0
  •   was successfully added to your cart.
  • Home
  • Buy proxies
  • Extra features
  • Help
  • Contact
  • Login
  • 50% OFF
    BUY NOW!
    50
    PROXIES
    $19
    --------------------
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    $29
    $49
    $109
    $179
    $299
    --------------------
    --------------------
    --------------------
    --------------------
    --------------------
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    100
    200
    500
    1,000
    2,000
    TOP SELLER
    BEST VALUE
    For All Private Proxies!

> I want to load images in the sql databases in the textbox.
Put images in the asset folder and retrieve it from their name in the question field.

public class computer extends SQLiteOpenHelper {

private static final String Database_path = "/data/data/relativlayoutjava/databases/"; private static final String Database_name = "computer.db";//NAME of database stored in Assets folder private static final String Table_name = "computer";//name of table private static final String uid = "_id";//name of column1 private static final String Question = "Question";//name of column2 private static final String OptionA = "OptionA";//name of column3 private static final String OptionB = "OptionB";//name of column4 private static final String OptionC = "OptionC";//name of column5 private static final String OptionD = "OptionD";//name of column6 private static final String Answer = "Answer";//name of column7 private static final int version = 1;//version of database signifies if there is any upgradation or not public SQLiteDatabase sqlite;//object of type SQLiteDatabase private Context context;//Context object to get context from Question Activity  public computer(Context context) {//constructor     super(context, Database_name, null, version);     this.context = context; }  public void createDatabase() {     createDB(); }  private void createDB() {      boolean dbexist = DBexists();//calling the function to check db exists or not     if (!dbexist)//if database doesnot exist     {          this.getReadableDatabase();//Create an empty file         copyDBfromResource();//copy the database file information of assets folder to newly create file     } }  private void copyDBfromResource() {      InputStream is;     OutputStream os;     String filePath = Database_path + Database_name;     try {         is = context.getAssets().open(Database_name);//reading purpose         os = new FileOutputStream(filePath);//writing purpose         byte[] buffer = new byte[1024];         int length;         while ((length = is.read(buffer)) > 0) {             os.write(buffer, 0, length);//writing to file         }         os.flush();//flush the outputstream         is.close();//close the inputstream         os.close();//close the outputstream      } catch (IOException e) {         throw new Error("Problem copying database file:");     } }  public void openDatabase() throws SQLException//called by onCreate method of Questions Activity {      String myPath = Database_path + Database_name;     sqlite = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE); }  private boolean DBexists()//Check whether the db file exists or not {     SQLiteDatabase db = null;     try {         String databasePath = Database_path + Database_name;         db = SQLiteDatabase.openDatabase(databasePath, null, SQLiteDatabase.OPEN_READWRITE);         db.setLocale(Locale.getDefault());         db.setVersion(1);         db.setLockingEnabled(true);     } catch (SQLException e) {         Log.e("Sqlite", "Database not found");     }     if (db != null)         db.close();///close the opened file     return db != null ? true : false;  }  public String readQuestion(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {     String Ans = "";//string that contains the required field  note that Ans is just a local string not related to Answer or Option...     Cursor c = sqlite.rawQuery("SELECT " + Question + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; }  public String readOptionA(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {     String Ans = "";//string that contains the required field  note that Ans is just a local string not related to Answer or Option...     Cursor c = sqlite.rawQuery("SELECT " + OptionA + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; }  public String readOptionB(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {     String Ans = "";//string that contains the required field  note that Ans is just a local string not related to Answer or Option...     Cursor c = sqlite.rawQuery("SELECT " + OptionB + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; }  public String readOptionC(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {     String Ans = "";//string that contains the required field  note that Ans is just a local string not related to Answer or Option...     Cursor c = sqlite.rawQuery("SELECT " + OptionC + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; }  public String readOptionD(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {     String Ans = "";//string that contains the required field  note that Ans is just a local string not related to Answer or Option...     Cursor c = sqlite.rawQuery("SELECT " + OptionD + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; }  public String readAnswer(int i)//Used to read the data from the Des.db file where id is given and we choose id randomly {      String Ans = "";//string that contains the required field     Cursor c = sqlite.rawQuery("SELECT " + Answer + " FROM " + Table_name + " WHERE " + uid + " = " + i + "", null);//cursor to that query     if (c.moveToFirst())         Ans = c.getString(0);     else         Ans = "";     return Ans; } 

}

✓ Extra quality

ExtraProxies brings the best proxy quality for you with our private and reliable proxies

✓ Extra anonymity

Top level of anonymity and 100% safe proxies – this is what you get with every proxy package

✓ Extra speed

1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!

50 proxies

$19/month

50% DISCOUNT!
$0.38 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

100 proxies

$29/month

50% DISCOUNT!
$0.29 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

200 proxies

$49/month

50% DISCOUNT!
$0.25 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

500 proxies

$109/month

50% DISCOUNT!
$0.22 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

1,000 proxies

$179/month

50% DISCOUNT!
$0.18 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

2,000 proxies

$299/month

50% DISCOUNT!
$0.15 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

USA proxy location

We offer premium quality USA private proxies – the most essential proxies you can ever want from USA

100% anonymous

Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies

Unlimited bandwidth

Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!

Superfast speed

Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!

99,9% servers uptime

Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems

No usage restrictions

You have freedom to use your proxies with every software, browser or website you want without restrictions

Perfect for SEO

We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies

Big discounts

Buy more proxies and get better price – we offer various proxy packages with great deals and discounts

Premium support

We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!

Satisfaction guarantee

24/7 premium support, free proxy activation and 100% safe payments! Best reliability private proxies for your needs!

Best Proxy Packs

  • 2,000 Private Proxies $600.00 $299.00 / month
  • 1,000 Private Proxies $360.00 $179.00 / month

Quick Links

  • More information
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Like And Follow Us


Copyright ExtraProxies.com | All Rights Reserved.
  • Checkout
  • Contact
  • Help
  • Home
  • My Account
  • My Cart
  • News
  • Privacy Policy
  • Proxy features
  • Proxy packs
  • Terms and Conditions
Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0 items