When i integrated the RevMob into my application, it shows me the following error :
No ads for this device/country right now
Is there a way to solve that issue ?
Do you give permition in manifest<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
It means what it says. Revmob doesn't have any publisher for your country. Revmob has invested much in gaining developers rather than advertisers, thus they have lack of ads sometimes.
Just to check if you have done everything fine, try using VPN on your device for UK or US. They normally have ads for those countries.
To check the implementation you can use the test mode:
EnvironmentConfig.setTestingMode(true);
This is described on the sdk documentation http://sdk.revmob.com/android
It can be a temporary outage of campaigns for your device/country etc. It must be solved in the server/sales side automatically. But you can check your implementation using the testing mode, like Diogo said.
In the newest versions, you must use the following code:
RevMob revmob = RevMob.start(this, APPLICATION_ID);
revmob.setTestingMode(RevMobTestingMode.WITH_ADS);
Related
We reviewed your request and found that your app, does not qualify for use of the requested permissions for the following reasons:
The declared feature {Default SMS} is allowed; however we determined it to be unnecessary for the core functionality of your app.
Default SMS [READ_SMS, SEND_SMS, WRITE_SMS, RECEIVE_SMS, RECEIVE_WAP_PUSH, RECEIVE_MMS]
I use the <uses-permission android:name="android.permission.SEND_SMS" />
to share the app via SMS (send a text and a link to the website ), whats the work arround?
Thanks
If I understand correctly you want SMS as a feature but not a requirement.
I think what you wanted to do is add uses-feature declarations with android:required="false".
From android docs
When you declare android:required="false" for a feature, it means that the application prefers to use the feature if present on the device, but that it is designed to function without the specified feature, if necessary.
Solved by removing <uses-permission android:name="android.permission.SEND_SMS" />
and calling a intent to open the Native Device Sms App
I want to integrate AppSpeed Parameter in my Android Application, for that I have used the following code:
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
// Build and send timing.
t.send(new HitBuilders.TimingBuilder()
.setCategory(getTimingCategory())
.setValue(getTimingInterval())
.setVariable(getTimingName())
.setLabel(getTimingLabel())
.build());
and called the above sendmethod with appropriate methods, but App Speed section of my portal is still blank. How it will show the data ??
Thanks
Use this:
t.sendTiming(loadTime, "resources", "high_scores", null);
To have in mind that the tracks of timing (App speed) sometimes are not refresh immediately like Events and Screenviews in Google Analytics Console. In my case, I had to wait a few hours to see the results. Also check to have in AndroidManifest.xml the following:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
My app uses Bluetooth LE but it's not required, I've added:
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="false" />
Into the manifest but I'm still seeing it listed as a feature when uploading the apk to play store.
Eligibility of devices has plummeted since adding this permission and not sure if this is a bug in the android framework or I'm missing something.
Looks like you are doing it correctly by declaring it in your manifest
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="false" />
then using a block like this when you need to use the capability.
// Use this check to determine whether BLE is supported on the device. Then
// you can selectively disable BLE-related features.
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE) {
Toast.makeText(this, R.string.ble_not_supported, Toast.LENGTH_SHORT).show();
finish();
}
Seems like it's treating it like you put in true. Do you have any other manifests declared that are maybe being merged together and fouling the result manifest?
Turns out my issue was with the Estimote SDK, I found this line in the document:
Android Estimote SDK requires certain permissions in order to function
properly. Luckily, there’s no extra steps you need to take here. The
permissions are defined in the SDK’s manifest file and are
automatically merged into your app’s AndroidManifest.xml, so you don’t
need to declare them by hand.
So I decided to upgrade the library to the latest version and now my app doesn't require the Bluetooth LE feature.
What I want to do is posting a simple text to wall with the facebook sdk in android studio.
I want to post the text without the need of the Facebook app by the user.
Is that possible?
I've read
https://developers.facebook.com/docs/android/share
And I have 2 problems.
1) How can I set the text of my share?
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setLink("https://developers.facebook.com/android")
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
I can't see any setText method..or something like that..
Also can I do this without the facebook app installed on my phone?
I get the error
Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
I don't want to force my users to have facebook installed.. what should I do ?
add permissions in manifest of your application
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.SET_DEBUG_APP"/>
Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider
This can happen due to the following reasons:
You are not connected to internet
You have not given permission for internet access ( Manifest.xml)
You have not used a correct hashkey for the app
You did not provide a correct App Id
You have not installed Facebook in your device
Check if you have added the permissions:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.SET_DEBUG_APP"/>
EDIT:
You can use setName(String) to set the title and setDescription(String) to set the description. take a look at this documentation link.
i'm very new to android devolopment
i tried to run the sample project given in this example
http://code.google.com/p/google-api-java-client/source/browse/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java?repo=samples
but when i run it, it gives a force close error. after a messing around i figure that it has only list activity not activity class as others. why? how to fix it?
. my idea is to create a android software which i can push tasks from the server to the app then the app will add those as tasks in the phone? any sample apps like that?
Maybe you forgot to set the permission for Oauth?
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
New Task sample required Google Play Service Library to run you need to set up it and added into build path of your application.