1. Android Central Question's Avatar
    I am making an online food ordering app in which first page i.e. CityActivity I getting the city and area name from online database and passing only areaname to MainActivity through Shared preference in a textbox. Now according to the area I have fetched I need to get only that area restaurants data from online database in recyclerview in android studio.

    In databse ,in restro_tbl I have added restroid,restroname,cityid,areaid(foreign key as i have made city and area separate tables),restrodiscount,restrodescription,restroimg
    11-30-2017 01:52 AM
  2. Rukbat's Avatar
    I'm not an Android developer, but if the database uses SQL, it would be a select statement ending in where restroid = <whatever the id of the restaurant is - without the brackets>; You can select individual fields or * for all fields.
    11-30-2017 06:10 PM
  3. Robert son's Avatar
    In Android, Spinner is like a dropdown list. It displays a list of items. One of its items can be selected at a time. You can use an array or an ArrayList object that contains items as its data source. Typically the array or ArrayList object is not directly set to the Spinner.
    12-01-2017 02:47 AM

Similar Threads

  1. Pixel 2 XL on ATT any problems?
    By Android Central Question in forum Google Pixel 2 & Pixel 2 XL
    Replies: 14
    Last Post: 12-05-2017, 06:55 PM
  2. Galaxy S6 - Unable to Add Music
    By Me-Hostage in forum Samsung Galaxy S6
    Replies: 1
    Last Post: 12-01-2017, 01:39 AM
  3. Replies: 2
    Last Post: 11-30-2017, 06:36 PM
  4. How to recovery “MEMO” file without android OS?
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 11-30-2017, 06:12 PM
  5. How can i move my pics from sd card to phone if my it is unable to move?
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 11-30-2017, 03:48 AM