Comments (4)
Full stack-trace
Process: com.mindful_inc.sparkler.qa, PID: 9986
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7695)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1212)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
at android.view.View.requestLayout(View.java:23089)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
at android.view.View.requestLayout(View.java:23089)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.widget.ScrollView.requestLayout(ScrollView.java:1533)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.view.View.requestLayout(View.java:23089)
at android.widget.TextView.checkForRelayout(TextView.java:8908)
at android.widget.TextView.setText(TextView.java:5730)
at android.widget.TextView.setText(TextView.java:5571)
at android.widget.TextView.setText(TextView.java:5528)
at com.keenfin.audioview.AudioView$2.run(AudioView.java:100)
at java.lang.Thread.run(Thread.java:764)```
from audioview.
So, it is trying to set
mTime.setText(getTrackTime());
and telling me the Thread is wrong. How I can handle this correctly?
from audioview.
I think I fixed this problem in f07dbef. Also added Travis CI support so it would be great to add some tests.
from audioview.
Hm, will see what I can do with tests. And thank you for bugfix (will check it soon). Great library!
from audioview.
Related Issues (19)
- java.lang.IllegalThreadStateException HOT 1
- How to put Progressbar HOT 6
- its a great library... How to show notification without audioview2 ? HOT 1
- setDataSource(List<Uri>) kotlin not working
- Playing next / previous track HOT 1
- Music stops on sreen rotation.
- Can it stream audio from url? HOT 1
- Issue in UI on playing audio from url
- Audio not playing automatically with start() method HOT 1
- java.lang.NoClassDefFoundError: Could not initialize class android.media.MediaPlayer
- Crash app when click on close icon in notification
- render issue for layout in my androix
- Android 12 pending intent issue
- java.lang.IllegalStateException.android.media.MediaPlayer.getCurrentPosition HOT 4
- Please add license information for your library HOT 1
- AudioPreparedListener HOT 1
- Does it support for UI customization. HOT 1
- Time is not showing HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audioview.