0

I'm trying to parse a JSON with GSON in an AsyncTask

The issue is : I have the method android.os.AsyncTask.getStatus and my own getter for my own class Status (this class is the parsing of my JSON file)

Can i set a nickname or something like this ? How to make difference between Android SDK method and my own method ?

CSecchi
  • 13
  • 3
  • 1
    package name make the difference. – J.Mengelle Jul 06 '16 at 14:14
  • change it to a different name? – tyczj Jul 06 '16 at 14:17
  • Just to expand on what Mengelle stated: `android.os.AsyncTask.getStatus()` will target that method. `my.package.name.and.class.getStatus()` will target your method – Bonatti Jul 06 '16 at 14:19
  • @Bonatti Can I set a "nickname" ? intead of `my.package.name.and.class.getStatus()` set : `class.getStatus()` – CSecchi Jul 06 '16 at 14:22
  • Yes. As far as Studio goes, you can writte the short as the local getStatus, and the full nominal one for the android.os one. The name lookup is always class first. – Bonatti Jul 06 '16 at 14:23

1 Answers1

0

Thanks to @Bonatti,

I can make the difference with full name :

android.os.AsyncTask.getStatus() will target that method.
my.package.name.and.class.getStatus() will target my method

CSecchi
  • 13
  • 3