Help witht setbackground or setbackgrounddrawable - Android Q&A, Help & Troubleshooting

I have a view in my app that i need to change the background of, but the problem is when i do
view.setBackgroundDrawable(drawable); it says it is depreciated to use setBackground instead....
when i try to use setBackground(drawable); i get an error saying requires minimum api of 16, but i need my app
to run on android systems lower than that so what do i do?
Ryan

If you want to, just continue to use setBackgroundDrawable(). Its only depreciated, not killed off completely. or you can check THIS out and program in a work around to use either one depending on what os version the user is on.

sweet
i was able ti fix it by doing buttons[4].setBackgroundResource(R.drawable.utilities_flagpost);

Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A

Related

[Q] Expect scripting on HC 3.2

I am trying to write an expect script to log into cisco devices in my lab from my Xoom running tiamat 2.2.2 rom / HC 3.2.
Here is the script
Code:
#!/system/bin/expect
set timeout 20
spawn telnet 10.1.1.1
expect "Username:"
send "username"
expect "Password:"
send "password"
expect "#"
interact
exit
I think the script is right, however i dont think i have expect in system/bin. Is there a way to install it ?
or better still is there an easier way to automate the login process ?
Thanks in advance for helping a noob
i stumbled across an app called inserty , it gets the same job done , just in an easier way than expect script
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Hi,
I need the same job done but for a different reason.
Basically it telnets and sends commands into a Cisco device.
Have you managed to port Expect to Android?

[Q] Novo 7 Aurora help

Hi Guys,
Read alot lately about the Aurora, watch numerous youtube videos... I've now purchased and am now waiting delivery of my new shiney tablet.... I have a couple of questions for those of you out there who are lucky enough to of obtained one...... Is there a file manager app on the unit (Astro Manager)
that i could use to transfer numerous apks i have required for my Droid phone..
Also has anyone recently obtained an Aurora running 4.0.3 or is it just a rumour if so have they manager to get market running on it... As i've read Lordsbm is only for <4.0.3 fingers crossed i get the 4.0.1 version... Lastly is there any real benefit to rooting the tablet at this early stage. As long as i can transfer apks from my pc to tablet i cant see why...
Thanks for reading.......
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

flash player not working

Flash player not support my device.. help pls.
Before the thread gets moved to Q&A since it doesn't belong in Development...
I can only guess based on the lack of information, but it sounds like your version of the firmware is too old to support Flash 11.1. With that said, no one is going to be able to help you for certain unless we know what firmware you're running. You can find that in Settings. Post it and then you'll get more than guesses.
I updated today. after not working. appliance as he says does not support this item.
You still haven't told us what you're running on your Streak. For example, I'm running DSC 0.73 at the default DPI (dot per inch) of 160. I upgraded to Flash 11.1 earlier this week without issues. So again, no one is going to be able to give you more than guesses unless you tell us what you're running, simply so we can eliminate some possibilities.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Moving to Q&A

[Q] HP Mini 210 running Android

Hey guys. First off I'd like to say that I'm fairly new to all this, so don't be to harsh Anyway. I just installed Android 4.0.3 for the Android Thinkpad, onto my HP Mini 210. It works great, its fast, its awesome. Problem is, the wifi driver. From all the research I've done, I've found out that the linux doesn't natively support the wifi card that the Mini comes with either. So, I went about trying to learn how one would install it in linux. The two links below are to the drivers and the readme for the driver I need to install.
xda forums won't let me post the links... but if you do a quick google search for "802.11 Linux STA driver" it'll be the first one to pop up.
I can't figure out how to install the driver. I feel like I've gotten so close. But my limited knowledge of linux has lead me to a brick wall. Please help me here! Any and all help is greatly appreciated, even if its a link to another forum or site.
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
I want to know too
Sent from my Galaxy Nexus using xda app-developers app
wifi problem black screeen!!!

Nordictrack Vault

Hello, i am a new nordic track vault owner.. and through google I've been able to get into privileged mode.
For some reason they have restricted workouts on this device.. so i cannot use the vault screen with my bike. I have to purchase a smart tv to put beside it which seems utterly ridiculous.
I can't seem to be able to block the update servers in my firewall not even sure if that will resolve the issue. I just want it to recognize ifit as it would on my phone unrestricted.
Any ideas?
I've also tried kingo root and it failed.
I dont know if it's possible to put a launcher on it ?
Update: I've tried the steps on "if null then" but that didn't work
I also tried the steps here in the treadmill post although the launcher worked, ifit still restricted the workouts based on the device. So i'm not sure how to make it think it's just a regular tablet/phone - as there are no issues playing it there.
Thanks for any help.
shmoes1 said:
Hello, i am a new nordic track vault owner.. and through google I've been able to get into privileged mode.
For some reason they have restricted workouts on this device.. so i cannot use the vault screen with my bike. I have to purchase a smart tv to put beside it which seems utterly ridiculous.
I can't seem to be able to block the update servers in my firewall not even sure if that will resolve the issue. I just want it to recognize ifit as it would on my phone unrestricted.
Any ideas?
I've also tried kingo root and it failed.
I dont know if it's possible to put a launcher on it ?
Click to expand...
Click to collapse
@shmoes1
Prior to your next posting please read the guidances that are stuck on top of every forum like
[Read Before Posting]QUESTIONS DO NOT BELONG IN GENERAL
Hello Everybody, In order to attempt to keep this forum neat and tidy the moderation team is asking you to post your questions into the Questions and Answers (Q&A) forum and not into the General section. You can find the Q&A forum by clicking...
forum.xda-developers.com
and the others. I've moved the thread to Android Q&A.
Thanks for your cooperation.
Regards
Oswald Boelcke
Senior Moderator
hi, does anyone know how to get he base OS or firmware for the nordictrack android tablet?
Mine is
360526 MP7QCFS Module.​my tablet internal rom failed and now its reporting " no bootable device" . If I can find the firmware and instructions, I can load it into the sd card and get it back.

Categories

Resources