How I generate Testng Report

I want pass/fail report for android app test case in android studio
Can anybody let me know how i do this???

Try To use ExtentReport
http://extentreports.relevantcodes.com/
learn from here and Try To Integrate Report with Testng Listner

Thanks @upendraupadhyay
But where is Maven in Android studio ?
I am using appium on Android studio platform
Please help

I am using appium with android studio. Is there any way to generate test report?

I think you might be using Gradle in Android Studio. If so, add extent report jar to buildpath using gradle dependency as extent report does not have any gradle repo link. after adding extent report jars, you can easily create a report through a simple set of steps.

Can you tell me the jars of extent report or provide me any link for all steps…I am new in appium and i didnt find any clue for this…All searches relates to eclipse but i want test report on android studio.Please help me

@minakshi
You can get Extent Report Jar form here
https://drive.google.com/open?id=0ByJmgAhaLx0GVzktVFNNUEZPeWc
official Extent Report site : http://extentreports.relevantcodes.com/

You can take developers or team mates help to include the extent report dependency in your build.gradle file.

As far as i know, you should be adding a line like

compile 'com.relevantcodes:extentreports:2.41.2'

to the dependencies section in your build.gradle file.

After including do a gradle build once and then use the below code snippets to generate Extent Report.

public ExtentReports report;
public static ExtentTest elogger;

   report = new ExtentReports(System.getProperty("user.dir")+ File.separator + "yourReportName.html", true, DisplayOrder.OLDEST_FIRST);
report.startTest("Test Name")
elogger.log(LogStatus.INFO, "This is an info statement.");
elogger.log(LogStatus.PASS, "This is a statement which gets displayed only after your test step gets passed.");
report.endTest(elogger);
report.close();

You can use these INFO and PASS statements after and before your test steps.

At the end you will see a beautiful report like the one here.

http://extentreports.com/os/3/extent.html

Thanks @hemche

For report should i write only that code which you give me???