yashsingh1/xdaforums huggingface dataset:
[Micromax A110] Akhilendra Gadde:
Auto-Close Done

@BOND1987

I got Auto close working for yours as well as for Akshay's mod.

Preferences taken from SUVI ROM v12 . So credits to bsuhas

See the following code :

the method is from Suvi rom's systemuiservice.smali

But i have modified as an exapmle.

[B][COLOR="black"].method public [COLOR="red"]SettingsButton[/COLOR](Landroid/view/View;)V
.locals 3
.parameter "v"

.prologue
.line 2431
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

.line 2432
const-string v1, "[COLOR="Red"]com.android.settings[/COLOR]"

const-string v2, "[COLOR="red"]com.android.settings.Settings[/COLOR]"

invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const/high16 v2, 0x1000

invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v0

.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

const-string v1, "statusbar"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

[COLOR="red"]invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V[/COLOR]

.line 1720
return-void
.end method[/COLOR][/B]

you can see the last red coloured code which says ->collapse()V . This code is responsible for close the notification panel when a toggle is toggled.

You may check it out and might implement as well :)

Video to Confirm it working. :highfive:

[YOUTUBE]UlsgbRLG_f8[/YOUTUBE]
[Micromax A110] :
That's great brother, but i m not so much good on smali. So can you tell me for this new codes where can I set the Collapse feature.

.method public CameraButton(Landroid/view/View;)V
.locals 5
.parameter "view"

.prologue
.line 99
.line 100
:try_start_0
new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

.line 102
.local v1, intent:Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"

invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

.line 105
const/high16 v2, 0x1000

invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

.line 107
const-string v2, "com.android.gallery3d"

const-string v3, "com.android.camera.Camera"

invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

invoke-virtual {p0, v1}, Lcom/android/systemui/SystemUIService;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

.line 109
.line 112
.end local v1 #intent:Landroid/content/Intent;
:goto_0
return-void

.line 115
:catch_0
move-exception v0

.line 117
.local v0, e:Ljava/lang/Exception;
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

goto :goto_0
.end method

Will be helpful if you could suggest this.
[Micromax A110] Akhilendra Gadde:
Bro repace this

.method public CameraButton(Landroid/view/View;)V
.locals 5
.parameter "view"

.prologue
.line 99
.line 100
:try_start_0
new-instance v1, Landroid/content/Intent;

invoke-direct {v1}, Landroid/content/Intent;-><init>()V

.line 102
.local v1, intent:Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"

invoke-virtual {v1, v2}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

.line 105
const/high16 v2, 0x1000

invoke-virtual {v1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

.line 107
const-string v2, "com.android.gallery3d"

const-string v3, "com.android.camera.Camera"

invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

invoke-virtual {p0, v1}, Lcom/android/systemui/SystemUIService;->startActivity(Landroid/content/Intent;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

.line 109
.line 112
.end local v1 #intent:Landroid/content/Intent;
:goto_0
return-void

.line 115
:catch_0
move-exception v0

.line 117
.local v0, e:Ljava/lang/Exception;
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

goto :goto_0
.end method

with this:-

[B][COLOR="black"].method public [COLOR="red"]SettingsButton[/COLOR](Landroid/view/View;)V
.locals 3
.parameter "v"

.prologue
.line 2431
new-instance v0, Landroid/content/Intent;

invoke-direct {v0}, Landroid/content/Intent;-><init>()V

.line 2432
const-string v1, "[COLOR="Red"]com.android.settings[/COLOR]"

const-string v2, "[COLOR="red"]com.android.settings.Settings[/COLOR]"

invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

const/high16 v2, 0x1000

invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

move-result-object v0

.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

const-string v1, "statusbar"

invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/app/StatusBarManager;

invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V

.line 1720
return-void
.end method[/COLOR][/B]

and then make the following changes

* replace red ones with the following -

in the 1st line, give any name to the button u want to define .

in const-string v1, " * put target class name here* eg:- "com.android.deskclock"

in const - string v2, " * put the target class name as well as an activity to call it * eg :- " com.android.deskclock.DeskClock"

for eg:-

in const - string v1 ----- target class is to call the complete app ---------> com.android.settings

and in const - string v2 ----- add package name + an activity to call it --------> com.android.settings.Settings$SimManagementActivity
[Micromax A110] icoolguy1995:
Any update bro for 4.1.2 mod
[Micromax A110] akash akya:
thanks bro.... i was searching for method to call animate collapse which is defined in phonesatusbar.smali... but its much simpler... post it in my theming thread.... i ll give link to that post in op... :D:D my thread is here
[Micromax A110] Akhilendra Gadde:
Bro , do u mean I should post my method in your thread ?? Then sure I'll post it :)
[Micromax A110] akash akya:
yup post the same method code with bit explanation as you explained here...

as you are the first who found it... take full credits for it... :D
[Micromax A110] Akhilendra Gadde:
Check your thread. Posted it :victory: :)
[Micromax A110] akash akya:
bro not there... i mean in mtk theming thread...

here

btw, i got it working with 3 line addition to sapcecaker smali code without changing anything.... :D
[Micromax A110] Akhilendra Gadde:
Oops ! Sorry I didn't open the link. My bad . But it posted it in mtk theme thread as well! ;)
[Micromax A110] :
No Briton brother it'll be quoted in first post along with akash akaya tips.

It'll be done today.

""Hitting Thanks Don't Cost You Anything, then, Why You All Are Getting Bothered in Doing So. Hitting Thanks Increases My Motivation to Work for this Community....:):):)""
[Micromax A110] akash akya:
added to my thread..

here
[Micromax A110] :
[MENTION=4987653]BOND1987[/MENTION] [request] Bro will you port original Samsung galaxy s4 toggles for bumblebee rom? :)
[Micromax A110] :
I don't know that if its a right place to ask this question or not but sorry I couldn't find any other place or thread to ask this question

I am facing a problem with my camera and gallery(both) built-in app , i.e whenever/every time I open/click the camera app its says "unfortunately gallery has stopped"

While I installed a custom app from play store and its working fine.

Please help me, anyone, I shall be very TTF thank full!!
[Micromax A110] abhay1333:
plz plz humble request make it for Can GALAXY S4 ROM

IM USING Micromax A110
[Micromax A110] san461:
not working on my buble beee rom :(

bro not working on bumble bee rom :(
[Micromax A110] :
Brother,

As I was myself on bumble be

e and I know it's working on it and also on every stock based Rom.

If not then please provide the screenshot.

brother,

Please don't mind but currently working on 4.2.2 Rom files for making it bugless.

And so not getting enough time and it is one of the deadliest thing to try and kill two or three days for it.

Yes off course brother. Few brothers have messaged me regarding this but may I know which file you used and pin which Rom.

Out will be helpful for us too.

And currently not have enough time to create something good for you brother's. Reason you all know now.

"" Hitting Thanks Will Not Cost You Anything, So, Why Don't You Try Hitting It Once.....""

Sent While Checking The "AMOI 4.2.2 Beast".....
[Micromax A110] CODE_WORKX:
Great work... thanks......:good:
[Micromax A110] violin.siva:
Requesting bond create hybrid and liftoff toggles for my phone.

Kindly tell me what are the things I should provide you.
[Micromax A110] :
bro i am using legolce xperia z rom on my qmobile A10(micromax a110).

please help soon.
[Micromax A110] mandar91:
bro , i want quick toggle patch for xr650 v14 rom please
[Micromax A110] abhay1333:
i m using Micromax a110 with CanGalaxy s4 Rom

android 4.1.2

which file i need to dwnload bro ?

plz gve me link

thx in adv :D
[One (M7) Q&A, Help & Troubleshooting] snipestyle9410:
I think i just got a stock system now (1.27)

So everytime i want to go into the stock recovery, the security Warnung comes below the relocked Banner. I dont Know why. If i choose reboot the phone Boots normally. No bootloop oder something Else. Just the recovery dont work and brings the security warning.

What can i Do now to fix it ?

Sorry for my Bad english guys
[General Questions and Answers] Ganuke:
Wow...... had hoped there would have been a few replies to this thread in respect to the issue / problem I am having ...... at least before seeing it near the bottom of he 2nd page of Q&A. Maybe it is the long ars post that scared people away before even getting to the root of my problem / question.

Well, anyway, since my first post in this thread, I did some more researching and may have found some answers...... even if they don't solve the problem I am experiencing. From what I've latest read, it seems the flip/flop feature may " just " rename what was factory stock SD ( internal media area storage of the Droid X2 ) to Sdcard-ext...... and rename any inserted SD card to sdcard. With this feature in the Eclipse rom, it does allow showing what is used & free space on an inserted SD card from within " settings / applications / manage applications " of the Droid X2 ...... but the flip/flop feature does not appear to allow installing and / or moving of already installed apps to an inserted SD card.

At best it seems as though just app data ( and maybe cache ) get placed on the inserted SD card ...... but the actual app itself still gets placed onto internal storage. So if I have a 50 MB app with 2 MB of data and cache ...... the 50 MB app can only be installed to the 4.35 GB of internal storage of the Droid X2 while the much smaller 2 MB of data and cache for such an app will get on my 8 GB inserted SD card...... even with the flip/flop feature of the Eclipse rom. That is unless I am missing something.

A shorter post this time ( I think ) to end with a straight forward question of ...... is there any way at all to have an app ( not just the data & cache of an app ) ...... to have an app itself be installed to and / or moved to an inserted SD card of a Motorola Droid X2 ?

Ganuke
[Xperia Z Q&A, Help & Troubleshooting] j0nthn:
I need some help with regard to the Sony Walkman app. It won't recognize a song (910 files copied to my phone, 909 songs available) and off course it's a big hassle to manually find the song.. Anyone know 1) a way to find the missing song, 2) why it's missing (read something about weird symbols in id-tags or something). Thanks in advance!
[Xperia Z Q&A, Help & Troubleshooting] MinedSafe:
Where did u copied the songs? SD or main memory? If its SD card just take it out and insert again. If its a main memory make

sure the folder is visibile by non root file commander. You can also try to clear cache and data of walkman app in settings.
[Xperia Z Q&A, Help & Troubleshooting] GeoSpaceKing:
Maybe the song is in some other format that doesn't come under songs in the walkman app..perhaps it's recognising it as a ringtone or stuff..btw it's just one song lol...a number I could live with..:p

Hit thanks if I helped you.Sent from my Killer Xperia Z(C6602) using xda premium.
[Xperia Z Q&A, Help & Troubleshooting] j0nthn:
Yeah, i know... It just bugs me I guess.. :p You 'fixed' it I guess, by searching for the format, I found that the folder contained 909 songs, but iTunes contains 910 songs (used Synctunes). Will try to find the missing song in iTunes now. Thanks!

Fixed, but thanks :)
[Xperia Z Q&A, Help & Troubleshooting] j0nthn:
Spoke too soon: Windows explorer tells me there are 910 songs in the folder, but when I select 'sort by type', I have 903 mp3's and 6 mp4a's. So one's missing, but when I scroll through the folder when I sort it by name, I don't see anything extraordinary.. I know this is not really a Xperia Z problem, but I guess I'll just share it right here, in the hope someone knows a little more :)
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Just got my wife a Lumia 520 and i noticed it does not have a file manager... is this normal?

I'm used to have file manager on Android so this is quite lame...

Also any idea on how to add musics (MP3/WMA) on the ringtones?

Thks
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
So... the Internet has these things called "search engines" which you can use to find all manner of cool things. You should really try using one of them.

1: Yes, it's normal that there is no file manager built into WP8. There wasn't one in WP7, either. This is not news. Know what you're buying...

2: There are apps (both on the Store and on this forum) which add very limited file browsing and management capability. However, the OS is extremely restrictive of app permissions - moreso than your typical Android build - so most of the filesystem is unreadable and all but a tiny portion of what's left is read-only.

3: Did you even read the little info sheet that comes with your phone? You would save us all a bunch of time if you did. Connect the phone to your computer using USB. It will appear as an MTP (Media Transfer Protocol) device. You can use this to copy media files (including songs and ringtones) to the phone, as well as copying other media files (such as pictures or video you took) from the phone to the PC. If you're running Windows, it will also offer to install an app to make synching easier. Pretty much every OS has tools for working with MTP devices, including all desktop-oriented Linux distros I've ever tried.
[Windows Phone 8 Q&A, Help & Troubleshooting] hoola20055:
Think of the apps as the file browser. An app that can manipulate a certain file type will show you all of that type of file on your phone. Coming from android you will have to rework your way of using your phone. And SKY DRIVE is your friend. And I'm glad you posted your question because I for one have used and love wp8 although I use my note 2 as my daily. I love people that say search for the answer yet give a long drawn out sarcastic answer anyway.

1.No file browser.

2.Use apps for manipulation of said files

3.Sky drive is your friend. It COULD be said it's wp8s file manager.

4. Have fun!
[Windows Phone 8 Q&A, Help & Troubleshooting] sinister1:
You can hook your phone to your PC and use the Windows Phone app for desk top, this will let you browse your files as far as music, ringtones, pictures and videos; I'm not sure if it includes documents but it the closest to what you are looking for because system files are off limit like the guys just explained.

What I don't understand is if you can view your files from your PC why can you do the same from the phone? Oh well maybe one day like in an update; this would be cool for browsing for files on your SD card...
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Ok so i appreciated the help but i don't really explain well in the OP.

I apologize for the way i wrote the OP, i was frustrated after unsuccessful search for a way to work around the limitations of the OS...

I did not know that the WP7 and 8 did not add an file manager, but the other part i did know :/ so no need to be so sarcastic in your reply (last time a used a Windows based phone it add windows mobile and it did have file explorer much like other OS's).

What i really meant was if anyone knows a way to work around the OS locks on the file system and of course an file explorer that uses it... But after more search i find none :(

I'm still pretty happy with the lumia 520... just frustrated that i cant add files were i wanted.
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
Yeah, that exact question has been asked before. People are working on it. Part of the reason I wrote my webserver app was to facilitate deeper exploration of WP8 in the hopes of finding a way to unlock more permissions. So far, no dice. The OS is still young, however.

With that said, from a "what can I do with it" perspective, it's best to think of WP8 as being like iOS: until or unless "jailbroken", everything runs with extremely low permissions.
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Ok thanks for the info :).

After some research i got the idea that WP8 as worst than iOS in terms of restrictions :/...

Thats really a shame because this Lumia 520 hardware its really nice for the price. It will be awesome wen someone is able to root it.

Still i will keep using Android on my personal phone... (this one was bought for my wife).
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
So far i can't move files (wma and MP3) to the inner folders on the ringtone folder... and the custom ringtone option does not let me chose other files than the one it came from factory :(

Not really a big bummer but it just seems a stupid limitation...
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
"Inner folders"? I just dragged files to Phone\Ringtones and they appeared at the top of the list, under "Custom". I didn't even need to resize them or change the genre, as WP7 required.
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Well i tried every folder on the phone (that are available to the user) and the OS still does not let me choose custom musics for ringtones... :/
[Windows Phone 8 Q&A, Help & Troubleshooting] sinister1:
Music files should go into the music folder and ringtone files go into the ringtone folder, this is what I did; I put in an SD card and created Folders on it with the same name as the ones on the internal storage and placed all my music and ringtone files there, when you go to ringtones it shows up under custom, if your talking about alert tones for MMS or SMS then you are out of luck other than ringtones the only thing you can change is your alarm tones.

This is a big mistake by MS by not allowing users to use customer tones form email and SMS or MMS their are customers that are actually returning their phones and exchanging them for Android and even iPhones because of this and other limitations. Users have been asking for this since 2011 on MS's very own suggestion page (check it out here) and MS hasn't even responded or given a hit to fixing this issue.

For you guys who know me well and see that I bring this subject up a lot, I apologize but MS needs to wake up and stop trying to restrict even the simplest of tasks.
[Windows Phone 8 Q&A, Help & Troubleshooting] GoodDayToDie:
1. Connect the phone via USB. An MTP device, with the phone's name, will appear (for example, in Windows Explorer).

2. Open the phone device. You will see a "drive" called "Phone". There may be a second volume called "SD card".

3. Open the Phone volume. You will see the following folders: Documents, Music, Pictures, Ringtones, Video.

4. Open the Rintones folder. It should not have any sub-folders.

5. Copy the music you want to use, as MP3 or DRM-free WMA (I think DRM-free AAC/M4A also works), into this folder.

6. On the phone, go to Settings, then Ringtones+Sounds, and tap on the box under Ringtone.

7. Scroll to the top of the list. There will be a header "Custom", under which the music you added to the Ringtones folder will be listed (by title metadata, not file name).

8. Tap the Play icon beside a song if you want to see how it sounds as a ringtone, then tap the song you want to use as your ringtone.

If this doesn't work, be very, very specific about what step looks wrong (i.e. is not as described) and what you see instead. Also, be specific about the kind of music you're trying to use. I have tested using 128Kbps (constant bit rate) stereo 44.1KHz MP3 and WMA files of up to about 4:40 long.
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Ok i'm gonna try with an SD card and i will post my results. Thks for the tip :good:
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Yep did all that :(...

The only thing i did not try yet is to create a subfolder in the Ringtones folder like i've read somewhere... i will try to do all the processes again and try other tips and i will post my results as soon as i can.

Thks for the help :)
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
Finally i got it to work...

Like i've said i've done the above (like you suggested) the 1st time and repeated and nothing happen.. so i reset the phone!

Copied just one file to the ringtone folder and success it worked (!). I don't know why it did not the other times ... Now my wife can copy her musics and put hers ringtones as she like.

Here is my device info in case its usefull for anyone:

model: Lumia 520

MMN: RM-914_eu_portugal_281

OS version: 8.0.10211.204

HW rev:1.0.0.0

Firmware rev: 1030.6408.1309.0003

Thanks for the help guys :)
[Windows Phone 8 Q&A, Help & Troubleshooting] Vishwal:
OS is young and the questions you posted, really needs to be solved. MS has put too much restrictions in OS but I think it will open some APIs and remove some restrictions in WP blue update due in early 2014. I only need limited file explorer to manage my personal files, a good Music & Video app(VLC is coming) and a notification center, that's it. All would be well for me to jump the ship from Android.

Btw, try Kirik file browser. It gives you some limited accessibilities on SD card.
[Windows Phone 8 Q&A, Help & Troubleshooting] Exnor:
I completely agree. MS still as lot to do on this OS... But for people who don't need more computing options its a good choice (i think i like it better than iOS...).

Thx for the tip, i've already try it :) does help a little.

So far besides the OS limitations my biggest disappointment is the store... there is not enough programs to satisfy my needs :/ But like i stated before i'm happy with the device (actually my wife is lol since its her that uses it).

Switching from Android... hmm no. I don't see myself switch to WP or iOS (btw i have iPod touch 4th gen) for so many reasons, but to start the integration with my Google account and services.

I had a Qtek back in 2k3 (actually was a job phone) and used Windows Mobile (or was it CE?? cant remember) and back then i love it. But the "updated" Windows OS for mobile does not give me the same experience. Android so far is my favorite (gonna give a try to Ubuntu touch since i use Ubuntu at work... lets see how it performs).