I have been working with admob for the last few days and can not figure out how to turn off admob testing mode. I tried the settings in the website but i still get test ads and they flat out wont run on my phone. Log cat keeps telling me to add my phone as a testing device. Well I'm through testing, I just want to get things up and running live.
There are a couple of ways you can turn off the testing mode.
If you are creating Ad's using XML, you will have something in your XML's that looks like this: ads:testDevices="TEST_EMULATOR, THE_DEVICE_ID"
If you are creating Ad's using JAVA, you might have something that looks like this:
AdRequest.setTestDevices( new String[] {
AdRequest.TEST_EMULATOR,
"THE_DEVICE_ID", // My Test Device ID
} );
If none of the above work (for whatever reason), you can always log in to your AdMob account, go into "Sites And Apps", hover your mouse pointer over the App in question and click on "Manage Setting". Then, click on the "App Setting" tab and you will see a "Test Mode" option. In that, select the "Disable test mode for all requests" option and hit "Save Settings" at the bottom.
NOTE: I do not personally create my Ads using Java, so you will have to probe that a bit
A SIDE NOTE: I personally always rely on the 3rd option. Saves me the effort of going through literally about 65 odd XML's and removing my test device ID's.
Related
Here is my problem, I've done an app to configure an IoT home device and saves this device properties on a simple SharedPreferences file, that's already done, but the other goal is to give this app the capability of "Invite" another user using this app so that this user can control this ALREADY configured device...I'm having trouble finding the specific name of this "Feature",
At this moment I've been thinking of simply adding the capabily of Sharing this file to the other app, like "Share my Devices", and pair the phones so that the other receives the file with the already configured devices. But I imagine more appropriate the scenario of "Invite User" to control the devices, and when doing it, the app receives a notification for accepting, but...what must happen after this on the underground?, I'm I little confused for "What to search", to start doing this, for example, when I didn't knew what was the concept of refreshing a webpage in real time I got the keyword for "polling", and just with that I was able to do the work, So, I don't know If you could just give a direction of what to search for the feature I'm looking, or at leats example of tecnologies using something close to this.
In Android Studio I connected my device and I can see the outputs of every single running application but i want to see the logs form only one application, I went to the filter and put in "anrdoid.kik" which is was the process is called but no logs showed up. I then went to the search bar and wrote the same thing, some logs showed up but it wasn't live no other logs were being shown live. I checked the name of the process by enabling "show processes " in my developer menu on my android but so far nothing seems to work any solutions? Using the search bar to filter by kik works but i also wish to check the network logs too and I dont think using only the keyword kik doesn't exactly work.
When you open Android Device Monitor, on the side with Saved Filtersyou click on + and add your application by Application Name. Also note that applications in release version (applications downloaded from play store) will not show up, because they don't have debugging messages allowed - not even in alpha release.
When testing on a device in Android Studio you get an awful lot of output in the logcat.
I'm only interested in the output for the app I'm developing. I can see just this, after running, by opening the Devices section and manually selecting my apps process. Problem is, it's pretty tedious to do this every time I run my app, which seems to be the case.
Is there a way to get it to remember this setup?
How about a way to get it to stop reporting anything after I'm done with my app or it's crashed ? (otherwise my app specific stuff gets buried so quickly by output from other proccesses on my phone)
I'm open to other ways of filtering the logcat too, however I couldn't think of a way to set up filters so that I would get my tagged Log messages AND other exceptions I wasn't expecting.
Any suggestions?
Normally this is done by default, but if not,
in logcat, the green plus sign, when you click it you get a dialog, fill the byApplicationName with your package name, and also your filter name with something, now you can filter your output according to your app
with that beeing said, sometimes you don't get the filter column info (application name) in logcat at all (blank), here (and I my self don't know the cause of it) just forget it for a while and retry again
I used to use an app called Log Collector to see system logs. It would send them to my email or via bluetooth,
However, on Jelly Bean the "read log" permission for apps no longer exists and apps can't read the logs, and Log Collector is obviously no exception.
So does one now need to root the device to see system logs? There must be a way for the user to read them. I don't need to access them from an application, I need to read them as a human being. Is there a way?
I got the answer in this google groups thread:
https://groups.google.com/forum/?fromgroups#!searchin/android-developers/READ_LOGS/android-developers/6U4A5irWang/8xOi74KfRIYJ
the message by Mark Murphy replying to Matteo Sisti Sette (which is me).
(it doesn't seem to be possible to link to a particular message, is it?)
POWER + VOLUME_UP + VOLUME_DOWN will generate a report and a screenshot that you can send via email or upload to Drive (ridiculous you can't share it in an arbitrary way such as send via bluetooth or open as text file, but anyways).
(seems you have to hold them for a while and the action is launched when you release them)
At first I thought he was making fun of me and that would just reboot or something, but then I tried and it works.
Quote from Google+ and credits to +Ian Clifton :
"If you go into the developer options of a device running 4.2, you can check the box to add the Bug Report option to the power menu. This also adds it to the quick notifications menu (not sure of the proper name, but slide down the notification shade with two fingers on a phone or on the right side of a tablet)."
..and that would be right answer.. Cheers
I have put in place the ServerManagedPolicy and am noticing some strange things.
(I have yet to publish the update)
So on a phone that has already purchased my application I have installed the new APK.
It all works good, however I then wanted to attempt testing when out of signal etc.
So I turn airplane mode on, and I instantly get the not licenced messaged.
The other account is not in my test account list.
Is this happening because I have not published the application so the VT,GT & GR results that are coming back are tiny or have I done something wrong ?
I think it may have something to do with this, need to roll back the version number for my testing !
http://groups.google.com/group/android-developers/browse_thread/thread/b83cc702603b0ee3?pli=1