Coder Social home page Coder Social logo

Comments (8)

ishfaqhaider avatar ishfaqhaider commented on July 18, 2024 1

replace
lcrud.setId(299);
with
int my_var=0;
my_var=my_var+299;
lcrud.setId(my_var);

solve error

from databasemanager_for_android.

sanathp avatar sanathp commented on July 18, 2024

Thanks... will add this to the code

from databasemanager_for_android.

SpencerY2 avatar SpencerY2 commented on July 18, 2024

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.

kiran-pathe avatar kiran-pathe commented on July 18, 2024

getting error on Line 830 of AndroidDatabaseManager.java
as "lcrud.setId(299)"

Error: expect resource of type id.

from databasemanager_for_android.

sanathp avatar sanathp commented on July 18, 2024

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.

kiran-pathe avatar kiran-pathe commented on July 18, 2024

nope.
I have latest version of android studio.
it did not solved my problem.

what is that 299 ???

from databasemanager_for_android.

kiran-pathe avatar kiran-pathe commented on July 18, 2024

I have sent you chat request on gmail.
Please accept it and help me to solve my problem.

from databasemanager_for_android.

sanathp avatar sanathp commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.