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

How to change view after click?
How to modify the bar width in MPAndroidChart BarChart?
ActionToggle image not showing
Custom circular ProgressBar with image in center [closed]
How to set border and rotate a bitmap image in Android?
AutocompleteTextView not properly working listview in android
Throwing OutOfMemoryError "Failed to allocate a 31961100 byte allocation with 4194304 free bytes and 27MB until OOM
how to set vertical scroll bar for relative layout
Create a value observer and update textview/list view from any activity
Nested RecyclerView throws NPE
Android ImageView, maintain aspect ratio and crop top of image
Android LocationServices lastKnownPosition
Reuse RxJava stream from a remote API
Listening for tweet with Android app
App comparison using androguard
shadows are showing in unity editor but not on android device

Categories

HOME
phantom-dsl
azure-stream-analytics
gridview
localization
checkstyle
webdriver
google-spreadsheet
character-encoding
jmx
serialization
gradient
database-normalization
babeljs
echo
settings
google-admin-sdk
azure-container-service
opengl-3
heap
line
cmdb
angular-dart
cumulocity
qsqlquery
parameter-passing
firefox-addon
question2answer
easeljs
jboss6.x
android-sharedpreferences
apktool
soot
winpe
gitlab-api
livelink
cart
laravel-eloquent
twos-complement
imx6
sim-toolkit
reason
lint
sessionstorage
resolution
branching-and-merging
print-css
opencmis
pom.xml
httrack
term
clarifai
jquery-ui-draggable
chai-as-promised
launchctl
zenhub
excel-dna
arules
seq
universal-analytics
ampps
latin
drawstring
appscale
cda
hadoop-partitioning
pushbots
piracy-prevention
vhosts
character-replacement
fiware-monitoring
forwarding
rate-limiting
include-guards
google-books
extjs-grid
sony-lifelog-api
typemock
telepat
typeconverter
uvc
angular-gettext
uncaught-typeerror
lambda-architecture
parallel-testing
conditionaltagsupport
notorm
embedded-fonts
facebook-timeline
http-status-code-410
redis-py
database-create
virtualpathprovider
tournament
clrstoredprocedure
undefined-index
zen
qtabbar
web-application-project
feasibility
google-wave
complex-event-processing
business-model
information-management
movieplayer
image-capture

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