Page MenuHomePhabricator

Create EventLogging dev setting
Closed, InvalidPublic


Add a user configurable URL string to dev settings and migrate the EventLogging URL from to When the user string is specified, use that. When the user string is unspecified, the current logic should be used: when ReleaseUtil.isPreBetaRelease() is true, use "", otherwise "".


Related Gerrit Patches:
apps/android/wikipedia : mastercreate EventLogging dev setting

Event Timeline

Restricted Application added subscribers: TerraCodes, Aklapper. · View Herald TranscriptJun 7 2017, 4:26 PM

I assume this should be in the DeveloperSettingsFragment class ?
PS: Im a new dev to the project.

@AlfredAfutu, yep. DeveloperSettingsFragment and DeveloperSettingsPreferenceLoader and developer_preferences.xml too!

Great thanks!!

One more question: @Niedzielski where is the user string specified?

@AlfredAfutu, the user string is presented by DeveloperSettingsFragment. It would look like this:

@Niedzielski Thanks again. I want to be able to see what ive done . How do i access the dev settings on the app?


  1. Enable developer settings:
    1. Go to app settings.
    2. Tap about Wikipedia.
    3. Tap seven times on the circular Wikipedia logo.
  2. Press back to go to app settings again.
  3. Open developer settings from the new icon in the top toolbar.

Developer settings are also enabled by default in the "dev" flavor (under build variants in Android Studio):

Great. Got it !! Thanks

@Niedzielski Ive sent a new Patch set to be reviewed.

@Niedzielski I was trying to see how the developer settings works but after tap seven times on the circular Wikipedia logo I got the following error:

java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to$LayoutParams
                                                                        at org.wikipedia.util.FeedbackUtil.adjustLayoutParamsIfRequired(
                                                                        at org.wikipedia.util.FeedbackUtil.makeSnackbar(
                                                                        at org.wikipedia.util.FeedbackUtil.showMessage(
                                                                        at org.wikipedia.util.FeedbackUtil.showMessage(
                                                                        at org.wikipedia.settings.AboutActivity$AboutLogoClickListener.showSettingAlreadyEnabledMessage(
                                                                        at org.wikipedia.settings.AboutActivity$AboutLogoClickListener.onClick(

What should be done when mistakes like these are found? Is it better to create a task with the all the information about the bug? Or do you automatically receive a crash report and after that you see if it is necessary to create a task or not?

@Jcasariego, please open a new bug! The Android app does collect crash reports but detailed tickets are nearly always easier to fix. In this case specifically, the crash may go unnoticed since it's in developer settings. Thank you!

@Niedzielski after doing a git pull the bug has gone. So, no more error :)

@Jcasariego, great! Thanks for the follow-up

Change 403457 had a related patch set uploaded (by Yashasvi; owner: Yashasvi):
[apps/android/wikipedia@master] create EventLogging dev setting

Hi @Niedzielski

I've created a patch for this.

Here are the screenshots :

One doubt:

Do we also want to move the default dev and prod urls from static fields to Prefs?

@yashasvi, UI looks great! @Dbrant, @cooltey, would one of you mind following up with @yashasvi on their patch?

Thanks @yashasvi and @Niedzielski , I will do it :)

Thanks @yashasvi and @Niedzielski , I will do it :)

Thanks @cooltey , I'll wait for your review then.

Zoranzoki21 moved this task from Backlog to Doing on the good first task board.Jan 31 2018, 3:59 PM
Dbrant closed this task as Invalid.Nov 29 2018, 2:51 PM

Change 403457 abandoned by Dbrant:
create EventLogging dev setting

No longer necessary; closing to reduce clutter.