Click here to Skip to main content
14,331,628 members


GeneralRe: How to add emoji png's to an Entry control or Custom Entry Control Pin
Vimalsoft(Pty) Ltd23-Apr-19 22:47
professionalVimalsoft(Pty) Ltd23-Apr-19 22:47 
QuestionAVD showing only “Android” in emulator Pin
Member 1357490016-Mar-19 23:52
memberMember 1357490016-Mar-19 23:52 
QuestionRe: AVD showing only “Android” in emulator Pin
David Crow27-Mar-19 10:58
memberDavid Crow27-Mar-19 10:58 
QuestionUSB Cable Between PC And Android Pin
C-P-User-38-Mar-19 5:30
memberC-P-User-38-Mar-19 5:30 
SuggestionRe: USB Cable Between PC And Android Pin
David Crow8-Mar-19 9:40
memberDavid Crow8-Mar-19 9:40 
GeneralRe: USB Cable Between PC And Android Pin
C-P-User-310-Mar-19 4:20
memberC-P-User-310-Mar-19 4:20 
AnswerRe: USB Cable Between PC And Android Pin
Richard Deeming8-Mar-19 9:43
mveRichard Deeming8-Mar-19 9:43 
QuestionXamarin forms and SQLIte database Pin
Mycroft Holmes25-Feb-19 19:37
memberMycroft Holmes25-Feb-19 19:37 
I have an existing sqlite database in the android project under Assets.
I use the following to copy the database to the application personal folder
public async Task<string> GetDBPathAndCreateIfNotExists()
			string databaseName = "DBQDive.db3";
			var docFolder = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);			
			var dbFile = Path.Combine(docFolder, databaseName); // FILE NAME TO USE WHEN COPIED

			if (!File.Exists(dbFile))
				FileStream writeStream = new FileStream(dbFile, FileMode.OpenOrCreate, FileAccess.Write);
				await MainActivity.Instance.Assets.Open(databaseName).CopyToAsync(writeStream);
			return dbFile;

The problem is that even after uninstalling the app from the phone
if (!File.Exists(dbFile))
ALWAYS find a database file and therefore never copies the new database because the database has been created by a previous installation.

How can I detect if this is the first time the app is run so I can delete the database before it should be copied over?
Never underestimate the power of human stupidity -
I'm old. I know stuff - JSOP

SuggestionRe: Xamarin forms and SQLIte database Pin
David Crow26-Feb-19 4:15
memberDavid Crow26-Feb-19 4:15 
GeneralRe: Xamarin forms and SQLIte database Pin
Mycroft Holmes26-Feb-19 12:24
memberMycroft Holmes26-Feb-19 12:24 
QuestionCross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
holdorf19-Feb-19 2:46
memberholdorf19-Feb-19 2:46 
AnswerRe: Cross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
Mycroft Holmes19-Feb-19 11:11
memberMycroft Holmes19-Feb-19 11:11 
GeneralRe: Cross Platform Xamarin MVVM ListView binding to ViewModel List not working Pin
holdorf20-Feb-19 4:48
memberholdorf20-Feb-19 4:48 
QuestionXamarin Forms Picker binding Pin
Mycroft Holmes21-Dec-18 19:35
memberMycroft Holmes21-Dec-18 19:35 
Questionmobile program Pin
Member 1408773812-Dec-18 20:07
memberMember 1408773812-Dec-18 20:07 
Questionreturn all html codes of page instead of one string (by B4A commands) Pin
Member 1352250115-Nov-18 20:38
memberMember 1352250115-Nov-18 20:38 
QuestionAdvice required Pin
Mycroft Holmes9-Nov-18 17:22
memberMycroft Holmes9-Nov-18 17:22 
AnswerRe: Advice required Pin
Adrian Mikeliunas20-Nov-18 10:49
memberAdrian Mikeliunas20-Nov-18 10:49 
GeneralRe: Advice required Pin
Mycroft Holmes20-Nov-18 11:22
memberMycroft Holmes20-Nov-18 11:22 
AnswerMessage Closed Pin
4-Dec-18 22:47
memberMember 140782134-Dec-18 22:47 
QuestionTapGestureRecognizer on an Image on Tab not work Pin
Vimalsoft(Pty) Ltd8-Nov-18 11:34
professionalVimalsoft(Pty) Ltd8-Nov-18 11:34 
Questionprayer time Pin
Sayed Gulab Hussain Shah3-Nov-18 22:30
memberSayed Gulab Hussain Shah3-Nov-18 22:30 
AnswerRe: prayer time Pin
OriginalGriff3-Nov-18 22:32
protectorOriginalGriff3-Nov-18 22:32 
AnswerRe: prayer time Pin
Afzaal Ahmad Zeeshan4-Nov-18 9:32
mveAfzaal Ahmad Zeeshan4-Nov-18 9:32 
GeneralMessage Closed Pin
9-Nov-18 9:51
memberlara simon9-Nov-18 9:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.