Issue
Is there any way to print file line number with android Log ?
Solution
for getting line number `
public static int getLineNumber() {
return Thread.currentThread().getStackTrace()[2].getLineNumber();
}
or
Thread.currentThread().getStackTrace()[2].getLineNumber()
in Log()
` try it will help u....
Answered By - Jigar Patel
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.