« first day (1941 days earlier)      last day (1309 days later) » 

4:26 AM
Hi, good morning
 
4:49 AM
Good morning
 
 
1 hour later…
6:09 AM
@Maddy
there?
 
6:24 AM
Good Morning !
 
Hello @SamirBhatt
 
6:38 AM
any one here have used jetpack with dagger?
 
Yupp
 
I am facing an issue when I am using jetpack with dagger
error: incompatible types: Class<DashboardFragment> cannot be converted to Class<? extends Fragment>
@FragmentKey(DashboardFragment.class)
 
Hi @JaiprakashSoni,@Ninja, @RakeshKumar
Please tell how I can compare two dates with time
Format:2019-07-18 15:30:00
 
@AmanjotKaur you can use Date.compareTo()
 
I need to compare date along with time
 
6:50 AM
@AmanjotKaur yes it will comapre
you have to convert it to date object if it is in string
 
Ok let me try
 
Good Morning Friends!
 
@JaiprakashSoni Are you injecting a fragment?
 
@JaiprakashSoni i want some help
if i open any website from our app to our mobile default browser.
now on that site user will need to do some payment.
Now return back to our app then how i can receive this event that user is return back to app ?
 
@Maddy
In mvvm, where you managing validation ? in activity or in VM?
 
7:05 AM
If we use startActivityForResult() then we can receive callback in onActivityResult() method but how is it possible with site ?
 
@SamirBhatt In ViewModel
 
Thanks @Maddy
 
Anytime bro
@SamirBhatt btw I have created two libs you can checkout for MVVM reference
 
Please share it
links
 
7:12 AM
@JaiprakashSoni I tried like this paste.ofcode.org/bL2ZJC8mCRAG3FUGmZKE53
not working
 
7:26 AM
@Maddy yes
@Shailesh don't open website in browser open it in your activity and use startactivityforresult
@SamirBhatt yes in VM
 
Dont inject fragment, create a component which can inject dependencies to your module
@JaiprakashSoni you can refere a sample module + component from here
https://stackoverflow.com/questions/56597042/how-should-i-use-dagger2-with-retrofit/56597576#56597576
 
ok let me try it
 
7:43 AM
@JaiprakashSoni i am also think that i will use that using below library
is it good or shell i go with our system provide Webview widget ?
 
@Shailesh I have never used it
 
shell i go with our system provided webview widget ?
 
8:05 AM
@JaiprakashSoni Thanks, it's working
 
8:45 AM
Thanks @Maddy @JaiprakashSoni
 
9:15 AM
hey everyone
How to validation of username like if your enter special character then show error
 
in RN , redux forms are available
 
sry ?? @Radhey
 
@Radhey hello
do you know about database migration ?
 
@MR.K you want this in android ?
 
Yes bro @Radhey
 
9:23 AM
@Ninja describe it more bro
@MR.K what you are using for validation normally ?
 
1. suppose i have use database(SQLite or some other) in one of my app
2. save users records in SQLite(10000 records). more then users are already installed that app
3. now app new update available on play store so user try to update from it
4. so once app is successfully downloaded from play store then its installing automatically
5. so first previous app uninstalled and new app installed so how to restore that 10000 records in new apps database?
@Radhey
 
Now i just check is empty or not. But now i want to check there is special character($@%^#^^#%$^#%$%#@$) available or not if yes the show error toast msg. @Radhey
 
@Ninja, It wont be possible to get your old data once you app is uninstalled!
One thing you can do is you can backup your data in external storage or google drive (like whatsapp is doing) and when your client reinstall the app fetch restore the db from backup
 
yes
 
@Ninja You use SQLite database or any other??
 
9:30 AM
@MR.K right now its not finalized, first confirm and after use that one
@Maddy ok, i'm also thinking same but i don't know more so i just think that is there any other way or not?
 
It's better to call an API to fetch the data from server if possible @Ninja
 
i am lit confused because whatsapp or some other apps having this kinds of features
 
They backup their data in google drive so when client reinstall the app they can fetch the data from drive
 
yeah, that's the point
 
SQLite Database provide store data into google drive @Ninja
 
9:50 AM
@Maddy issue fixed thanks
 
Great @JaiprakashSoni
 
Hello All
did anyone work on Firestore on Lock Mode?
 
Used firestore but not in lock mode :D
 
10:07 AM
@Maddy Actually it doesn't allow me to create it
So is there any authentication required?
 
Yes I think, but not sure
 
What you want to create ?? @AshishJain
 
@MR.K I have to create a collection.
In test mode its working but not in locked mode
 
In lock mode you want to set rule @AshishJain
 
currently it setup default like
match /{document=**} {
allow read, write: if false;
}
but in test mode
match /{document=**} {
allow read, write;
}
in this case I can create collections
 
10:21 AM
You want to add rule something like this : allow read, write: if request.auth.uid == userId; @AshishJain
 
but how auth request will come?
do I need to mention below thing only
if request.auth.uid == userId;
 
@AshishJain Please follow this link : firebase.google.com/docs/firestore/security/get-started
 
@MR.K k
 
 
1 hour later…
11:48 AM
hey
any one is there ?
 
12:08 PM
yes @Shailesh
 
@MR.K have you know about RRMS ASP.NET Web API
 
12:43 PM
your app(s) are using a content provider with an unsafe implementation of openfile site:stackoverflow.com
Please help me with this
My app is being reject from playstore and I am running with a deadline
Please your input is appreciated
 
 
1 hour later…
2:03 PM
Hey
@Ninja
 
yes
i think something wrong with your path prefix
 
How to resolve this
path i am using dot(.)
 
kindly check it that how you specify the path
 
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-path name="external_files" path="."/>
<external-path name="image_path" path="file:///sdcard/temporary_file.jpg"/>
</paths>

<!--<external-path name="image_path" path="file:///storage/emulated/0/Infogainify/Default"/>-->
 
can you share some code ?
 
2:06 PM
Sure
@Override
public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException {
File privateFile = new File(uri.getPath());
// Log.d("path",uri.getPath());
if(!privateFile.getPath().contains("/data/user/0/com.infogain.saleskickoff")){
throw new IllegalStateException();
}
return ParcelFileDescriptor.open(privateFile, ParcelFileDescriptor.MODE_READ_ONLY);
}
Can you please check it now @Ninja
 

« first day (1941 days earlier)      last day (1309 days later) »