android


Rewarded video ad resume method


I'm implementing rewarded video on an application in c++ on ios and android, but the crash happened only on android. It happens only sometimes, when it comes from background to foreground.
I got the message Abort message: 'rewarded_video::Initialize() must be called before this method.' on crash report, and I think it`s when the resume method from the rewarded video is called.
Does anybody knows if I have someway of knowing if resume is supposed to be called? Or should it be called whenever the app enters foreground?
Thanks in advance,
Felipe.
I found out what the problem was. My app on android was creating another instance when opened from another source, and that was causing the error message on the rewarded video.
I added android:launchMode="singleTask" on the manifest and it worked.

Related Links

Attempt to invoke virtual method 'boolean java.util.ArrayList.isEmpty()' on a null object reference
Can I add autocomplete feature to my alert input dialog?
Java RSS Feed Reader Android Studio
Android Lollipop Set Status Bar Text Color
Location updates using google fused API client don't work
isReachable not working in android studio
CardView Click state not working [closed]
Performance Testing for Native Mobile Applications
Overriding string resources from module/library that have translations in Android
Android: how to change menu item at page scrolling with ViewPager?
transfer udp packets in android
Android SqliteAssetHelper copy user saved data
Android Studio - XML Serialization and XML Validation against .xsd schema
How to have a parallax effect between 2 ViewPagers?
SecurityException when calling BluetoothAdapter.getDefaultAdapter
Converting wav to m4a on android

Categories

HOME
windows
adal
cobalt
redux-form
object
angular2-material
themes
gradient
alarm
cq5
pkcs#11
accessibility
fabric.io
x-cart
xcodebuild
tput
favicon
dynatrace
coin3d
mvc-mini-profiler
red5
xmonad
soci
mapstruct
selinux
asciidoctor-pdf
ember-cli
custom-post-type
jquery-multiselect
dst
kudu
mustache
lubridate
jpad
dm-script
chef-solo
urlsession
unordered-map
apache-stanbol
apriori
android-softkeyboard
naming
sharp-snmp
chronicle-map
knime
uiimage
flask-restful
ovf
ntvs
datamaps
bluez
corruption
pair-programming
video-conferencing
context-sensitive-grammar
choice
smartfoxserver
flex-monkey
reporting-services-2012
expectations
avspeechsynthesizer
android-wake-lock
np-spring
asyncdisplaykit
themoviedb-api
zen-cart
toolkit
vacuum
keyup
mass-assignment
beatsmusic
mruby
metatrader5
psr-4
create.js
malformedurlexception
jquery-slider
square-bracket
multitasking
spring-3
breakout
hidapi
unit-of-work
tlf
cmmi
redis-py
inkcanvas
infobright
pinch
workflow-services
android-holo-everywhere
uipagecontrol
strsep
photolibrary
objective-j
facebook-iframe
nstokenfield
burndowncharts
wordprocessingml
todos
application-planning
httpcookie
cardspace

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App