Questions tagged object

Explore the latest questions and answers asked by our top developers.

Is it possible to get an object from a list in a ViewHolder where you can create new Views based on a variable

I want to make a RecyclerView where a new view is created by a value in an object. I have a list of devices which has a variable ‘dimmable’. When it is dimmable, the ViewHolder has to create a new SeekBar. When it is not dimmable, the ViewHolder has to create a new Switch. I […]

By Thisie
Published
Categorized as android, android-recyclerview, android-viewholder, object, position

How to send JSON data using Multipart/form-data without file/image in android

I am trying to send JSON data in Multipart/form data type but having an issue that how do I convert object of class in json string and send it as a type of Multipart/form-data. Please suggest me if anyone knows about this. Thanks in advance. Source: Android Questions

By Abhijeet Nimbalkar
Published
Categorized as android, json, multipartform-data, object

Confused with designing my Car inspection Checklist android java app?

I am designing my first android app in Java. It a predeteremined app todo checklisttask list for checking all components of the customer car. How do I design my classes so I can eventually connect them or store them all in the same object as a report for a customer or car. So what I […]

By Babyshark
Published
Categorized as android, java, object, oop, structure

Confused about Data Modeling my Car inspection Checklist android java app?

I am designing my first android app in Java. It is a predetermined app to-do checklist task list for checking all components of the customer car. How do I design my classes, so I can eventually connect them or store them all in the same object as a report for a customer or car. So […]

By Babyshark
Published
Categorized as android, java, object, oop, structure

Rotate object by 90 degrees?

I know this has been answered like 1000 times, but I just don’t know how exactly should I do the coding. All I want is when the platform changes it’s position on the x or the z axis, then rotate the whole platform by 90 degrees. I tried it with a platform.transform.Rotate(0, 90, 0), so […]

By imbruceter
Published
Categorized as android, c#, object, rotation, unity3d

Loop Object from an single Array

im sending an Json Array from Activity A to Activity B, and i want to populate that Json Array into Spinner in Activity B. but when i Log the json array from Activity A, the data become an single object "NVAKSINATOR" : [{"NVAKSINATOR":"[{"NVAKSINATOR":"20800"},{"NVAKSINATOR":"0"},{"NVAKSINATOR":"77350"},{"NVAKSINATOR":"51750"},{"NVAKSINATOR":"30000"},{"NVAKSINATOR":"51500"},{"NVAKSINATOR":"25750"},{"NVAKSINATOR":"30900"}]"}] i want that number like 20800 , 0 , 77350 to be […]

By Irfan Ahmadi
Published
Categorized as android, arrays, java, json, object

Count detected objects with tensorflow lite application

I have created a custom object detector with tensorflow 2.6.1. It is running on my android device and everything works great ! But I want to implement a feature, where my tflite app counts the detected objects. I know that there is tensorflow object counting API, regarding this github link: https://github.com/ahmetozlu/tensorflow_object_counting_api The question is how […]

By DemolitionLV
Published
Categorized as android, detection, object, tensorflow

Using object to store data from MYSQL and using a method to print out all the data on TextViews but it does not work

I am trying to capture data from mysql and store it into an object named User and I am trying to print all the data from the objects into TextViews using method show account. For some reason the data does not get printed on these text edits and there are no errors. I think I […]

By Wolo Lo
Published
Categorized as android, android-studio, java, mysql, object

My object class doesn’t want to be passed with Intent.putExtra/Intent.getExtra

I have a object class that I want to use it between activities. I used exactly the same method for another activities and worked perfectly fine. But here I can’t figure it out what I am doing wrong. This is the object class : `package com.mecachrome.ffbf; import android.os.Parcel; import android.os.Parcelable; public class topic implements Parcelable […]

By Zabava Mihai
Published
Categorized as android, android-activity, android-intent, firebase, object

In android methods are called without creating Object

Im a beginner learning java and andorid so please bear with me even if the question sounds idiotic. So from what i know from java, in order to call a non static method, class must be initiated. But i came across a code like below might not be correct since im writing off of my […]

By JINWON KIM
Published
Categorized as android, java, object
1 2 3 10

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq