yashsingh1/xdaforums huggingface dataset:
[Android General] Ravi H Basawa:
Basic Android Test Project without source code

4a. Basic Android Test Project without source code​

1. Now as we are done with installing our apk file to device the next thing is very important, that is we have to create a new android test project so for this we have to keep at least one project open (It can be any project) and then only we can proceed else we will get an error saying which is show as below:

2. Now go to file -> new -> other -> Android Test Project -> give a name as SimpleCalcAPK-Test -> Select Test Target as “An existing Android project” -> Finish.

3. Now you will find a project with an empty package ready for creation of JUnit tests without source code.

4. Right click on the empty project -> new -> JUnit Test Case and give a name as ApkTestCase_1. Now you will see JUnit test case as below:

5. Now edit the above code as show below:

6. As soon as you Run this test you will get an Error saying “Process crashed” as shown below:

7. Solution for this is we have to just change the below lines from AndroidMenifest.xml file :

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.rhb.simplecalc.test" />

Change it to:

<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.rhb.simplecalc" />

NOTE:

The “targetPackage” will be the package called by the test which tests the functionality of the application in that called package.

8. Now copy paste the below code to test SimpleCalc application without source code:

10.	Now Run the project by right clicking on the project -> RunAs -> Android Junit Test and see the test results in the Junit tab.
[Android General] Ravi H Basawa:
What is JUnit Test Suite and why we need it in Robotium?

5. What is JUnit Test Suite and why we need it in Robotium?​

1.JUnit Test Suite is a collection of multiple unit tests each of which shall test the functionality of a Robotium script.

2.Android sdk comes built in with android jUnit which is different from the normal jUnit however the structure of android jUnit resembles that of regular JUnit. This is the reason why we need JUnit suit to call all the Robotium scripts and thereby used in android automation.

3.One JUnit suite shall call multiple activities of the application and therefore for bigger applications. It is possible to have multiple JUnit suits and we can further have a collection of these suites under a suite of suits(collection of individual JUnit suits).

4.Now we will write a simple JUnit test for our application which is as below:

As I said before normal JUnit Suite is different and android JUnit is different we have to do some modifications on the coding part to make JUnit suite work on android, which is as below:

5.Now I will show you how to create Main Suite which intern calls all the subsuites which are present in the test project.

6.Now as we are done with creating of JUnit Suite we will continue with creation of Data Driven testing in the next chapter.
[Android General] Ravi H Basawa:
How to Data-Drive Robotium Scripts?

6. How to Data-Drive Robotium Scripts?

​

1.We go for data driven testing when we have some modules that need to be tested for multiple values. For example in a application which has a login page with username and password field we have to test these edit text boxes for multiple inputs, it can be a number or it also can be a string or both together.

2.In our SimpleCalc application we have two edit text fields so we will see how to extract data from an Excel file and push the same to our application.

3.First we will create an excel file with some data present in it to test our application. (An Excel file for testing our app is attached here)

4.To extract data from Excel we use “FileInputStream” Class by which we can create/delete and modify a file.

5.Before we get it started some important things to be concentrated on are we have to keep the excel file inside the device and not on the PC because android Robotium doesn’t support the accessing of the files which are stored on to the computer system and not on the Device.

6.So first thing is to push the Excel file to the device. Just go to DDMS tab in eclipse and click on the push icon -> click on browse -> select the Test.xls file that I have provided. The screen shot for this is as shown below:

7.After pushing the Test.xls file to your device or Emulator the next thing what you have to do is add POI jar files to your build path. The link for these jar files can be found at first post.

8.Just create a new folder and name it as POI and add the Jar files to build path after adding them to build path it should look like below:

9.After successfully adding of the poi jar files its time to write program for accessing the data from excel file to our application.

10.The code for accessing data from excel file is as below:

11.Now when you run the code you will get the output as below:

12.Now as you can see from the above Screen Shot that the values from our excel sheet has been taken properly and after this the test should fail because we have given the second value as a special char and hence the test fails as shown below:

13.As we have finished with Data Driven Testing with Robotium we will now move with our last chapter where in we see what all issues I found while working with Robotium.
[Android General] Ravi H Basawa:
Issues with Robotium

7. Issues with Robotium

​

1. Reporting capability is limited to JUnit Reports in XML format.

2. Writing into excel or text file is a bit clumsy at present.

3. Identifying Excel file for script parameters is manual in nature (Pushing Excel files to the device manually using DDMS).

4. Data whether text or number is taken as a string and fed to the script.

5. No Option of Record and Playback ( Now available :P ).

6. Robotium doesn’t work with TestNG suite and Eclipse Kepler at present.

7. Robotium is dependent on Android JUnit for execution control.

***************************************************************************************************************************************************************************************
[Android General] Swaroop Bandagadde:
Very Clear from Basics

Excellent mix of concepts and practical explanation.
[Android General] Ravi H Basawa:
Thanks for guiding me.. !!:good::good:
[Android General] Rohit02:
A very Nice thread.. Rated 5 star
[Android General] Ravi H Basawa:
Thank you so much.. It means a lot to me.. :) :good:
[Android General] adityaroy612:
Is it neccessary to have knowledge of android sdk before using robotium

hello,

I am doing poc on robotium can anybody help me in doing POC of some scenario's

1.app foreground background

2.lock and unlock device

3.kill app /restart app

4.network toggling
[Android General] Ravi H Basawa:
Hi,

If you are using device and not emulator, Your device need to be rooted.

you have to pull settings.apk from the device and resign it back. Now write your script and run. It will work.

I am going to write a tutorial on testing of native apps with Robotium soon.

Thanks:good:
[Galaxy S 4 Q&A, Help & Troubleshooting] Stasheck:
I've a i9505, unfortunately it's branded (but no locked) in T-Mobile. I'd love to install 4.3 on it, but T-Mobile hasn't released it, so it's unavailable in Kies.

I would like to know if it's possible to use official (non-branded) firmware and _not_ to trip Knox (as it voids warranty in Poland). I've went through most of Knox-related threads, but I fail to see clear indication of 1) if it's possible 2) how to do that.

Also, does anyone knows if, after de-branding the phone, I'll be able to upgrade from 4.3 to 4.4 (for example) without tripping Knox?

Any comments will be appreciated.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stasheck:
Bump, anyone?
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
1. If u still having Knox 0x0 and android 4.2.2 only u have to root ur phone and delete the apps branded.

2. If u dont have updates in Kies is better. Don't void ur warranty and enjoy with ur 4.2.2 firmware.
[Galaxy S 4 Q&A, Help & Troubleshooting] Stasheck:
OK, my point is to get Android 4.3 and not trip Knox - T-Mobile hasn't released 4.3 yet, and god knows when they do that.

Alternative question: is there a way to install official 4.3 without installing Knox bootloader?
[Galaxy S 4 Q&A, Help & Troubleshooting] coffeblixt:
i'v been looking around for the same thing, but i dont think thats possible without installing a custom made ROM :rolleyes:
[Galaxy S 4 Q&A, Help & Troubleshooting] Stasheck:
OK, let's try to put it another way: given that I have 4.2.2, do I risk losing warranty when I install CWM and some de-KNOXed 4.3 using Odin? Or Triangle Away will just work, and I'll be able to flash default software in case I need to service the phone?
[Galaxy S III Themes and Apps] mikrokatevas:
Can we find or integrate the simple cover lock to some other app or perhaps to a rom....i have tested this app to many roms and its laggy and battery drain is huge....how can i acomplish that?can anyone help me?

thanks thomas
[General Questions and Answers] oaffoyon:
Hello,

I've installed GammaRon without partitionning internal SD card. But now, I want to do it for the space allowed for apps is too small.

My question is : can I just jump to the partinionning scheme describe in the installation guide or must I completely re-install GammaRom for partitionning ?

Thanks for your answers.
[Samsung Galaxy Gear] renegade:
Woke up this morning and while removing my gear from the cradle I noticed that there were interlacing horizontal lines that went dead on the screen. So I loaded an official firmware and will be sending to Amazon for a refund.
[Nexus 7 (2013) General] beanboy89:
Just picked up a 16 GB WiFi Nexus 7 2013 (got 25% today at work, so I decided to grab one). I must say, the device is awesome. I was shocked at how thin and light it was, especially after I've been using an OG Kindle Fire for the past two years.

I went and applied the OTA to 4.4 and that went smoothly, but shortly after installing the Google Experience Launcher (which I have been using on other 4.4 devices without any problem), I got a full system hang and the tablet rebooted. I did a quick Google search and it seems like this might be a somewhat common problem. I am just concerned that this may become an ongoing problem with my tablet. Should I be worried about a freeze then reboot happening once?

I have about a five week period here where I can exchange the tablet for a new one if it keeps happening, but I really don't want to do so, if I don't have to. I eventually want to dive into custom ROMs, would any ROMs solve the problem, if there is indeed one, or is it a hardware or software flaw?

Thanks!
[Nexus 7 (2013) General] manujis:
I am using Google Experience Launcher on my N7 for last few weeks, never had an issue like this. The installation was smooth as well.
[Nexus 7 (2013) General] AarSyl:
Random rebooting is quite a common issue with the 16gb version of this tab. Some say that uninstalling Chrome solves the problem, but you just got the tab, and I think you have to be rooted to uninstall it. It should be a system app.

____________________________________________________

Phone: HTC EVO 4G LTE

Rooted, Stock 3.16, Xposed and vulnerable

Tablet: ASUS Nexus 7.2

Rooted, Stock Rom & Kernel
[Nexus 7 (2013) General] beanboy89:
Just had another random reboot. The tablet was just sitting there and it rebooted.
[Nexus 7 (2013) General] AarSyl:
You might want to look into getting the 32gb version. My tab has never rebooted once, unless I was messing around with mods. Depending on where you purchased the device, you might have to have it ordered, but the extra $40 is well worth it. Not to mention how quickly 16gb actually fills up.

____________________________________________________

Phone: HTC EVO 4G LTE

Rooted, Stock 3.16, Xposed and vulnerable

Tablet: ASUS Nexus 7.2

Rooted, Stock Rom & Kernel
[Nexus 7 (2013) General] Cares:
When I first got the tablet - I got 3-4 random freeze ups and reboots. Once I rooted and sideloaded Kit-Kat, all of my reboots went away.
[Nexus 7 (2013) General] beanboy89:
I have a few weeks to be able to return or exchange it. In the meantime, I'm still running on the stock KitKat ROM, unrooted. I've also gone ahead and disabled Chrome to see if that makes a difference.
[Nexus 7 (2013) General] AarSyl:
Great. I wasn't sure if you could disable system apps while unrooted. I guess I could've tried....silly me. At any rate, let us know what happens.

____________________________________________________

Phone: HTC EVO 4G LTE

Rooted, Stock 3.16, Xposed and vulnerable

Tablet: ASUS Nexus 7.2

Rooted, Stock 4.4.1, Custom kernel
[Nexus 7 (2013) General] beanboy89:
Had another reboot earlier tonight. I'm going to see about exchanging the tablet at some point this week, maybe after I try rooting and installing a custom ROM.
[Nexus 7 (2013) General] 95Z28:
You shouldn't have to root and install a custom ROM for a stable experience, I'd try an exchange. I picked mine up on black Friday (32GB) and haven't yet experienced a random reboot. I'm currently at 7 days uptime and its still running great, as it should.
[Nexus 7 (2013) General] AarSyl:
I researched it, and found no instances of the 32gb rebooting. Not sure why, but the issue seems exclusive to the 16gb. And I have seen this issue firsthand, so I know what you are going through.

_______________________________________

Phone: HTC EVO 4G LTE

Stock, S-On (Returning to Sprint)

Tablet: ASUS Nexus 7.2

Rooted, Custom Rom & Kernel
[Nexus 7 (2013) General] beanboy89:
I've heard that the 32 GB doesn't have the problems a few places. I think I'll probably just drop the extra $50 on the 32 GB model just to not have to worry about having the problems.
[Nexus 7 (2013) General] t_007_v2:
I have the 32gb and my tab has never rebooted itself. Imo you should return that tab of yours. Watch the staples daily deals bro because you can get a pretty freakin good deal. I bought a 32gb n7 at wally world for 289. Staples had some coupons come up that took off 60$. I returned my N7 and bought the same tab at staples for 230 after taxes.

http://m.staples.com/coupons?cm_cat...&storeId=10001&CID=AFF:361116:361116:10422268

Look at kitkat launcher prime on the play store. Launcher is pretty slick Imo.
[Nexus 7 (2013) General] ajez:
Never had a reboot here with 32gb version. But I use nova launcher, never tried GEL
[Nexus 7 (2013) General] zland:
I remember my first 16GB Nexus 7 2013 that I had purchased back on August 4th had the random reboot problems, and sometimes it also randomly shut itself down as well. But one thing I tended to notice was that every time it rebooted randomly or shut down randomly on me, there were always apps getting updated.

Back on November 11th, I went to exchange my old N7 2013 for a different 16GB model at Best Buy for the defective one, and so far it seems to be holding up fine!
[Samsung Galaxy Nexus] cowsquad:
Hello buddy. I am going to flash this right now. Whoop whoop
[Samsung Galaxy Nexus] undarated:
Good deal brother. Let me know what you think.
[Samsung Galaxy Nexus] Sheetzie03:
Not seeking anywhere what android version this is??

?Beamed Out via KK'd Toro?
[Samsung Galaxy Nexus] undarated:
My bad. It's MIUI v5 based on 4.2.2

I'll add that to the op. Thanks for the reminder
[Samsung Galaxy Nexus] Turd Furguson:
I am getting an error on the install. It aborts. Using TWRP 2.6.3.1.

Going to try and download again.
[Samsung Galaxy Nexus] harishmenace:
It won't install in TWRP, you have to flash it in CWM.
[Samsung Galaxy Nexus] undarated:
It will install install in twrp. I'm using an older version and my tester is using the latest. This is what he said ....

It work fine on my end. Tell them to check if system is mounted on recovery advanced settings. Last time I was having the same issue.
[Samsung Galaxy Nexus] Notorious:
Mimarket and Gamecenter are considered warez and should be removed from the rom.
[Samsung Galaxy Nexus] harishmenace:
I tried to flash it in the latest recovery, but didn't work. It worked in the latest CWM though.

Anyways thanks for the awesome work.
[Samsung Galaxy Nexus] cowsquad:
That is a really bad advice. I have the latest twrp and my install went fine. Check under advanced setting is checked, if it is, unchecked it

---------- Post added at 07:43 PM ---------- Previous post was at 07:42 PM ----------

Hahaha just because miuiandroid.com does it. It doesn't mean we have to do it. If you don't want them just delete them. Simple as that

---------- Post added at 07:45 PM ---------- Previous post was at 07:43 PM ----------
[Samsung Galaxy Nexus] undarated:
Thanks for the heads up. I didn't realize that they were warez. I didn't add those in myself because all I do is download the rom and port it for us. I never use those 2 apps to begin with but I will remove them from the next release.

I can't justify putting my users at risk for a couple of apps and it was a honest mistake.

As a matter of fact, it's bothering me now so I'm gonna take them and a couple more chinese apps out and reupload the rom.

I apologize for any problems that came from this.
[Samsung Galaxy Nexus] undarated:
How's it running for you guys? Nobody is giving any feedback
[Samsung Galaxy Nexus] undarated:
You're welcome brother. Glad it's finally working out for you
[Samsung Galaxy Nexus] cowsquad:
For me the latest is running just fine. No issues at all
[Samsung Galaxy Nexus] Notorious:
Hahaha just because miuiandroid.com does it. It doesn't mean we have to do it. If you don't want them just delete them. Simple as that

Warez is against XDA rules so you have to pretty much
[Samsung Galaxy Nexus] boylez:
Running great for me. No issues so far.
[Samsung Galaxy Nexus] undarated:
Ok as much as I didn't want to do it, I'm uploading a version with all of the apps that are considered warez by xda and the apps that we can't use anyway. So the rom is slimmed down quite a bit. I'll post link in op as soon as update is finished. Sorry if this caused issues for anyone.
[Samsung Galaxy Nexus] undarated:
Removing the thread

I've made the decision to remove the rom from xda. Since I can't please everybody and its not going in the direction I had planned, I'm gonna continue to port the rom the way that I have been and leave it up to everyone whether they choose to run it or not. In order to comply with xda rules and to continue on with the way that I had planned for it to go, I will be posting the links to the weekly updates on g+. If you're still interested, here's the link to the g+ community and you can add me from there.

link: https://plus.google.com/u/0/communities/101207282702310889064

I appreciate you guys for trying out my rom.
[Vibrant Q&A, Help & Troubleshooting] dzee206:
does anybody know of a way to force the phone to stay on hspda? ive been searching of a way all night and only came across a old thread for modems for the galaxy s family(not just t959). im kind of iffy bout flashing modems for different devices to my baby lol. any insight would be appreciated. also if it helps im on cyanaosp 4.4 paired with fluid kernel.
[Android Q&A, Help & Troubleshooting] Sleepy!:
Hi guys I have a N7 2013 on stock KRT16S, and my biggest wake lock is AudioMix.

I'm rooted, using Greenify, and I even have Google Search uninstalled. I am not using GEL. People suggested turning touch sounds off, and I tried that too, but it didn't work.

Tried doing a search, and it seems like there's a lot of people who're affected by it, but very few people talking about it. All the references I could find:

http://xdaforums.com/showthread.php?t=2520406

http://m.imgur.com/s0P3sr2

http://www.reddit.com/r/Android/comments/1ra1x7/

"BTW, what is this AudioMix wakelock? Is this like Audio_Out2 on the Nexus 4? Keyboard sounds or any sounds = wakelock? I also find it odd that considering I use my phone on vibrate 98% of the time, that the on my Nexus 4 and older phones, the speaker turns on when I press any button my phone. I thought system sounds wouldn't turn on? Quite interesting. Even in silent mode, the speaker turns on. I know this because my Nexus 4 speaker used to crack everytime it would turn on. To me that's an unnecessary wakelock that should ONLY happen if you're not in silent or vibrate."

Found one post on XDA by someone that seems to have a bit of a clue.

http://xdaforums.com/showthread.php?p=47663736 Post 1713.

"Yup, perfectly normal. AudioMix is the new wakelock for audio (previously was AudioOut_2, if I recall correctly) and PowerManagerService is just a kernel wakelock cause by apps syncing in the background. Mine ends up around 30 minutes after a whole day of usage."

If anyone has more ideas, please elaborate and help out.

Sent from Tapatalk, using Tapatalk
[Android Q&A, Help & Troubleshooting] Sleepy!:
[MENTION=4518416]QuantumFoam[/MENTION]

Sent from Tapatalk, using Tapatalk
[Android Q&A, Help & Troubleshooting] Adorep:
My Nexus 7 has the same problem.

AudioMix wakelock and no deep sleep.

I checked my running apps and noticed that currents keeps an active AudioPlayerService.

After killing the process deep sleep is working again.

So atm the solution for my Nexus is to kill the process everytime i used currents.

Gesendet von meinem Nexus 7 mit Tapatalk 4
[Android Q&A, Help & Troubleshooting] Sleepy!:
It's still persistent on 4.4.1... wake time seems to have decreased by a bit, but still there.
[Android Q&A, Help & Troubleshooting] angelussoares:
Hey guys, I'm having the same problem here, using CM11 (11-20140107-NIGHTLY-i9300) on Galaxy S3, and I guess I figured out the problem.

I looked a bit on some forums and found out that unchecking the touch sounds may solve the problem.

I just disabled all the system sounds and verifying with Wakelock Detector realized the counts stopped.

The problem here seems to be stopped here, maybe I add some updates later.

PS: I'm a little bit sad about disabling the touch sound, I was liking it so much :(

PS2: Sorry if you didn't understood something I wrote, I'm live in Brazil and I don't pratice so much my English.
[Android Q&A, Help & Troubleshooting] moustic_moustic:
Hi

Maybe a clue here:

http://xdaforums.com/showpost.php?p=49781738&postcount=55

Have a look to MusicFX and DSP Manager.

It seems to be one of the two options in sounds Settings/Music effect ..

i don't like having a DSP running all the time (an active module to process sound) so i disabled them !
[Android Q&A, Help & Troubleshooting] MurdockBaracus:
Im on a Tmo S3 running OctOS. I noticed the Audiomix wakelock only goes up on my phone when there are notifications or the ringtone is on. It creates a separate instance for each. If I'm streaming music from Slacker, nothing. Poweramp...nothing. Just notifications and ringtones. What that means? I do not know.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] ns700i:
i have the same i-mate ppc like yours ( the old i-mate without keyboard )

i have used rom 1.70a.64wwe and it is very good.
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] Kap6oHaT:
do your camera and record buttons work?
[MDA II, XDA II, 2060 Windows Mobile 2005 Upgrading] ns700i:
Try this rom

No dear

i think there will be a new rom solving all these issues just wait

give them some time
[Sprint Samsung Galaxy Note II] DarkManX4lf:
As I understand it, Aosp roms do jot support mhl.

What are other ways to mirror my Note 2's screen to my TV?

I looked into mircast using netgears push 2 TV device but I am not sure if our Aosp roms support wifi display (widi).

What do you Aosp users use to mirror your Note 2 to your TV?
[Sprint Samsung Galaxy Note II] coolwater22:
Umm well if you want the aosp feel/look try nowizaospmod rom..its like aosp but it has mhl feature you're looking for.
[Sprint Samsung Galaxy Note II] DarkManX4lf:
Thanks but I want to use a real Aosp rom.
[Sprint Samsung Galaxy Note II] coolwater22:
Well there arent any aosp roms that I know that have mhl working..
[Sprint Samsung Galaxy Note II] DarkManX4lf:
I figured that much. Are there any other ways of mirroring Aosp roms? Maybe through WiDi?
[Sprint Samsung Galaxy Note II] coolwater22:
not that I know of. I honestly don't know what WiDi is. I haven't heard of it...