Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

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

OP SpaceCaker

27th January 2014, 08:51 PM   |  #21  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,820
 
13,391 posts
Join Date:Joined: Mar 2011
More
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
28th January 2014, 05:24 AM   |  #22  
arpitkh96's Avatar
Senior Member
Flag panipat
Thanks Meter: 553
 
1,126 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by SpaceCaker

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: [ View ]
28th January 2014, 07:45 AM   |  #23  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,820
 
13,391 posts
Join Date:Joined: Mar 2011
More
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
28th January 2014, 08:46 AM   |  #24  
arpitkh96's Avatar
Senior Member
Flag panipat
Thanks Meter: 553
 
1,126 posts
Join Date:Joined: Feb 2012
Donate to Me
More
Quote:
Originally Posted by SpaceCaker

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
28th January 2014, 11:31 AM   |  #25  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,820
 
13,391 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by arpitkh96

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
28th January 2014, 01:43 PM   |  #26  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,820
 
13,391 posts
Join Date:Joined: Mar 2011
More
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
29th January 2014, 01:06 PM   |  #27  
EatHeat's Avatar
Recognized Developer
Flag Calcutta
Thanks Meter: 1,433
 
914 posts
Join Date:Joined: Jan 2013
More
Quote:
Originally Posted by SpaceCaker

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.
29th January 2014, 02:33 PM   |  #28  
SpaceCaker's Avatar
OP Recognized Themer / Contributor
Flag netherlands
Thanks Meter: 10,820
 
13,391 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by EatHeat

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

Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes