LayoutInflater inflater, ViewGroup container
I am trying to google these classes so I know what imports to add to my list.
But it is a hit and miss affair - sometimes I find suitable examples showing the correct import files, often I don't.
It is probably going to be import XXX.XXX.LayoutInflater, but I have little idea what the XXX.XXX.part of it is going to be.
Is there a website where all this is adequately documented and quick and simple to determine?
gregaryb said:
LayoutInflater inflater, ViewGroup container
I am trying to google these classes so I know what imports to add to my list.
But it is a hit and miss affair - sometimes I find suitable examples showing the correct import files, often I don't.
It is probably going to be import XXX.XXX.LayoutInflater, but I have little idea what the XXX.XXX.part of it is going to be.
Is there a website where all this is adequately documented and quick and simple to determine?
Click to expand...
Click to collapse
If you are using Android Studio, If when you declare an element, say LayouInflater layout, it gives you an error, double click and select "LayoutInflater" word and it should show you the missing import. This should happen as well when trying to compile with this kind of errors.
Ciuffy's SM-G900F CM 12.1 spirit hath marked this way. Thank if helped your soul.
Related
I've placed them on sdcard/eBooks/import as the program says, but when i click to import them it says that nothing is found
So basicly i cant import them
Anyone else with that?
Are there other ways to import them or other readers good as Aldiko?
Strange, it has always worked for me. Takes it's sweet time, but it does do it. double check to make sure the directory is the correct case?
i made "import" with all small caps like in the instructions right?
The hello world from https://github.com/pjjanak/chromecast-hello-world was good, I was wondering if anyone know of any similar thing for video. I am trying to understand Fling (the receiver HTML part, I sort of get). However his Java and the Ramp protocol is a bit beyond me in the Sender portion. Anyone know of any simple HTML sender/reciever app that I could take a look at?
I realized that it is a lot to ask, but if anyone could help me I would appreciate it. I just want to learn on how to send a simple URL of video to the chromecast, no server hosting, no transcoding. Simple so my little brain could understand and learn.
I am getting my WhiteList, so I am looking for the official way.
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Thank you, Unholyfire, looking forward to your next post. And thank you for your help on the other post as well. I now have somewhere to host my file online. Just waiting on Google. And yep Sender is harder. I played around with the original sender from google (which doesn't work now), I used mongoose and whitelisted Localhost already so I am familiar with the hosting concept.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse
Try to Keep the post visible, I hope you have a good holiday weekend and please post the sender part whenever you can. Thank you.
Unholyfire said:
Once your device is whitelisted, you can make use of your AppID in the receiver and sender (also make sure to note the namespace you give your project/app).
For the receiver, have a look at this example provided by google: https://github.com/googlecast/cast-android-sample/blob/master/receiver/receiver.html
This is a basic media player handler. This will suffice for what you've requested.
You will need to replace the sections 'YOUR_APP_ID_HERE', and [cast.receiver.RemoteMedia.NAMESPACE] with your AppID and Namespace. Otherwise, it is ready to use "as-is".
The sender is a completely different story.
You mention you want to have an HTML sender (as apposed to an android app or ios app as the sender). This will require a hosted scenario (which, with a little configuration, you can make your local PC be the HTML host - AKA local web server software to HOST the html/js/css. Or if you already have a host for your receiver, you may place these sender items on it as well).
I'll continue this post in a little while. Have to continue working my "real job" then come back to this lol. Sorry.
Click to expand...
Click to collapse
It's quite a simple one I hope. Also, apologies for adding noise to the forum, but I couldn't find any detailed documentation or many tutorials.
I'm making use of findAndHookMethod for a little test project of mine. The problem is, the method which I am hooking has custom classes in its parameters.
Obviously I don't have access to these classes in terms of having the source code imported, so my first thought was just to list the paramaters as Object.class, but this didn't work.
What (if any) are the solutions? Thanks!
P.S.
In case I worded it badly. Say I have method to be hooked...
public void methodThatDoesSomething(ThisCustomClass nameOfParameter)
How do I use findAndHookMethod when listing parameters, as ThisCustomClass.class is not within the scope of my project
Use a string with the class' full name, e.g. "com.hooked.package.ThisCustomClass".
Hello!
As some could see in my other topic, I'm learning about android studio to make an app with some maths to help me with my job.
Well, in one specific case, I need to search and get values in a table, based in a reference. Its basically like the VLOOKUP/HLOOKUP function in Excel.
My doubt is the ideal way of doing that, is there any kind of table inside the android studio, like a container or something ? Or I should use a data base ?
Below is the same math, on excel, that is the base that I'm creating the app for android, in this case is a simple table, but in some cases are many values:
The attachment 001.png is the list where I select the materials Standard, and then I get the 2 values σt and σe from the table.
The attachment 002.png is the table I am looking for the values:
Sorry about this kind of question, but I'm just reading a lot, looking for tips leading me to an ideal way of doing it, but its a little hard in the beginning.
Thanks in advanced.
Barata
Conversion
Hey from your question , I undestood that you are looking for ready table to give values.
As i see you are getting values in excel.
1) There is no direct conversion table available into android studio.
2) You can use library project import if you require familiar conversion tables.
3) If in excel you make your own conversion method . apply same into Anddroid studio.
What more , share your method or query breif.
Hello,
Thanks for replying satyampv,
Actually my doubt isnt about conversion, I said about excel because I'm used to work with it. And its so easy to use vlookup there that I was wondering if would have something like it on android studio .
If I have to put some huge table in a database here on android, it's ok, I accepted that I would have to do it. But the doubt is if I really have to use a database, or if exists other way to look up for values in a table. Like you said "2) You can use library project import if you require familiar conversion tables.", is that an alternative for a database ?
Or should I just forget those "normal tables" from my mind and use SQL lite ? Because is just to look for values, just read, I don't need to write neither do any changes in the table after it's created.
Thanks in advanced, again.
barata
I've already seen lots of posts on the site for RTF to HTML converters and some other posts talking about some HTML to RTF converters, but I'm really trying to get a full breakdown of what is considered the most widely used commercial product, open source product or if people recommend going home grown.
I really need that so if there is any kind of solution you already know,please answer.
I already check librtf.sourceforge.net but it doesnt work properly as native code in C/C++. If there is anyone who used it before, and know how to implement it, please answer me!
Thanks a lot !
Option #1: If you were planning on packaging the RTF in the app itself (e.g., as raw resources or assets), get rid of the RTF and use HTML in your app in the first place, using either Html.fromHtml() and a TextView or use a WebView.
Option #2: Find some Java code that can convert RTF to HTML on the fly, then proceed as in Option #1.
Option #3: Find some cross-architecture C/C++ code that can convert RTF to HTML on the fly, add that to your app via the NDK, then proceed as in Option #1.
Option #4: Roll your own RTF parser and a SpannableStringBuilder to create the formatted Spannable to load into the TextView.