Comments (8)
replace
lcrud.setId(299);
with
int my_var=0;
my_var=my_var+299;
lcrud.setId(my_var);
solve error
from databasemanager_for_android.
Thanks... will add this to the code
from databasemanager_for_android.
Thanks!
On Fri, Jan 23, 2015 at 7:56 AM, Sanath Kumar [email protected]
wrote:
Thanks... will add this to the code
—
Reply to this email directly or view it on GitHub
#3 (comment)
.
Spencer Yeh
[email protected]
mobile: 650-804-0926
from databasemanager_for_android.
getting error on Line 830 of AndroidDatabaseManager.java
as "lcrud.setId(299)"
Error: expect resource of type id.
from databasemanager_for_android.
looks like you are using old version of android studio....
Check this solution on stackoverflow http://stackoverflow.com/questions/24716385/android-studios-expected-resource-of-type-checks
Try adding the below three lines in place of line 830.If this doesnt work search for more solutions on stack overflow:
@LayoutRes int resourceId ;
resourceId = 299;
lcrud.setId(resourceId);
from databasemanager_for_android.
nope.
I have latest version of android studio.
it did not solved my problem.
what is that 299 ???
from databasemanager_for_android.
I have sent you chat request on gmail.
Please accept it and help me to solve my problem.
from databasemanager_for_android.
Its just some random id you have assign to that layout.
Remove that line and try once . If that does not work write a function as given in that stackoverflow url and set the value.
from databasemanager_for_android.
Related Issues (20)
- setId(299) HOT 2
- dbm.getData HOT 1
- A minor change HOT 1
- Expected recource of type id HOT 2
- Minor typos
- Edit this Row Workflow is non-intuitive
- Text is cut off when updating or adding data HOT 1
- Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 2 to 1 HOT 1
- “There is no default constructor available in android.database.sqlite.SQLitepenhelper” in Android Studio
- Not closing the cursors
- unfortunately, interfacepluggin has stopped
- getActivity()
- Does not update row or delete table HOT 1
- Not showing table list
- Next page problem
- Issue in ReadMe
- Database HOT 1
- Color scheme doesn't work within Holo.Light theme
- Why don't use dbm.getData INSIDE the AndroidDatabaseManager class??? HOT 3
- Blob HOT 3
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 databasemanager_for_android.