import - How can I find out what need to be imported into an android project? -



import - How can I find out what need to be imported into an android project? -

for example: added snippet show notifications project:

notificationcompat.builder mbuilder = new notificationcompat.builder(this) .setsmallicon(r.drawable.notification_icon) .setcontenttitle("my notification") .setcontenttext("hello world!");

but how can find out needs imported avoid errors like: "error: bundle notificationcompat not exist"? "yum whatprovides ..." in fedora linux

you have 2 options: documentation or eclipse, eclipse told need import, illustration when utilize class first time, see:"import xxxxx" , later if see eclipse doesnt recommend , doesnt see where. can go to documentation in developer.android.com , propably find explication.

android import dependencies package

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -