How can I list all classes and methods from Android SDK used in my source code?how to get doxygen to produce call & caller graphs for c functionsWhere can I find Android source code online?Why is the Android emulator so slow? How can we speed up the Android emulator?How can I open a URL in Android's web browser from my application?How to call a method after a delay in AndroidIs there a way to get the source code from an APK file?Problem Writing Files problem in Android EmulatorAndroid App development - WebView is not workingGetting an exception when app startsHow to get selected items in a custom listview to another activity in same custom listviewHow to add child(Product) under a child(Store) in Firebase Database using RecyclerView
How to handle self harm scars on the arm in work environment?
Overlapping String-Blocks
How is water heavier than petrol, even though its molecular weight is less than petrol?
How can this tool find out registered domains from an IP?
Prime Sieve and brute force
Why can my keyboard only digest 6 keypresses at a time?
Applying Graph Theory to Linear Algebra (not the other way around)
How is John Wick 3 a 15 certificate?
Thread Pool C++ Implementation
How to manually rewind film?
Generate basis elements of the Steenrod algebra
Implement Own Vector Class in C++
Is it possible to have a wealthy country without a middle class?
Do simulator games use a realistic trajectory to get into orbit?
Is using haveibeenpwned to validate password strength rational?
Should I give professor gift at the beginning of my PhD?
Why can't I use =default for default ctors with a member initializer list
is it possible for a vehicle to be manufactured witout a catalitic converter
How can I get an unreasonable manager to approve time off?
Group Integers by Originality
With Ubuntu 18.04, how can I have a hot corner that locks the computer?
How can I tell the difference between unmarked sugar and stevia?
Colloquialism for “see you later”
Is the term 'open source' a trademark?
How can I list all classes and methods from Android SDK used in my source code?
how to get doxygen to produce call & caller graphs for c functionsWhere can I find Android source code online?Why is the Android emulator so slow? How can we speed up the Android emulator?How can I open a URL in Android's web browser from my application?How to call a method after a delay in AndroidIs there a way to get the source code from an APK file?Problem Writing Files problem in Android EmulatorAndroid App development - WebView is not workingGetting an exception when app startsHow to get selected items in a custom listview to another activity in same custom listviewHow to add child(Product) under a child(Store) in Firebase Database using RecyclerView
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have the source code of an apk, containing a few hundred classes. I need to get the list of all calls to Android SDK methods in my source code. I thought about developing a python script to parse all sources, but there seem to be too many rules to define. I fell it would be too complicated.
Does anyone has an idea ? Or are there existing tools that can do it ?
For exemple, if the code looks like this :
class MyActivity extends Activity
@Override
public void onCreate(Bundle savedInstanceState)
if (savedInstanceState.containsKey("toto"))
setContentView(R.layout.mylayout);
this.uselessMethod();
public int uselessMethod()
new Thread();
I want to get something like this :
- java.lang.Thread#<'init'>()
- android.app.Activity#onCreate(Bundle) void
- android.app.Activity#setContentView(int) void
- android.os.Bundle#containsKey(String) boolean
Thanks.
java android
add a comment |
I have the source code of an apk, containing a few hundred classes. I need to get the list of all calls to Android SDK methods in my source code. I thought about developing a python script to parse all sources, but there seem to be too many rules to define. I fell it would be too complicated.
Does anyone has an idea ? Or are there existing tools that can do it ?
For exemple, if the code looks like this :
class MyActivity extends Activity
@Override
public void onCreate(Bundle savedInstanceState)
if (savedInstanceState.containsKey("toto"))
setContentView(R.layout.mylayout);
this.uselessMethod();
public int uselessMethod()
new Thread();
I want to get something like this :
- java.lang.Thread#<'init'>()
- android.app.Activity#onCreate(Bundle) void
- android.app.Activity#setContentView(int) void
- android.os.Bundle#containsKey(String) boolean
Thanks.
java android
1
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14
add a comment |
I have the source code of an apk, containing a few hundred classes. I need to get the list of all calls to Android SDK methods in my source code. I thought about developing a python script to parse all sources, but there seem to be too many rules to define. I fell it would be too complicated.
Does anyone has an idea ? Or are there existing tools that can do it ?
For exemple, if the code looks like this :
class MyActivity extends Activity
@Override
public void onCreate(Bundle savedInstanceState)
if (savedInstanceState.containsKey("toto"))
setContentView(R.layout.mylayout);
this.uselessMethod();
public int uselessMethod()
new Thread();
I want to get something like this :
- java.lang.Thread#<'init'>()
- android.app.Activity#onCreate(Bundle) void
- android.app.Activity#setContentView(int) void
- android.os.Bundle#containsKey(String) boolean
Thanks.
java android
I have the source code of an apk, containing a few hundred classes. I need to get the list of all calls to Android SDK methods in my source code. I thought about developing a python script to parse all sources, but there seem to be too many rules to define. I fell it would be too complicated.
Does anyone has an idea ? Or are there existing tools that can do it ?
For exemple, if the code looks like this :
class MyActivity extends Activity
@Override
public void onCreate(Bundle savedInstanceState)
if (savedInstanceState.containsKey("toto"))
setContentView(R.layout.mylayout);
this.uselessMethod();
public int uselessMethod()
new Thread();
I want to get something like this :
- java.lang.Thread#<'init'>()
- android.app.Activity#onCreate(Bundle) void
- android.app.Activity#setContentView(int) void
- android.os.Bundle#containsKey(String) boolean
Thanks.
java android
java android
edited Apr 29 '13 at 15:08
Vincent
asked Apr 29 '13 at 14:15
VincentVincent
14218
14218
1
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14
add a comment |
1
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14
1
1
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14
add a comment |
1 Answer
1
active
oldest
votes
Look at Doxygen for extract out all of the methods. You'll probably want to use EXTRACT_ALL http://www.doxygen.nl/manual/starting.html#extract_all which will assume everything in your sources should be documented (like third-party methods).
I was working from memory and just tried it over here. I thought Doxygen did it with additional options (see: how to get doxygen to produce call & caller graphs for c functions). While with Graphviz/dot, Doxygen does generate a collaboration diagram, it doesn't look like it will extract out what you are looking for, which I think is to list out all of the method calls, including those that aren't in your source tree.
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16280923%2fhow-can-i-list-all-classes-and-methods-from-android-sdk-used-in-my-source-code%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Look at Doxygen for extract out all of the methods. You'll probably want to use EXTRACT_ALL http://www.doxygen.nl/manual/starting.html#extract_all which will assume everything in your sources should be documented (like third-party methods).
I was working from memory and just tried it over here. I thought Doxygen did it with additional options (see: how to get doxygen to produce call & caller graphs for c functions). While with Graphviz/dot, Doxygen does generate a collaboration diagram, it doesn't look like it will extract out what you are looking for, which I think is to list out all of the method calls, including those that aren't in your source tree.
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
add a comment |
Look at Doxygen for extract out all of the methods. You'll probably want to use EXTRACT_ALL http://www.doxygen.nl/manual/starting.html#extract_all which will assume everything in your sources should be documented (like third-party methods).
I was working from memory and just tried it over here. I thought Doxygen did it with additional options (see: how to get doxygen to produce call & caller graphs for c functions). While with Graphviz/dot, Doxygen does generate a collaboration diagram, it doesn't look like it will extract out what you are looking for, which I think is to list out all of the method calls, including those that aren't in your source tree.
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
add a comment |
Look at Doxygen for extract out all of the methods. You'll probably want to use EXTRACT_ALL http://www.doxygen.nl/manual/starting.html#extract_all which will assume everything in your sources should be documented (like third-party methods).
I was working from memory and just tried it over here. I thought Doxygen did it with additional options (see: how to get doxygen to produce call & caller graphs for c functions). While with Graphviz/dot, Doxygen does generate a collaboration diagram, it doesn't look like it will extract out what you are looking for, which I think is to list out all of the method calls, including those that aren't in your source tree.
Look at Doxygen for extract out all of the methods. You'll probably want to use EXTRACT_ALL http://www.doxygen.nl/manual/starting.html#extract_all which will assume everything in your sources should be documented (like third-party methods).
I was working from memory and just tried it over here. I thought Doxygen did it with additional options (see: how to get doxygen to produce call & caller graphs for c functions). While with Graphviz/dot, Doxygen does generate a collaboration diagram, it doesn't look like it will extract out what you are looking for, which I think is to list out all of the method calls, including those that aren't in your source tree.
edited Mar 24 at 18:13
albert
3,26231125
3,26231125
answered Apr 29 '13 at 14:30
Morrison ChangMorrison Chang
8,41932650
8,41932650
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
add a comment |
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
Doxygen can generate documentation, and list classes and methods defined in my code. But can it extract third-party methods used by my code (as defined in my example above) ?
– Vincent
Apr 29 '13 at 14:34
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
See my updated answer.
– Morrison Chang
Apr 29 '13 at 14:41
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
I just tested Doxygen with EXTRACT_ALL : it does not extract SDK methods that are called from my code.
– Vincent
Apr 29 '13 at 15:05
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16280923%2fhow-can-i-list-all-classes-and-methods-from-android-sdk-used-in-my-source-code%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
you can use javap : java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html
– The Dark Knight
Apr 29 '13 at 14:32
javap is a disassembler. I don't need to disassemble the application, as I got the source code. I need to list all calls to Android SDK inside my code.
– Vincent
Apr 29 '13 at 15:14