Retrieving a class

303
March 02, 2017, at 04:33 AM

Is it possible to get a class instead of a layout. This is the code. I want to retrieve a class because it has functionality. Instead of a layout just designs

// layouts of all welcome sliders
        // add few more layouts if you want
        layouts = new int[]{
                R.layout.welcome_slide1,
                R.layout.welcome_slide2,
                R.layout.welcome_slide3,
              //  R.layout.welcome_slide4};
Answer 1

All Java objects have a getClass() method.

That returns a Class object.

I don't know what you are showing with a int[], but you can use a Class[] or Activity[]

READ ALSO
can't receive message after reconnecting smack

can't receive message after reconnecting smack

I'm developing chat application using server side as openfire 39

306
Android formatting text using TextWatcher

Android formatting text using TextWatcher

I want to format my entered number in the format XXXXXX/XX/X I have come up with an algorithm but its pretty crap, instead I use index to insert a / at position 6 and 9, issue comes in on the deletion, if fails to delete as soon as it reaches any of the slashes,...

492
Reverting a bitwise/binary number to an array of values?

Reverting a bitwise/binary number to an array of values?

I have a a list of data that has a value attached to it that constantly gets doubled as it goes up:

255
MSSQL Query returns NULL with PHP code

MSSQL Query returns NULL with PHP code

I have a query which fetches all values in my SQL database but when I run it PHP, the query returns "NULL" and doesn't display anythingCan someone please help? I've attached my query and code

386