yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Q&A, Help & Troubleshooting] sam77744:
brother, 1st 4mat ur sd card and after that flash stock rom via odin, I also hed same problem n solved.
[Galaxy S III Q&A, Help & Troubleshooting] JJEgan:
Go back to stock or ask in Omega roms forum .Or flash latest Omega rom v 37.1

jje
[Galaxy S III Q&A, Help & Troubleshooting] frictionbuster:
But the problem is since v34!

I tried installing every update.

Nothing helped! :(

And which SD do I need to format? internal or external?
[Galaxy S III Q&A, Help & Troubleshooting] linx8:
Did you experience this screen problem before the custom rom? Lets hope its not a hardware problem.

Try formatting your internal SD. Don't think your ext SD could affect it, though eject it just in case. Return it to stock as much as possible.
[Sony Ericsson XPERIA X10 Mini] gnickz0r:
Hi all,

It seems my X10 mini pro is completely bricked.

Firstly I root my phone

after that I copied the xrecovery and made a restart, till then everything was rolling smoothly.

I backed up and reseted to factory settings. loaded the new update.zip and after the restart that was needed my phone briked :(

it's not a common brick. I can't use flashtools to recover it.

here is the problem that appears...

:(

phone is not responding to any command. Plus it needs to be turned off if you wanna restore the backup you saved previously...when I try to flash it, phone turns ON :(

I read many guides in this forum to unbrick it but didn't find anything that suits to my occasion.

If any other detail is missing from my report please ask me to add it.

Sorry for my english

Thanks in advance.
[Sony Ericsson XPERIA X10 Mini] Rempty:
Use SEUS to restore Download from:

SEUS

Dont forget to pull of your battery for 4 seconds, for turn off your phone before connect your phone.
[Sony Ericsson XPERIA X10 Mini] SmG67:
Press home and power buttons together, it will restart the phone, then start pressing the back-button repeatedly to get back into recovery and restore your previous rom from there. (Come to think of it, following my last paragraph below, you probably don't have recovery on your phone anymore, so, as Rempty mentioned above, repairing with SEUS or PC Companion would be the start to recover your phone to a usable state,.)

The error flashtool gave you is because you didn't unlock the bootloader and didn't change the kernel on your phone. It can't flash any non-sony kernel on a locked bootloader.

What is this 'update.zip' you're talking about? Most full roms have more informational names to distinguish between different zips. An update.zip is usually only for hotfixes to ROMS already flashed, and not a complete ROM.
[Sony Ericsson XPERIA X10 Mini] gnickz0r:
Thanks a lot guys. I solve my problem with SEUS.

Phone completely formated.

:D Love you guys
[Sony Ericsson XPERIA X10 Mini] william chauhan:
Hey guys I hve instaled xrecovery and minicm9 too on my x10 mini pro I hve wiped chache,etc nd when I reboot , it hangs on SE logo plz help me
[Sony Ericsson XPERIA X10 Mini] Rempty:
SE logo?? You forgot to install nAa kernel, do you unlock bootloader??, remember that minicm9 is not for stock kernel.

Sorry for my bad english
[Sony Ericsson XPERIA X10 Mini] william chauhan:
W'll when I try to unlock the bootloader it gives error can u plz help me :D
[Sony Ericsson XPERIA X10 Mini] Rawwr:
use flash tool to unlock ur bootloader

make sure ur fone is rooted
[Sony Ericsson XPERIA X10 Mini] william chauhan:
I'm already using flashtool bt it's nt working
[Sony Ericsson XPERIA X10 Mini] jay-z-s:
What's your phone's build date? Ex.11w37(written on the stick placed on the back )

Sent From My BEAST , I mean X8:):D
[Sony Ericsson XPERIA X10 Mini] william chauhan:
My build no. Is 2.1.1.A.0.6
[Sony Ericsson XPERIA X10 Mini] nhae_29:
Plzz help me..

Plz help me.. I try to unlock the boot loader .. and the phone bricked !!!! what am i going to do??

i try the PC COMPANION but my phone did not detect it..
[Sony Ericsson XPERIA X10 Mini] thas911:
this is what i did to bring back life to my x10 mp.

Switch phone completely off then if not already running start pc companion. then this step really got to me because of the phone constantly restarting, to get pc companion to detect the phone, i pressed and held the back key down and connected the usb cable just like flashing a new kernel. pc companion then detected the phone as x10. doesnt matter. then start the update and you must do the same thing again to force update service to detect the phone and to give the option to repair. then once thats done follow the prompts through update service, it will then ask you what phone you have, choose x10 mini pro and update.its a long process but be patient and your phone will work again.
[Sony Ericsson XPERIA X10 Mini] william chauhan:
Hey guys I used the flashtool to unlock the bootloader and I also followed the steps too but problem is when the phone was rebooted it didnt read the sim card now what should I do ? Please help
[Sony Ericsson XPERIA X10 Mini] nhae_29:
my phone is in HARD BRICKED.. my phone is dead the phone didnt charge and totally dead.. what should i do?? help me??
[Sony Ericsson XPERIA X10 Mini] TEOKARAFOU:
i also have a hard bricked,even when i put it to charge the phone its not blink the led :(

help :(
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] Jonathanpeyton:
Last night I flashed the official release and did not lose root. Today there's an updated ROM that is deodexed. Would it be beneficial to flash that as I'm assuming the official release is not deodexed?

Thank you for your time
[Galaxy Note 10.1 Q&A, Help & Troubleshooting] JJEgan:
No all deodexed does is allow easier theme building .

jje
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
This thread started out as my attempt to give back to the community by sharing some of my mods. But I think it would be nice if we could turn this in to a community effort. Kind of a one stop shopping for simple mods. Mods that would generate tons of discussion, like loserskater's AOSP MMS or lockscreen music controls, would probably be best served with their own threads (of course they would be welcome here).

Anyway, the choice is yours. Feel free to post your mods here if you want.

Be sure to limit your contributions to editing smali or xml. Nothing to do with device settings.

_______

Devs and Cooks: Feel free to use the mods in your ROMs.

Be sure to click thanks give credit to the dev that posted the mod.

_______

These mods are geared toward devs, cooks, and advanced users.

It is assumed you already know how to compile/decompile apks and jars. If not, there is tons of info available elsewhere.

If you need help with any of these mods go here.

_______

Index (by post #):

2) Add more wallpapers to SecWallpaperChooser

3) Disable page looping in launcher

4) Rendering Colors Properly in Aroma

14) TouchWiz Group Messaging and Backup / Restore SMS

15) Easy CSC feature edits

23) Remove AT&T Subscriber popup when opening contacts

39) Status bar Transparency

45) Disable Browser EdgeZoom

46) Disable Browser EdgeZoom with Toggle

50) Adding Custom Boot Animation Support (ICS/JB)

53) Adding more languages

*****
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Add More Wallpapers

First you need to gather the wallpapers you want to use.

You will need two copies of each wallpaper. Resize to the following dimensions (I use Paint) and save as .jpg.

1280x1280 pixels

213x189 pixels

Name the wallpapers as you see in res/drawable-xhdpi. If you keep the original stock wallpapers (you can replace them too), start naming the wallpapers as:

hd_06.jpg
hd_06_small.jpg
hd_07.jpg
hd_07_small.jpg
hd_08.jpg
hd_08_small.jpg
etc.

Decompile SecWallpaperChooser.apk

Place the wallpapers in res/drawable-xhdpi

Go to res/values-xhdpi/arrays.xml.

You will see this:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="wallpapers">
<item>hd_01</item>
<item>hd_02</item>
<item>hd_03</item>
<item>hd_04</item>
<item>hd_05</item>
</string-array>
</resources>

Add an item for each wallpaper you added. This a recent example when I added 20 more wallpapers:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="wallpapers">
<item>hd_01</item>
<item>hd_02</item>
<item>hd_03</item>
<item>hd_04</item>
<item>hd_05</item>
<item>hd_06</item>
<item>hd_07</item>
<item>hd_08</item>
<item>hd_09</item>
<item>hd_10</item>
<item>hd_11</item>
<item>hd_12</item>
<item>hd_13</item>
<item>hd_14</item>
<item>hd_15</item>
<item>hd_16</item>
<item>hd_17</item>
<item>hd_18</item>
<item>hd_19</item>
<item>hd_20</item>
<item>hd_21</item>
<item>hd_22</item>
<item>hd_23</item>
<item>hd_24</item>
<item>hd_25</item>
</string-array>
</resources>

Recompile and push to your device.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Disable Page Looping in Launcher

Decompile SecLauncher2.apk

Go to smali/com/android/launcher2/PagedView.smali

Find this line of code:

.method protected isLoopingEnabled()Z

A few lines below it change this:

const/4 v0, [COLOR="Red"]0x1[/COLOR]

To this:

const/4 v0, [COLOR="red"]0x0[/COLOR]

Recompile and push to your device.

That's it!

"Really?"

I said that's it fool!
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Rendering Colors Properly in Aroma

Our device does not render colors properly in Aroma. Normally you would just force a colorspace at the very beginning of the aroma-config then the problem is solved. But on this device forcing a colorspace will often cause the Aroma installer to hang. This is how I solved the problem.

1) You have two choices for this step:

a) Deal with the (hideous) default color rendering until a theme has been chosen.

b) Create a theme that works with the default colorspace. Unfortunately, you don't have many color choices here. And figuring out which colors will work is just trial and error. None of the colors render properly. For example, green PNG images render as blue on the display. Orange (or maybe pink - can't remember) renders as neon yellow.

I created a theme called "start" which is my start up theme which works with the default colorspace.

2) Force the rgba colorspace before each theme in aroma-config. This gives true color rendering. Below are the relevant lines from my aroma-config.

### LICENSE:
#
# Copyright (C) 2011 Ahmad Amarullah ( http://amarullz.com/ )
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#CSROM SGS3
#upndwn4par
#
theme("start");
fontresload( "0", "ttf/Roboto-Regular.ttf;ttf/DroidSansArabic.ttf;ttf/DroidSansFallback.ttf;", "12" );
loadlang("langs/en.lang");
fontresload( "0", "ttf/Roboto-Regular.ttf", "12" );
fontresload( "1", "ttf/Roboto-Regular.ttf", "18" );
ini_set("rom_name","CSROM SGS3");
ini_set("rom_version","v1.3");
ini_set("rom_author","upndwn4par");
ini_set("rom_device","Multi-Carrier");
ini_set("rom_date","21 Jan 2013");
#
selectbox(
"Aroma Installer Setup",
"Aroma Theme Options",
"@theme",
"theme.prop",
"Please Select a Theme","",2,
"<#selectbg_g>CSROM</#>",
"",1,
"<#selectbg_g>ICS</#>",
"",0,
"<#selectbg_g>MIUI</#>",
"",0,
"<#selectbg_g>Sense</#>",
"",0
);
#
if
file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "1"
then
ini_set("force_colorspace","rgba");
theme("csrom");
endif;
if
file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "2"
then
ini_set("force_colorspace","rgba");
theme("ics");
endif;
if
file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "3"
then
ini_set("force_colorspace","rgba");
theme("miui");
endif;
if
file_getprop("/tmp/aroma-data/theme.prop","selected.1") == "4"
then
ini_set("force_colorspace","rgba");
theme("sense");
endif;
#
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 4
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 5
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 6
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 7
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 8
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Mine 9
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Done
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Got some stuff coming...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
...just grabbing another.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] enewman17:
TouchWiz Group Messaging and Backup / Restore SMS

This is how to enable the Group Messaging and Backup / Restore SMS features found in the stock TouchWiz Messaging app

First decompile SecMms.apk

Now navigate to smali/com/android/mms/MmsConfig.smali

To enable the Group Messaging feature

Fnd:

.method public static getEnableGroupMessage()Z
.locals 1

.prologue
.line 766
const/4 v0, 0x0

Change to:

.

method public static getEnableGroupMessage()Z
.locals 1

.prologue
.line 766
const/4 v0, 0x1

To enable backup / restore SMS messages

Find:

.method public static getEnableSaveRestoreSDCardMessage()Z
.locals 1

.prologue
.line 774
const/4 v0, 0x0

Change to:

.method public static getEnableSaveRestoreSDCardMessage()Z
.locals 1

.prologue
.line 774
const/4 v0, 0x1

Now compile with changes.... Easy Pezy

Enjoy Group Messaging...

enewman17
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Swiftks:
How about disabling the TW Downloads app without having the "download complete" notification re-apparing after every reboot. Only way to get rid of the notification is to open Downloads app and manually clear the list. I've tried every thing to disable this, removing app, disabling downloads notification under app manager, etc.

Even possible on TouchWiz, or is it to intergreated in the framework???

Sent from my SGS III
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
Should be doable. Do you mean the notification drawer or status bar notification?

What ROM are you running? My notification goes away after I clear it once.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Swiftks:
Notification drawer.

Yeah, the message will disappear after I hit clear, but on a reboot, its back... Until I clear it in Downloads. This is only downloads from Chrome.

Ruining a modded version of 4.1.1 at the moment with custom theme & lean kernel.

Sent from my SGS III
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
Is there any chance you guys want to work with me to get CRT-off working on our device? I've been trying to crack at it for 2 days now. I have decompiled, made changes, recompiled, and flashed more times than I want to share but I can't get it. I've been following the i9300 thread here because the smali files are quite similar to ours, but something (I believe changes in SystemUI.apk) is causing a ruckus where the boot animation keeps looping (properly albeit) and won't boot into the OS further than that. Take a look at this thread. Maybe it's a lost cause for now, but I was pulling my hair out. And yes I manually made the changes in the smali files. http://xdaforums.com/showthread.php?t=1935588
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
I just tried it with chrome and mine still cleared fine even after reboot. Do you have Chrome synched to your Google account (I don't)? I wonder if that could be part of the problem.

Still shouldn't be a tough mod.

Sure. I've had that on my list of things to do.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
Sounds good. It seems to be a little bit tougher than I thought it would be, for me at least. I need a second brain. :D Also thanks for this thread. I'm incorporating changes into my ROM as we speak.

Also, is enabling editing to the default APN in the CSC or is it a bit more complicated? I looked through the xml files and saw a few things on APN but didn't want to touch them in case it was the wrong one.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] loserskater:
I believe it's something kernel related. Either that or lib files.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] loserskater:
Another csc edit:

Remove AT&T Subscriber popup when opening contacts

<CscFeature_Contact_EnableAAB>false</CscFeature_Contact_EnableAAB>
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
Perhaps, I saw the non-lib workaround for the i9300 and thought it was worth a try. ;) I read it was also working on the Note II, but not quite as well.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
OK, I can confirm three things:

1) The method he posted does not work for our device.

2) He did not use the same method he posted for his device (I diffed his files). That way didn't work either.

3) Never trust a guy named sorg (lol).

This will take a little work.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
I noticed that he used a different method on his files as well...it made me a little suspicious. I'll never trust a sorg again. ;) lol. I figured it would take more work. I was scratching my head last night trying to get it to work in every way imaginable and every variation of the method.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
This is a little thermonuclear since it removes all download notifications everywhere (at least based on my 5-6 downloads).

Decompile services.jar, then go to com/android/server/NotificationManagerService.smali

Find this code (starts at line 4215) and change what is there to what is in parentheses.

(basically you're telling the service that the notification has already been posted)

.line 1063
.end local v19 #N:I
.end local v22 #count:I
.end local v23 #i:I
:cond_6e
const-string v5, "com.android.providers.downloads"

move-object/from16 v0, p1

invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v5

if-eqz v5, :cond_81 [COLOR="Red"](cond_69)[/COLOR]

const-string v5, "DownloadManager"

const/4 v6, 0x2

invoke-static {v5, v6}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z

move-result v5

if-eqz v5, :cond_9d [COLOR="Red"](cond_69)[/COLOR]

.line 1065
:cond_81
const/16 v5, 0xabe
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Swiftks:
Awesome, thanks... I'll give it a try.

Yeah, I don't even want the crap Downloads app. Only reason I have to keep it, is to get rid of the notifications. I deleted the app altogether, but then I could never get rid of them. :p

Thanks again for the work around.

Sent from my SGS III
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
If you didn't try that yet, don't bother.

It was more thermonuclear that I thought.

It killed all notifications on the device. :cyclops:

Looks like it created a loop that is not letting any through.

Back to the drawing board...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
I'll do a proper write up how to properly add custom boot animations to both ICS roms (requires line edits in the ramdisk) and jellybean ROMs (simple, already there basically) using stock kernels if you feel as though it's appropriate for this thread.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sob372:
Can you tell me where to find the drawable-xhdpi folder in a vzw s3 I cant find the wallpapers. Im trying to add some to the stock wallpaper chooser but I guess the atandt folders are set up differently?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
SecWallpaperChooser.apk is the file you need to decompile. Once decompiled follow the guide, add images to your liking and size them properly. Recompile, sign, replace apk.

If you want to cheat, just download my ROM and open the apk with 7zip and add and replace the files you want. Makes it easier. I recommend going through decompiling etc though because it is a good thing to know how to do.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sob372:
Got it thanks. What rom is yours?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
Intergalactic. It's right in this forum
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sob372:
Yea I downloaded the port foe the vzw I havent flashed it yet but ill check it out. How do I decompile and recompile the .apk?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
There is lots of info available. This thread is not for compile/decompile discussions. :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] sob372:
Youre serious? I didnt want a discussion I just wanted an answer to a question. A question that I didnt even ask you
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
From the OP:

"It is assumed you already know how to compile/decompile apks and jars. If not, there is tons of info available elsewhere."

This is how you find the answer to your question. Link

If you get stuck and need help, please go here.

And this is my thread. You will get my replies whether you want them or not. :D
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
How To Make Your Status Bar Transparent (Or any color)

Notification bar transparency mod:

1. Decompile SystemUI.apk

2. You need to modify two hex codes in the following files: /SystemUI/res/layout/tw_super_status_bar.xml and the other in /SystemUI/res/values/drawables.xml

3. First in /SystemUI/res/layout/tw_super_status_bar.xml modify the following line of code. Red is the altered hex value. Change this value to the exactly as shown.

<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="[COLOR="RED"]#00000000[/COLOR]" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"

4. In /SystemUI/res/values/drawables.xml modify the following. You may play around with the value here to achieve the color and transparency you desire. For example: #00000000 is 100% transparency, #3F000000 is 75% transparency, #7F000000 is 50% transparency, and #BF000000 is 25% transparency.

<item type="drawable" name="status_bar_background">[COLOR="RED"]#00000000[/COLOR]</item>

5. Recompile and enjoy your new status bar
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] upndwn4par:
I think you're missing some code bro. And where was this info last week when I was figuring this out? :D
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
NO what happened to my beautiful code!? Sigh I need to get on a desktop and fix this mess... Sorry about that. I don't know how conveniently it was just my code that got deleted...I suspect foul play. Also I only figured it out yesterday, I'm sorry I didn't get it out there sooner. ;)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] loserskater:
Did you edit your post using the xda app?

Don't know why but the app clears xml when you edit. Happened to me a couple nights ago.

Sent from my SAMSUNG-SGH-I747
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
I did. :o I should have paid more attention when I edited the text in the first place. I guess I won't be doing that anymore. I'll have it fixed within a couple of hours.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] stratatak7:
Code re-added and post fixed :)
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] enewman17:
Disable Browser EdgeZoom

Disable Browser EdgeZoom

Decompile: framework.jar

Navigate to: framework.jar/smali/android/webkit/ZoomManager.smali

Find:

.line 1599
.local v4, paramTypes:[Ljava/lang/Class;
const-string/jumbo v10, "setEnableEdgeZoom"

Change to:

.line 1599
.local v4, paramTypes:[Ljava/lang/Class;
const-string/jumbo v10, "setDisableEdgeZoom"

Recompile.... That's it.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] enewman17:
EdgeZoom Toggle

I'll just edit this post instead of replying in a new one...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] loserskater:
You're right, forgot a method. Need to initialize mContext. Just add the section involving method public constructor and you should be good to go.