advancedandroid_mygarden's People
Forkers
radsen adnanul megavak ravieee046 abdrrahmenz massaohigaskino omicic dilipkumar4813 ehbraheem esidem maximbravo photizzo toluwanio nagyist nicokurogane mohammedmabrouk kokoafantchao ujwal2910 huy-coursework tuonbondol chenzhuo914 ventura2 eamedina87 himakiran nishantdesigns purbohadi polash mahmoudashraf-cis emad2411 zoloft147 karabulut1989 pmalland geoholix davegogol alancowap aidenak huyttq-fsofter gauthamrajesh barbietunnie dariomartin feharaujo u34rali morshed-islam plusema86 shawn-ma-mel gohilchirag yi904835116 adirahman razacoderepo ivzb techieeupload f1dz lixw1021 pliao608 pieeet muirdh jenalgit thasneemp tefic rb5988 rafaelkozar teldot kornden cfirmo33 bogdanorzea ronnymakhuddin ggguille ed828a carlosgilsaenz unorthodoxdev scaffeinate albarip ollerandres andre-gomes-oliveira mrdroid17 hrishikesh-kadam sivaprojects arsan-irianto aaroncrutchfield pritamtirpude redjack1888 yuleven androidgeniuscode sloshyd dhanaruban selidinok nexus06 omracun vjauckus dheaarmalivia iamzubairkhan magcarnota acor71 sapsztor felislynx-silae ctp27 miltonsiqueira kittytiger7 silkster87 minasamircapadvancedandroid_mygarden's Issues
Dependencies outdated
I created a pull request to update all the dependencies due to the project being so old.
Problem loading widget
This is what it says on the widget once its dragged into the screen.
The app works but when I try pull the app onto the screen it shows "Problem loading widget".
This isn't a string I've declared which leads me to think that this is something internal but how to find this when no error shows in the logs is an issue for me.
https://github.com/BenMohammad/AdvancedAndroid_MyGarden-TWID.05-Exercise-GridView
Widget Pending Intent does not deliver extra
Hi, i had a trouble with Pending Intent Extra.
Pending intent to PlantDetailActivity
in getSinglePlantRemoteView()
wasnt deliver extra data.
I had a UnsupportedOperationException
in PlantContentProvider
(uri single path was -1)
But linejava intent.setAction("ThisFixDataLost")
fixed it.
(https://stackoverflow.com/a/3128418/7996129)
Steps to Upgrade Gradle Version and Plugin to Your Latest Android Studio
PlantWidgetProvider (ln 50): Set flag in PendingIntent
This line
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);
should be replaced by
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
I was getting issues with a -1 being sent to the ContentProvider when querying and this was the problem.
Note that this issue has been corrected in the solution branch, but still can be confusing if you are following the tutorial: TWID.05-Solution-GridView
Wrong DetailActivity screen when click the widget in brach TWID.04-Solution-Extras
I've solved this problem by replacing line 48 in PlantWidgetProvider.java in TWID.04-Solution-Extras
with this line:
PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
IllegalStateException: not allowed to start service intent ... app is in background
- Min SDK = 16
- Target SDK = 28
Whenever the methods of PlantWateringService
class i.e startActionWaterPlant()
and startActionUpdatePlantWidgets()
gets triggered, the app crashes and the log points to the line context.startService(intent)
How to resolve this issue?
Problem loading widget
I'm experiencing a problem loading widget message when stretching it. I've re-scanned the code here many times but I see no difference. Does it also have a problem, like a Cursor
issue in previous lessons?
Vector Support for Android Studio 3.0
The gradle file for the app must include vectorDrawables.useSupportLibrary = true in the defaultConfig for vectors to work
Database name
In the starter code, in PlantDbHelper, DATABASE_NAME = "shushme.db"
Though this name works, it probably ought to be changed to "mygarden.db"
Exercise 5: Should have minSdkVersion 16
The getAppWidgetsOptions method used in Exercise 5 was not introduced until API Level 16.
Layouts plant_age and water_meter are cut off in activity_plant_detail.xml
Libraries Outdated
Attempting to access a closed CursorWindow.Most probable cause: cursor is deactivated prior to calling this method.
Dont know why i keep getting this error, whenever i want to add a new plant and also, whenever i want go back gro the previous state.
Process: com.example.android.mygarden, PID: 11632
android.database.StaleDataException: Attempting to access a closed CursorWindow.Most probable cause: cursor is deactivated prior to calling this method.
at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:139)
at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:74)
at android.database.CursorWrapper.getLong(CursorWrapper.java:127)
at com.example.android.mygarden.ui.PlantListAdapter.onBindViewHolder(PlantListAdapter.java:71)
at com.example.android.mygarden.ui.PlantListAdapter.onBindViewHolder(PlantListAdapter.java:32)
at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:6673)
at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:6714)
at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:5647)
at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:5913)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5752)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:5748)
at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2232)
at android.support.v7.widget.GridLayoutManager.layoutChunk(GridLayoutManager.java:556)
at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1519)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:614)
at android.support.v7.widget.GridLayoutManager.onLayoutChildren(GridLayoutManager.java:170)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3812)
at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:3529)
at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:4082)
at android.view.View.layout(View.java:18799)
ERROR: No toolchains found in the NDK toolchains folder for ABI with prefix: mipsel-linux-android
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.