Sending data to the MFD - MTCD Android Head Units Q&A

Hey,
Does anybody know how to send data to the MFD (Multi Function Display)? I have a Corsa D. I get a "Welcome!!!" when it starts up.
I've tried decompiling a few apps (MTCCanbus, PCRadio) to see how they do it but it's pretty convoluted since you don't get the original variables and class names when decompiling.

Thread closed as per OP request because he had already posted it here https://forum.xda-developers.com/an...ions-development/sending-data-to-mfd-t3702593
Thanks
XDA Staff.

Related

Problem with ATPlugininstaller....

I have an interesting problem with ATPlugininstaller.
I installed chome editor v1.6 on my wm6.5 device.
At first it was working fine, and I created 2 plugins using it.
THEN, I decided to add the "day of the week" to the clock panel, by placing code directly in the titanium.cpr files.
Well, the weekday was added successfully, BUT now, I CAN'T use chome editor to create new panels, and I CAN'T install any plugin that uses the ATinstaller.
Whenever I try to do either, I get:
"An unexpected error occurred in ATplugininstaller
ATplugininstaller.exe unauthorized access exception
At System.IO._Error.WinIO error()
At System.IO.FileStream..ctor
At System.IO.FileStream..ctor
At System.Xml.XmlTextWriter..ctor
At System.Xml.XmlDOMTextWriter..ctor
At System.Xml.Xmldocument.save
At ATPlugininstaller.Main.AddLayout to cpr()
At ATPlugininstaller.Main.Main ()
As I said
, I get this same message when I try to create a new panel or add any cabs that require the plugin.
However, the panels I already created and the plugins I already installed still work fine.
My question is, why? My manually adding the code into the cpr files to show "day of the week" on the cclock panel is no different than the entries the installer makes when I install a plugin, or create one using Chome editor.
I know, I've looked thru the cpr file content. So, why does the installer crash AFTER I add the code for "day of the week" to the cpr files?
Can someone please help? Thanks.
Moved, nothing to do with development.
Ok then where do I put it? The ATplugininstaller thread IS in this developmen section, so I beg to differ with you.
I put it out here after getting no response to my inquiry in that thread.
This is one responsive board, out of 10 or so inquiries I've posted, I've only received 2 responses, all from from the author of one sw.
This is a real HELPFUL board,, I've got to say.
And, my inquiry, to remind you, HAS to do with development because I'm creating panels in Titanium using xml.
If the particular sw in question is in this section, then my inquiry as to why it crashes deserves to be here.
I guess it doesn't matter, the members on this board are of no help whatsoever. It's a waste of time to even post.
If I sound frustrated, it's because I am. I have no desire to get flamed, but I need help, and no one even answers.
No need to get frustrated .
Your thread does not belong to the development and hacking forum, that foum is please read the rules of D&H here.
Someone can only help you if they know the solution to your problem, no need to blame the users or the forum itself. Posting in the wrong section will not be helpful to you and will add to our work.
And if you really think posting here is a waste of time, why bother posting ?.
I have moved your thread to Q&A forum, which is regularly visited by developers and people with great knowledge in this field, patience is the key; not blaming the users of the board or being sarcastic.
As far as development goes, you are welcome to post your work ( pannels for titanium ) when they are ready, but not questions.
Hope you calm down, and not repeat such bursts of frustration. You could consider this a warnning.
Please read this carefully:
2.3 Flaming: XDA was founded as a group of people sharing information about certain mobile phones. Sharing does not involve virtual yelling (flaming) it does involve working together to solve problems in an environment of mutual respect and understanding. Losing your temper and flaming another member, or group of members, is not acceptable behavior.
Click to expand...
Click to collapse
I do understand your need for help, but calm down and have patience, try searching or contacting XML writers/developers.
Hope you co-operate.
Understood. I had to do some venting because of all the nonresponses. Can you at least tell me where you moved my post, or did you just delete it? Thank you.
Thank you for your co-operation.
It has been moved to question and answers senction under the general section.
Many people come by here, surely someone will answer; if they have a solution.
madnish30.
just try it with TICS instead of ATPluginInstaller
(link in my signature)
there you don't need a hardcoded .plg and you have the possibility for pre-/postinstall scripts.
Also more definite error message, if you get in trouble.

[Q] Get a list of database names in code from android app?

Hello,
I would like to get a list of database names in code. I'm not looking for databases outside my application/package, just those in my /data/data/<my_package>/database folder.
I can easily locate them on the file system and open them using adb and sqlite3,
but I need to dynamically get a list of databases so that I can open and manage them in code.
I currently use a separate database to keep track of database names as they get created/deleted through my application, but I imagine there is a way to get a list of databases directly via SQL query or some sqlite library call.
Can anyone help me with this?
Thanks,
-dj
This should be in the "Android Development" forum.
BTW, I tried to post this question in a more topical "Android Development" forum, but I'm an XDA newb and don't have permissions to post in there.
Maybe these links can help you? I don't do much droid programming anymore and I never worked with databases in droid. Also welcome to XDA
http://www.devx.com/wireless/Article/40842
http://developer.android.com/reference/android/database/sqlite/package-summary.html
solution
The solution turned out to be very simple.
The main application context has a databaseList() function that, conveniently, returns a list of database names associated with the application.
String[] dbList = getApplicationContext().databaseList();
Thanks for the links dbzfanatic. devx looks like a good resource... it's going on my bookmark bar for sure.
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
database names
dbzfanatic said:
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
Click to expand...
Click to collapse
Correct, just a list of the database names.
I need a few more posts before I'm permitted to post a link, but this is the approximate reference link:
developer.android.com/reference/android/content/Context.html#databaseList()

[Q] Is there an easy way to add a dummy service to an existing application? (for oom)

Hello world,
yes, I used the search function.
Background: (you may wish to skip to the question)
I'm a multitasker and I don't like Android killing my browser if I use one or two other applications for a minute or so, because I lose all my tabs content that way. While that isn't bad having a good network connection, it is real bad in subway train where I usally read news by phone and the internet connection is very bad.
So I tried many different things in order to prevent android from killing my browser, and finally I found a solution in the opera forum:
(I really would like to link you there, but: "To prevent spam on the XDA forums, ALL new users prevented from posting outside links in their messages. After approximately 10 posts, you will be able to post outside links. Thank you for understanding!")
knumsole wrote in Opera forum:
Here, take this: (sorry, can't post link, see above)
This is Opera Mobile 11.5.3, (...). I repackaged it with a dummy service which increases the OOM priority of the application. This will very effectively prevent Android from killing it.
Click to expand...
Click to collapse
(google for the complete sentences in that quote will lead you there.)
Adding this dummy service changed the applications oom priority from about 7 to 10 (--> gets killed soon to first) to an oom priority of 2 (which is totally stable for me).
[ooms read by auto memory manager.]
Question:
Is there a relative easy way to add a dummy service to an existing application? Such as "knumsole" did described before? (I tried contacting him, but wasn't successful)
I'd like to be able to do that myself, e.g. if I need a newer version of the browser. With "easy", I mean: I'm not an application developer, and I don't intend to become one. But I am able to extract an .apk file and modify text files in there and so. And if it is necessary, I would also compile that, too.
I use Android 4.1.2 on a rooted Samsung Galaxy S2.
Thank you!
* (more than) 24h bump *
24h bump
*bump*

[Completed] User defined icon placement?

First of all, i have lurked in several threads but am still a novice in the xda community - so allow me to apologize in advance for posting a question that may very well be asked in the wrong thread. I know this community has an abundance of knowledgeble members, so this was my first destination to find the answer I was looking for.
Q:
Is there a way (without root preferably?) anyone is aware of to create a user defined system for placing newly downloaded app icons on my desktop?
I am very anal about aesthetics when it comes to my phone, and i absolutely hate icons being placed in what seens to be an almost random pattern.
I want to be able to choose a user defined placement system that chooses the page, column, and row in which the next icon will be automatically placed after it is downloaded. Ideally there would be an order of importance that i could set so my device knows that if x spot is taken then the icon instead goes y.
I hope this made sense.
I generally use Nova Prime, and my device is running 4.4.2 and is not currently rooted (rooting is an option if thats the only way to make it happen).
Thanks in advance for any help i may receive.
XDA Visitor said:
First of all, i have lurked in several threads but am still a novice in the xda community - so allow me to apologize in advance for posting a question that may very well be asked in the wrong thread. I know this community has an abundance of knowledgeble members, so this was my first destination to find the answer I was looking for.
Q:
Is there a way (without root preferably?) anyone is aware of to create a user defined system for placing newly downloaded app icons on my desktop?
I am very anal about aesthetics when it comes to my phone, and i absolutely hate icons being placed in what seens to be an almost random pattern.
I want to be able to choose a user defined placement system that chooses the page, column, and row in which the next icon will be automatically placed after it is downloaded. Ideally there would be an order of importance that i could set so my device knows that if x spot is taken then the icon instead goes y.
I hope this made sense.
I generally use Nova Prime, and my device is running 4.4.2 and is not currently rooted (rooting is an option if thats the only way to make it happen).
Thanks in advance for any help i may receive.
Click to expand...
Click to collapse
Hi, thanks for using XDA assist!
First, please create an account and then ask your question here:
http://forum.xda-developers.com/showthread.php?t=2259645
Good luck!
Hi,
You have already registered a account on XDA and posted your question again here . wait for the response there
Thread Closed.

[Completed] How to Install apk to a folder with maximum size constrictions?

Hi Everyone,
I'd like to install an apk to a folder on my SD which will limit the potential size that the apk will grow to. Any advice? Appreciated !
I first thought of creating a separate partition on the SDcard to install the apk to, but I'd like to do that without formatting (wiping the SDcard)?
Tetragrammazoid said:
Hi Everyone,
I'd like to install an apk to a folder on my SD which will limit the potential size that the apk will grow to. Any advice? Appreciated !
I first thought of creating a separate partition on the SDcard to install the apk to, but I'd like to do that without formatting (wiping the SDcard)?
Click to expand...
Click to collapse
Greetings
XDA assist is here to help newbies find their way around the site, not for technical support. Try posting your query in:
> Android Development and Hacking > Android Q&A,Help and Troubleshooting.
Experts there may be able to help you.
Good luck
Thank you, I'm finding my way about the site.
Unrelated: I was in a website the other day and noticed they have some really nice layout buttons for responding. What do you think? (Screenshot attached).
I thought they'd look pretty nifty on XDA.
Tetragrammazoid said:
Thank you, I'm finding my way about the site.
Unrelated: I was in a website the other day and noticed they have some really nice layout buttons for responding. What do you think? (Screenshot attached).
I thought they'd look pretty nifty on XDA.
Click to expand...
Click to collapse
They look similar to the XDA buttons (I use the 2013 theme). Buttons are buttons to me, as long as they're in the right spot I'm happy.
What do you use the 2013 theme for, do you have a website I can check out?
I just mention the design as I found the buttons on XDA a little confusing at first and some other members, well one, (in particular) said that I had quoted too long or something like that.
So I was just wondering about it and I noticed this little layout when I was on another website. I just thought I'd mention it. It looks quite nice and self explanatory. As a new member I found the respond buttons a little bit confusing. Would you be kind enough to explain to me what the button that looks like a one of a pair of speech marks is for exactly (I say one of a pair, as in the UK we use double quotation marks). When one uses the reply button and the auto quote goes into the field, do you then have to then just delete that each time, or is there a way around that?
I'm just wondering.
I was also wondering, you might be able to give me some advice on the best way to respond on these forums. Is there an app that you can suggest that would be particularly good for responding on XDA and other forums in general?
I tried Tapatalk once before and found it glitchy, like it had its own agenda and wanted to wiz me around all over the net instead of being functional.
Tetragrammazoid said:
What do you use the 2013 theme for, do you have a website I can check out?
I just mention the design as I found the buttons on XDA a little confusing at first and some other members, well one, (in particular) said that I had quoted too long or something like that.
So I was just wondering about it and I noticed this little layout when I was on another website. I just thought I'd mention it. It looks quite nice and self explanatory. As a new member I found the respond buttons a little bit confusing. Would you be kind enough to explain to me what the button that looks like a one of a pair of speech marks is for exactly (I say one of a pair, as in the UK we use double quotation marks). When one uses the reply button and the auto quote goes into the field, do you then have to then just delete that each time, or is there a way around that?
I'm just wondering.
I was also wondering, you might be able to give me some advice on the best way to respond on these forums. Is there an app that you can suggest that would be particularly good for responding on XDA and other forums in general?
I tried Tapatalk once before and found it glitchy, like it had its own agenda and wanted to wiz me around all over the net instead of being functional.
Click to expand...
Click to collapse
If you scroll down to the bottom of any page here you'll find a bar on the left that says "XDA 2015". If you click that there's a drop down menu that brings up all the themes you can use. I use the XDA 2013 beta because I think that has the cleanest layout.
The speech marks always refer to quoting a post which is what I just did now. You can edit what your quoting and delete parts out of it. Just play around with the editor and you'll get it. As for an app, try XDA labs. You can click the banner in my signature to go to that thread.
Great, Thank you Art Vanderlay. Got it!
:good:
Art Vanderlay,
Unrelated:
I've had a look in the "groups" section. There doesn't appear to be all that much activity in there (at least in the groups I looked at).
Can you suggest a good group, or place (area) for hanging out and perhaps learning a bit more about Android, app making and what's going on @ the scene as a whole?

Categories

Resources