android


Android sometimes getSerializableExtra returns null


I publish an app that works normally but sometimes (very rarely) getSerializableExtra method return null (detected with Crashlytics).
Does anyone know why?
Exemple Launch intent:
if (obj != null) {
Intent intent = new Intent(getActivity()/this, ActivityToLaunch.class);
intent.putExtra(ActivityToLaunch.ARGS, obj);
startActivity(intent);
}
Getting data in onCreate methode :
getIntent().getSerializableExtra(ARGS);
My obj is a custom serializable class, for exemple :
public class Program implements Serializable, Comparable<Program> {
private long idProgram;
private String name;
public long getIdProgram() {
return idProgram;
}
public void setIdProgram(long idProgram) {
this.idProgram = idProgram;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
#Override
public int compareTo(#NonNull Program another) {
return getName().compareTo(another.getName());
}}

Related Links

Android stop IntentService don't run in proximity Sensor
Incorrect behavior of gravity attributes of new Android Toolbar's child views
Restricting Inappropriate Videos when Uploading to App
Get content from a XML file over http very slow
Listener to check for first character in autocompleteTextview
Android Installation error: INSTALL_FAILED_DEXOP
Want to restart service if application stopped by user from application manager.
Is it safe to send Android certificate key along with source code?
How to implement long press on SurfaceView?
How to add SurfaceView diplaying camera preview with opactiy
Share for Twitter automatically from Android? [duplicate]
Bluetooth chat multithread is possible?
Mass import of keymappings from Eclipse to Android Studio
How to send photo using Facebook app from another android app
OpenGLRenderer trying to scale down bitmap - when reaching end of ViewPager
Getting wrong item image button clicked in listview

Categories

HOME
azure-stream-analytics
fuelux
string
redux-form
google-spreadsheet
3d
flex
rsa
interface
yahoo-finance
jelastic
gradient
database-normalization
cublas
android-json
jtextpane
vert.x
modal-dialog
project
augeas
pcl-crypto
text-mining
activecollab
why3
naivebayes
enterprise-architect
qsqlquery
mvc-mini-profiler
easyphp
asciidoctor-pdf
user-experience
imagemap
ember-cli
inno-download-plugin
direct3d11
xunit
froala
data.stackexchange.com
pic32
datastax-enterprise-graph
errbot
alm
scrollview
dotspatial
zend-debugger
utorrent
spring-security4
joomla2.5
arduino-ide
servicestack-text
imagenet
loading
diacritics
chef-solo
mcustomscrollbar
odoo-website
wmp
movilizer
show-hide
getchar
textsum
page-replacement
colorbar
arules
universal-analytics
branch-prediction
change-tracking
cronexpression
pytables
rspec2
mapinfo
cifilter
appscale
refinerycms
lua-telegram-bot
data-protection
boomerang
toran-proxy
avisynth
xenomai
ess
rate-limiting
pax-exam
zend-currency
bcache
qtwebengine
cross-join
rapidsvn
boost-program-options
primitive-types
sql-scripts
cbind
decoupling
rfc5322
eclipse-kepler
gtm-oauth2
script#
jquery-1.9
pagedown
traceability
video-codecs
twisted.web
subproject
usertype
fitbounds
convention
instantiationexception
drupal-fivestar
blender-2.49
purepdf
scrubyt
todos
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