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

Scrollview is not scrolled in Linearlayout?
not able to generate a signed apk with same SHA-1,
Android how to write audio track to sd card as mp3 or other audio format
getView() method CHANGE listview items positions
Remove excess whitespace at bottom of ListView item
How do I keep from focusing the last EditText when navigating from a tabbed Fragment?
Why AsyncTask make infinity loop
Android Activity-Notification BackStack Management
How to search a string into a string builder in android
Get all ListView items(rows)
What is the purpose of null in addToBackStack(null)?
Android “Handler” class missing in Intellij IDEA 13.1.4
Trying to make my layout compatible for large phones, phablets and tablets. Can I set a maximum width for my activities/layouts?
How to increase textview size programmatically in class in android [closed]
GoogleMap crashes randomly while zooming - Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
How to configure Android in Myeclipse 2014 IDE

Categories

HOME
go
grok
gridview
checkstyle
fuelux
angular2-material
jmx
hessian
sh
composite-primary-key
sublimetext
appcelerator
bitbucket-api
nsbundle
alsa
settings
polling
vsm
data-visualization
lanczos
modal-dialog
project
jquery-ui-sortable
google-chrome-app
mautic
angular-dart
azure-iot-hub
package.json
symfony-2.8
dreamweaver
android-7.0-nougat
vuejs
jersey-1.0
digital-signature
shortest-path
sigma.js
sencha-touch
poedit
spring-async
href
dataflow-diagram
event-store
xunit
mount
custom-post-type
soot
subclass
errbot
complex-numbers
papaparse
card.io
openalpr
timing
health-monitoring
typesafe-config
mongoose-schema
vmware-fusion
avcapturedevice
angular-http
jboss-4.2.x
dbcontext
datamaps
corruption
video-conferencing
stdmap
modelsim
git-flow
boo
mathcad
stax
autosar
lrs
watch-os-2
ng-grid
dimension
observablecollection
tracker-enabled-dbcontext
character-replacement
fiware-monitoring
graphics2d
snoop
xmltype
sonarqube-5.0
parallel-testing
lnk
websphere-esb
spring-3
eclipse-kepler
pstack
kqueue
jsr286
update-statement
folding
murmurhash
fdf
online-storage

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