android


App Crash When perform Add record in green dao using async task


I am trying to create an app todo list for demo.
Using async task to handle persist record (Using greenDAO) in background.
After add record, it will go back to listing screen.
When development is fine but now it is crash all the time.
The most i can found is similar to this question
Thanks for watching. :)
[Logcat as below]
D/AbsListView(2116): unregisterIRListener() is called
W/ResourceType(2116): No known package when getting value for resource number 0xff149e60
D/AndroidRuntime(2116): Shutting down VM
W/dalvikvm(2116): threadid=1: thread exiting with uncaught exception (group=0x4180dc08)
E/AndroidRuntime(2116): FATAL EXCEPTION: main
E/AndroidRuntime(2116): Process: com.jobm.mobile, PID: 2116
E/AndroidRuntime(2116): android.content.res.Resources$NotFoundException: Resource ID #0xff149e60
E/AndroidRuntime(2116): at android.content.res.Resources.getValue(Resources.java:2009)
E/AndroidRuntime(2116): at android.content.res.Resources.getDrawable(Resources.java:1584)
E/AndroidRuntime(2116): at android.view.View.setBackgroundResource(View.java:16144)
E/AndroidRuntime(2116): at com.jobm.mobile.adapter.FriendAdapter.getView(FriendAdapter.java:86)
E/AndroidRuntime(2116): at android.widget.AbsListView.obtainView(AbsListView.java:2720)
E/AndroidRuntime(2116): at android.widget.ListView.makeAndAddView(ListView.java:1801)
E/AndroidRuntime(2116): at android.widget.ListView.fillDown(ListView.java:697)
E/AndroidRuntime(2116): at android.widget.ListView.fillFromTop(ListView.java:763)
E/AndroidRuntime(2116): at android.widget.ListView.layoutChildren(ListView.java:1641)
E/AndroidRuntime(2116): at android.widget.AbsListView.onLayout(AbsListView.java:2533)
E/AndroidRuntime(2116): at android.view.View.layout(View.java:15655)
E/AndroidRuntime(2116): at android.view.ViewGroup.layout(ViewGroup.java:4856)
E/AndroidRuntime(2116): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
E/AndroidRuntime(2116): at android.view.View.layout(View.java:15655)
E/AndroidRuntime(2116): at android.view.ViewGroup.layout(ViewGroup.java:4856)
the origin of the problem is certainly one of this :the dependency injection to your item lsit ressource or you put int value in a textview.
Thanks guys for watching and willing to help.
First, my problem was solved.
Second, Errors is happened when it loading the listview and item in it, and the resource does't match with what i have set for the color in item.
Sorry for wasting your time :)

Related Links

How to make validation for Email in android?
How do I send data from Unity gear VR app over bluetooth?
Android Overwriting current Alarm
Dagger 2 robolectric test not compiling
android : custom progress bar
Shared Elements Between Fragments
Schedule a function to run at a future time with Cordova on Android
force toolbar to arrange children rtl android?
How can I post a parameter through JsonObjectRequest
Android how to open fragment from listview element
Android - How to add to ViewFlipper 2 different layouts s.t each has one YouTubePlayerView?
Parsing JSONObject to AlertDialog
google::protobuf used in android ndk develop
Is it good to add a listview inside Persistent bottom sheet in android?
Update Ionic 2 Platform
Writing data to BluetoothSocket on the UI thread

Categories

HOME
uml
facebook-oauth
angular-formly
pyqt
interface
solaris
nuget
seo
nsbundle
telegram-bot
limit
regular-language
crystal-reports-2013
lanczos
character
barcode
java.util.logging
resultset
code-generation
gruntfile
wolframalpha
google-container-registry
mapstruct
delphi-xe5
replication
react-toolbox
imageresizer
hta
object-storage
flask-sqlalchemy
short-url
jboss6.x
data.stackexchange.com
delimiter
linked-data
inversion-of-control
rpgle
subclass
gp
winpe
calculation
panoramas
event-flow
clickjacking
sim-toolkit
cd
sim-card
ods
recurrent-neural-network
cin
signals-slots
branching-and-merging
microsoft-metro
placeholder
angular-http
android-checkbox
wc
x++
phpdbg
puredata
geotiff
openblas
zenhub
arules
d3-force-directed
google-photos
ampps
branch-prediction
cvxpy
usart
stream-processing
data-protection
createprocess
crouton-os
asyncdisplaykit
opl
ess
pax-exam
eoferror
wso2greg
linked-tables
cakephp-2.7
java-security
procedural-programming
mruby
sip-server
administration
deform
human-computer-interface
vbe
websphere-esb
drupal-nodes
inappsettingskit
time.h
actiondispatch
android-loadermanager
zope.interface
expression-blend-4
screen-size
workflow-services
matlab-load
webdev.webserver
tournament
cgbitmapcontextcreate
socketserver
cloudfiles
uideviceorientation
maven-1
complex-event-processing
windows-identity
sifr3
java1.4

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