TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
JOHN JOHNNNY
NA
190
140.2k
Cannot resolve symbol TYPE_NON_CONSUMABLE
Sep 19 2016 11:29 AM
Hi Everyone<br /><br />I am trying to integrate fortumo (Direct Career Billing) in my app<br />but gettinh an error "cannot resolve symbol TYPE_NON_CONSUMABLE" on a single line<br />this is my code below<br /><br />public void onClick(View v) {<br /> switch(v.getId()) {<br /> case R.id.buy_button: {<br /><br /> PaymentRequest.PaymentRequestBuilder builder = new PaymentRequest.PaymentRequestBuilder();<br /> builder.setService(SERVICE_ID, APP_SECRET);<br /> builder.setDisplayString("Fortumo Sample1");<br /> builder.setProductName("Fortumo Sample1"); // non-consumable purchases are restored using this value<br /> builder.setType(MpUtils.TYPE_NON_CONSUMABLE); // non-consumable items can be later restored<br /> builder.setIcon(R.drawable.ic_launcher);<br /> PaymentRequest pr = builder.build();<br /> makePayment(pr);<br /><br /> } break;<br /> }<br /> }<br /><br />Kindly help
Reply
Answers (
2
)
how to work with two jbuttons in jswings
Java application - read citizen card data