Types of Database in Android Development (Hindi)

0

Hello frnds aap logo ka ek baar phir se Knowledge finder blog mein swagat hai. Aj hum log baat karne wale hai Database in Android. Means kitne type se android mein database and activities ko store kar sakte hai. Mostly koi bhi application 2 types sae data store karti hai.

  1. Local Storage
  2. Server Storage

Toj aaj  dono storage kae barae mae discuss karenge. Ki kaise android mein local storage hota hai, kis name sae android mae unko jana jata hai, aur jab apn koi app use karte hai toh wo local storage factor humko kya dekhne ko milta hai. aur Saath mein hum Server Storage kae bare mae bhi discuss karenge. Ki Google kae taraf sae konsa server base database android apps kae liye official database kaha jata hai.

Humne Knowledge finder blog me pehle bhi kuch Android app development ke upar post kiya hai jisme se ek hai Konsa Language sikhe android app development ke liye dusra or ek post kiya woh haiLaptop ke configure kya hona chahiye android studio sahi se chalne ke liye. aap yeh dono article blue line me click kar ke padh sakte hai.

How to Work Database in Android app development

How to Work Database in Android app development

Toh start karte hai local database storage sae. Toh jaise ki naam sae hi pata chal rha hai “Local” means ek aisa database jo ki locally Available ho. Means jis ko access karnae kae liyae hum ko internet ki jarurat na ho. Hum ko kisi server ko request send kar nae ki jarurat na ho. Jaise android app permission mangte hai access to your gallery or phone contacts. So wo ek local access hota hai. Jaha ek application aapka phone kae gallery ka access mangti hai.

Local database Explain in Hindi

Chaliye local database ko easy language mae samjhne ki koshish karta hai android applications ki term mae. For example aap log jaisae Kavi play store sae android application download karte hai. Jab aap uss application ko first time open karte hai toh kuch screens appear hoti hai. Ki yeh app kis baare mein hai, iss app Mae aapko kya kya milega, kaise use karna hai etc. But jab aap wapis uss app ko open karna hai next time wo sab screens appear nhi hoti hai. Iss logic ko implement karta hai “Android Shared Preference” jaha par app code likh deta hai ki agar yeh phone mae iss app ka first run hai toh wo sarri introduction screens appear ho user ko warna na ho.. Simple programing term mae kahe toh if else condition laga dete hai. Toh wo jo first run ka data store ho jata hai apke app ki cache mae. Means agar aap apne application ki cache delete kar denge toh wo screen wapis appear hoagie. Ku ki aap nae wo files remove kar di hai jo yeh identify karti thi ki yeh application aap kae phone mein install hone ke baad phle baar chal rha hai ya nhi.

Android mae local data store hota hai aap ke phone ki memory mae, SD card mae and cache memory mae. Phone and  SD card mae store hota hai aapka data like images, and some other stuff. and cache mae store hota hai datalogics jo identify karte hai ye functionality aapko show karna hai ya nhi. Jiska ek chota sa example mae upper walae case mae diya hai. Jab aap koi aap apne device sae remove karte hai toh yeh jaruri nhi hai ki apka data and cache bhi remove ho jaaye yeh depend karta hai app ki programming and logics mae jo ki developer nae likhe hote hai.

Server database kaise work karta hai In App development

Aab hum baat karenge Server based database Naam se he pata chal raha hai aisa data jo server sae ata ho ya server par store hota ho. Jaha par “Request – Response” model work karta ho. Iss type ke model mae client means users request karta hai database sae and request ki bases pr server response karta hai. Toh Google ki taraf sae jo ek official Server base database, ya fir hum kahe sakte hai Cloud based database mobile applications kae liyae provide kiya jata hai wo hai “Firebase“. Yeh hai ek aisa database hai jo aapko na ki kewal database store karne ki functionality provide karta hai balki, ek hi platform par analytics, notifications, admob, craigslist, testing servers etc functionalities bhi provide karta hai. Firebase kae server ko firebase name ki ek company nae develope kiya tha jisko google nae baad mae acquire kar liya and offical platform bana diya mobile applications database ke liye.

Server database Explain in Hindi

Server Based Database ko av hum samajhte hai ek example sae. Amazon ki mobile application toh sab nae use ki he hoagie wo ek example hai server based application ka. Jaha saara data server par store hota hai and jab user application open karta toh saara data server sae hi load hokar application mae dikhta hai. “Agar app amazon app use karte time internet off kar denge toh instantly error dae dega please check your internet connection.” Ku ki data load hi nhi ho pa rha server sae aapki application mae bina internet kae. Koi bhi high level ki application jaha Registration hota, OTP ata ya bahut saara data load hota sab server based mobile application hoti hai.

Eak example aur Local and Server Base ka…. Amazon application jab aap install karate toh  kya ata hai sab sae phlae. Login and Registration. Kavi yeh socha hai ki yeh application mae login hone ke baad jab close kar dete hai and  jab wapis open kartae toh wapis login ku nhi mangti. Ku ki yeh application apke registration details toh server par send kar deti hai but aap ke login ka instance apne phone ki cache mae save kar leti hai. Jisko android mae programmatically implement karne ke liye “Shared preferences” naam ka term use hota hai. Toh login details save hui “Local Storage” mae & Registration details save hui “Server Based Storage” mae.

So aaj ka yeh topic yahi khatam karte hai. Hope aap logo ko kuch naya sikhne and samjhane ko mila hoga android app Development ke bare mae. Agar kuch nhi samjh mae aya toh comment kar dijiye gaa. And agar kuch aap specific terms android ki samjhna chahta hai toh comment mae bata dena.

Aap hamare Knowledge finder ke latest updates pane ke liye Facebook page like kare, Right side par Bell icon ko subscribe kare! 😊

“Post Read karne ke liye aur Knowledge finder visit karne ke liye Bahut Bahut Dhanyawad’

Yeh Bhi padhe-

LEAVE A REPLY

Please enter your comment!
Please enter your name here