Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,293 Members 38,634 Now Online
XDA Developers Android and Mobile Development Forum

(FIXED)Dismiss RecentsDialog/Add Back button function in OnClick method.

Tip us?
 
SpaceCaker
Old
#21  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10500
Posts: 13,114
Join Date: Mar 2011
Location: netherlands
i am using eclipse and on ICS+ i know how to do it as on that i simply can use Collapsecode for collapsing statusbar.wich i also tried here but didnt worked.

on GB its different a lot more different


and i compile a simply app with the custlm buttons in java

build package
export apk
and add the smali files properly to my frameworks and implement inside the layout i wanted.

this is what j also did with systemui and some other apps and such.

Sent from my S500 using xda app-developers app
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
arpitkh96
Old
#22  
arpitkh96's Avatar
Senior Member
Thanks Meter 375
Posts: 1,084
Join Date: Feb 2012
Location: panipat
Quote:
Originally Posted by SpaceCaker View Post
i am using eclipse and on ICS+ i know how to do it as on that i simply can use Collapsecode for collapsing statusbar.wich i also tried here but didnt worked.

on GB its different a lot more different


and i compile a simply app with the custlm buttons in java

build package
export apk
and add the smali files properly to my frameworks and implement inside the layout i wanted.

this is what j also did with systemui and some other apps and such.

Sent from my S500 using xda app-developers app
As you know that there are system and user api's in android.user apps do not have permissions to handle recent apps.so you will have to work from source only

Sent from my GT-S5570 using XDA Premium 4 mobile app
The Following User Says Thank You to arpitkh96 For This Useful Post: [ Click to Expand ]
 
SpaceCaker
Old
#23  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10500
Posts: 13,114
Join Date: Mar 2011
Location: netherlands
android.user
is implemented if correct in 4.2+ only


and even when i tried to build from source it did the same thing

and all my smali go straight inside the framework

i only need to figure out how i can launch Back button keycode to simulate back key press onclick

or launch the close system dialogs intwnt or such.

i know that its possible because i saw it inside tasker but for more i havent found any documentation

Sent from my S500 using xda app-developers app
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
arpitkh96
Old
#24  
arpitkh96's Avatar
Senior Member
Thanks Meter 375
Posts: 1,084
Join Date: Feb 2012
Location: panipat
Quote:
Originally Posted by SpaceCaker View Post
android.user
is implemented if correct in 4.2+ only


and even when i tried to build from source it did the same thing

and all my smali go straight inside the framework

i only need to figure out how i can launch Back button keycode to simulate back key press onclick

or launch the close system dialogs intwnt or such.

i know that its possible because i saw it inside tasker but for more i havent found any documentation

Sent from my S500 using xda app-developers app
There are some apps which do this using root or android debugging.like button savior or pie control.some devs who made this are also on xda you can ask them
how they implemented

Sent from my GT-S5570 using XDA Premium 4 mobile app
 
SpaceCaker
Old
#25  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10500
Posts: 13,114
Join Date: Mar 2011
Location: netherlands
Quote:
Originally Posted by arpitkh96 View Post
There are some apps which do this using root or android debugging.like button savior or pie control.some devs who made this are also on xda you can ask them
how they implemented

Sent from my GT-S5570 using XDA Premium 4 mobile app

i have tried to figure out / contact those
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
SpaceCaker
Old
#26  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10500
Posts: 13,114
Join Date: Mar 2011
Location: netherlands
Guys my problem is solved now thanks everyone :3

https://github.com/spacecaker/Recent...d045e273b3b85b adding these two try codes managed to make the code work :3
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
 
EatHeat
Old
#27  
EatHeat's Avatar
Recognized Developer
Thanks Meter 1390
Posts: 911
Join Date: Jan 2013
Location: Calcutta
Quote:
Originally Posted by SpaceCaker View Post
Guys my problem is solved now thanks everyone :3

https://github.com/spacecaker/Recent...d045e273b3b85b adding these two try codes managed to make the code work :3
Like I said. You need to send a broadcast with the intent I posted earlier.
[3.0+]Crius.
Customize your clock.


[2.2+]SnowBowl HD.
Enjoy the vacations!


 
SpaceCaker
Old
#28  
SpaceCaker's Avatar
Recognized Themer / Contributor - OP
Thanks Meter 10500
Posts: 13,114
Join Date: Mar 2011
Location: netherlands
Quote:
Originally Posted by EatHeat View Post
Like I said. You need to send a broadcast with the intent I posted earlier.
that intent launches but not closed the dialog .

samsung dialog used bit different intent so sended broadcast to that

Sent from my S500 using xda app-developers app
 

My Github Click Here
Github BroadcomCM Click Here
Github CyanoSpaceMod Click Here
Github MSR-Roms Click Here
Check My SoundCloud for my music remakes,mixes etc Click Here
Linux HP-Pavilion-G7 3.11.0-23-generic #40-Ubuntu SMP Wed Jun 4 21:05:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes