The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

[SOLVED][Q] field in inner method

97 posts
Thanks Meter: 210
 
By Massi-X, Member on 19th June 2014, 07:14 PM
Post Reply Subscribe to Thread Email Thread
Hi all,first thanks to @GermainZ for help.

But now I have another problem:
I have this code:
Code:
public class ClassA {

public int MethodA(Param 1){
....
Boolean B1 = false;
String S1 = "...";
.....}}
I have to have access the field in this method.How can I do this?
Thanks in advance.
Last edited by Massi-X; 19th June 2014 at 11:22 PM. Reason: Closed the thread
 
 
19th June 2014, 07:24 PM |#2  
GermainZ's Avatar
Forum Moderator / Recognized Developer / XDA Portal Team
Thanks Meter: 8,327
 
More
You can't directly, but you can recreate the process to get it again.
The Following User Says Thank You to GermainZ For This Useful Post: [ View ]
19th June 2014, 07:32 PM |#3  
rovo89's Avatar
Senior Recognized Developer
Thanks Meter: 37,121
 
Donate to Me
More
In the title, you mention an "inner class", but in your example the fields are inside a method. Which one do you mean? Fields in a method can indeed not be accessed.
The Following User Says Thank You to rovo89 For This Useful Post: [ View ]
19th June 2014, 07:44 PM |#4  
Massi-X's Avatar
OP Member
Thanks Meter: 210
 
More
Sorry I have correct the title.
In what way I can recreate all that method with the one hooked?
EDIT:may I have understand... I will try
Last edited by Massi-X; 19th June 2014 at 07:47 PM.
19th June 2014, 11:19 PM |#5  
Massi-X's Avatar
OP Member
Thanks Meter: 210
 
More
Thanks to all,I've found another way to do that.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes