yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Narfx:
I'm testing it right now. It looks good, but I have a question: can I define the same event for several locations? For example: activate wifi when at home OR when at work. Or disable wifi when leaving home OR work. Defining the same event for 4 or 5 places is a PITA.

I've tried creating several conditions in the same event ("Leave work" and "Leave home") but I see in the event description "Upon leaving Home upon leaving Work - disable WiFi if not connected". I don't know if it will be activated if I leave either work or home, or only if I leave both at the same time (which would be a bit difficult, since they are kilometers apart :D).
[Android Apps and Games] Kebab3000:
If you need to use ORs, you'll need to make two separate events. It may be a PITA, but having to deal with brackets, precedence and logic operators in a simple UI would be a bigger PITA.

You're right. You'd need to simultaneously leave two areas for that to fire, which is unlikely
[Android Apps and Games] Narfx:
Wouldn't it be possible to implicitly consider several location conditions as ORs? For example, if someone defines as conditions "LeaveWork", "LeaveHome", "Whatever1" and "Whatever2", trigger the action iff you have "(Leave Work OR Leave Home) AND Whatever1 AND Whatever2". I don't think many people would need AND for different locations.

(edit) Even better, why not implement the location condition as the "Day of the week" condition (i.e., with checkboxes instead of radiobuttons)? :)
[Android Apps and Games] Kebab3000:
Yes, multiselect checkboxes would seem to be the way to go. I've released loads of updates this weekend, so give me a couple of days and this will be implemented
[Android Apps and Games] Narfx:
Great :). It's the only thing I miss.
[Android Apps and Games] sachinchavan.in:
Installed and donated.

Keep it up.
[Android Apps and Games] ahmetdamar:
Thank you for this good app. :)

I think it must be adding the presence or absence of certain WiFi Hotspots (Access Points) as a condition. (as in Locale v1.4.3 http://www.androlib.com/android.application.com-twofortyfouram-locale-pzmC.aspx). This will prevent confusion between near places. And need to automatic pin code entering for airplane off.

Sorry for poor english.:(
[Android Apps and Games] sachinchavan.in:
Two things.

1. Llamma application sometimes just disappears (may be when i open too many applications and memory is low) and also is not starting on startup.

2. Yesterday Lllama app was gon totally. I mean I was not able to find it in my applications. Tried through Settings->Manage applications. But it was not there. though Llama Donation was intact. So I just installed llama again from market. I was lucky that the data was still intact.

Sorry for no logs. I am just busy with other stuffs. Would put the log files later.

Update:

My fault. The application was getting closed(killed) due to "Super Manager's Task killer". Added to favorite and now it seems working.

Still @Kebab can you tell me what made the application disappear(gt uninstalled) on its own.

I am using LG Optimus one P500- Rooted.
[Android Apps and Games] missparker76:
I have noticed issues I didn't have in the previous versions.

Sometimes though the profile is right it doesn't apply all the actions set up in the profile. Tonight for example my phone did switch from my car to my home profile but bluetooth is still on though one of the actions when I enter home is to turn bluetooth off. I had already had this issue a few days ago.

And in the first days of that new version I noticed that the sound profile had not switched properly. It was on lound at my office instead of quiet.
[Android Apps and Games] xxxhxxx2001:
Latest 2 versions screwed up my Bluetooth... it didn't work anymore with the blue & me of my car, keeps disconnecting as soon as I get a call.. even uninstalling doesn't help... had to restore a previous nanDroid backup. Same issue appears when using widgetsoid. I'm on rooted desire.
[Android Apps and Games] Kebab3000:
If it didn't appear in the manage applications list, sometimes android is sluggish at getting the real application name, and will instead put it as it's package name (com.kebab.Llama). God knows how it uninstalled? There's certainly no code about uninstalling

Can you turn on 'Write to LlamaLog.txt' and send me a log when that happens? It appears that the service isn't automatically restarted when the market updates it, which would make it miss stuff :( Can you let me know if the same thing happens in the latest version. Also check that one of your other events isn't turning bluetooth back on. I'll be adding an event history soon, so you can see what's been firing.

Why do you think Llama screwed up your Bluetooth? Llama calls the Android platform's enable/disable Bluetooth and doesn't do anything special or hacky to do so. It's not helpful jumping to assumptions. If Widgetsoid has the same issue, then there is something else at fault
[Android Apps and Games] d-lab:
Hi to all.

This app is really cool. Amazing.

I have download it only today and, I suppose for this, I cant understand how I can switch wifi-BT in a profile. Thx so much and sorry for the bad english.
[Android Apps and Games] Kebab3000:
Hey. Profiles don't change wifi or Bluetooth. They are simply to group the different volume levels.

You need to create or modify an event so that wifi or Bluetooth is turned on. Go to the events tab, press Menu then new event. Then add something like:

Condition - Enter Area - Home

Action - Toggle Wifi - On

Condition - Leave Area - Home

Action - Toggle Wifi - Off
[Android Apps and Games] d-lab:
Im sorry. Found it in: Event--> action.

Its reaaaaaaly great this app.
[Android Apps and Games] xxxhxxx2001:
I only know that I installed it and my Bluetooth stopped working properly...so I uninstalled it and restored the backup I made.. and everything works again...funny thing is that everything worked with the version that expired on 30 gen I think. Anyway I'm not accusing your app of anything only saying that that is what happened.. loved the app
[Android Apps and Games] missparker76:
Ok I've turned on 'Write to LlamaLog.txt'. I will send it to you if I see the problem happen again. I've also just installed Feb.6th version.

I don't think this is related to my other events as I hadn't modified any of them and none could launch bluetooth when I'm home etc.

I have a question regarding "car mode" condition: is it when the phone is in car dock or when you launch manually a car mode software?

Another thing: you remember when I had suggested manual mode? While trying new features I realized I would need only to create an event with no condition and I would only have to launch it by selecting "Testing actions". But adding a condition is mandatory for the moment. Could you add a "No condition" in the conditions list (sounds a bit funny but that would definitely be the solution!! :) )?

Thanks Kebab. This application is getting better and better.
[Android Apps and Games] Kebab3000:
Hmm, if you test the event's actions, does Bluetooth turn on?

I don't have a car dock, so I can't test that, but it works when I launch the Car Home app. You'll need Android 2.2 for it to work.

Hmm, it shouldn't do that. You can have an event with no Conditons in the latest version (I just checked). But if you do have a condition, it has to be valid. Regarding the manual mode... what would you think of home screen shortcuts for running event actions?

Cheers :)
[Android Apps and Games] missparker76:
Oops regarding bluetooth I think it's a misunderstanding. Bluetooth does work fine but sometimes when I go back home it should turn off but doesn't. What I meant is that I hadn't modified my events. Bluetooth did turn off automatically in the latest versions but it didn't in the previous version. But I have to test how it works in today's version. Hope it's clearer now ;)

You're right!!! I had indeed tried to create a new event and had clicked on Add Condition and finally hadn't selected any and I had a pop up message that said something like "You haven't created any condition. You need to create one in the future" and had to click "yes I promise I will'.

But I have tested once again and don't have the message anymore :confused:

So that's great I've created my manual event! :o

Good idea for shortcuts, that could be really helpful for the lazy people that we are :D
[Android Apps and Games] d-lab:
I have a question.

I have make some avents but how can make an event without set an hour??

For example.

Leave work.

I haven't always the same timetable. Thx
[Android Apps and Games] Kebab3000:
There's no requirement to have a time. The events that come built into Llama can be customised or deleted. On the events tab press Menu, then Add Event. Then just added 'Leave Area' and set it to work, then add the Change Profile action.

As long as you've taught Llama where all the cells near your work place are then it'll work :) Keep your eye on the Cells tab for the first few hours or so.
[Android Apps and Games] d-lab:
Well, thx so much. I use it from two days and I love it.

Cool idea. Really thx for shared ur work.
[Android Apps and Games] sachinchavan.in:
Two things.

1. Llamma application sometimes just disappears (may be when i open too many applications and memory is low) and also is not starting on startup.

More Update

Below update is not working.

Appication closes on its own..

I have now kept the logs on.

Will update soon

Update:

My fault. The application was getting closed(killed) due to "Super Manager's Task killer". Added to favorite and now it seems working.

Still @Kebab can you tell me what made the application disappear(gt uninstalled) on its own.

I am using LG Optimus one P500- Rooted.
[Android Apps and Games] kobik77:
Hi Kebab,

Thanks for this great app.

I'm still learning how to use it properly but I do have an issue with it.

I defined Llama to disable BT upon arriving home or work only if not connected.

I have two problems with that:

1. It disables my BT upon arriving even if my BT is still connected which means I'm driving the last few miles w/o BT.

It should disable BT only if the connection itself is down and not because I'm not in a call.

2. When entering area and BT and I'm on a call, LLama will not disable BT which is fine.

But then, I would like it to remember later when BT is disconnected to disable it.

Hope I was clear :)
[Android Apps and Games] Kebab3000:
I genuinely have no idea what would cause that. There's no self-destruct code, that's for sure.

Hi, Llama determines whether there is a connection based on an active A2DP (music headset) or SCO (whatever that is). I'm guessing car-enabled bluetooth headsets use something different, or maintain their connections so other way. Still, it should work so I'll see what I can do.

The new version has more explicit bluetooth connected/disconnected conditions. Maybe you could use those to switch off Bluetooth instead
[Android Apps and Games] benjymous:
The latest market update (1.2011.02.06.2145) is FC'ing on me instantly on startup. I've attached the log

(edit) Also, Ive noticed in the last week or so, there have been a few occasions where it seems to just stop updating the area - e.g. I'll be at home, and notice wifi is off. I'll run Llama to see what's going on, and get a "Entered Home" popup at which point it enables the profile - looking at the cell history will usually show a gap of a few hours where it's stopped updating.

Also, for a really minor request - any chance of getting the notification to say "Leaving Home" rather than "Entering Unknown Area"?
[Android Apps and Games] Kebab3000:
That's bizarre! It reckons it can't load one of Llama's Java classes. I would say uninstall then reinstall, but then you'd lose your data. Are you rooted and do you have titanium backup to backup your data outside of Llama?

What version of android are you running and what phone do you have?

Cheers
[Android Apps and Games] benjymous:
Sony Ericsson X10 mini running 2.1

I reverted back to an older version of the app, and restored data from the backup I made when I shifted to the market version, so haven't lost any important settings, thankfully.

(edit, re-installing latest, without any prior settings, still exhibits the same problem, btw)
[Android Apps and Games] Kebab3000:
OK cool. I'll have a look when I get home tonight. I'm building against the 2.1 SDK, but I'm wondering if there is some API that the mini doesn't have. Unfortunately Java's error message isn't very helpful :(

FYI, i've unpublished Llama from the market til I know what's going

Out of interest, how do you find using Llama on such a small screen?
[Android Apps and Games] benjymous:
No problems at all - it all fits nicely. The only cosmetic issue is that the tab icons look a little messy at the low res (presumably adding pre-scaled ldpi icons would fix that), but the app itself works perfectly!

(Did you notice the extra comments I added to my previous post after you'd already posted - failing to update, and the "entering unknown error" messages?)
[Android Apps and Games] Kebab3000:
Groovy. I'll work on some low-res icons when I've fixed your FC problem and get bored of writing code :)

I wrote a blog post about why it fails to update. http://kebabapps.blogspot.com/ The new version has a way of fixing it.
[Android Apps and Games] kobik77:
Thanks.

I'm currently using version 1.2011.0206.1300, is there a newer version?

Suddenly I can't find LLama on the market for some reason.
[Android Apps and Games] Kebab3000:
There was briefly a new version, but it's not working on an android 2.1 phone (I have no idea if it's all of them or just one). I've taken it off the market so noone else updates and breaks their Llama. It'll be back tonight though
[Android Apps and Games] kobik77:
I'm on 2.2.1, but I'll wait anyway.

Thanks and great job again.
[Android Apps and Games] Kebab3000:
Riteyo, so I still have no idea what caused the error, but these builds have better error handling in them. If Llama crashes now, it will dump out its settings to your SD card when it's next restarted without you having to press the export menu. It'll give them a different name, so it won't overwrite your other backup (if you've already exported)

Anyways, the error by benjymous said that Android couldn't find the broadcast receiver named IntentReceiver. Llama uses this to be notified of events from the OS. There appears to be 3 ways of specifying the name of the Java class that the OS should use to notify an application of events. Each of the 3 ways works on my phone (HTC Desire Z, running CM6.1). There is also a 'control experiment' that fails on my phone.

Benjymous, could you uninstall Llama, restart your phone, then install the top one? I'd be grateful if you could try them all to see if your phone accepts any of them. Don't worry too much about the last one, I know it won't work for sure

Much appreciated :)

Here are the 4 files:

com.kebab.Llama.IntentReceiver > http://www.mediafire.com/?v494torlafjacr1

IntentReceiver > http://www.mediafire.com/?88s19zx9ed169jk

.IntentReceiver > http://www.mediafire.com/?v1eyp79zd6ja7sr

IntentReceiverBroke > http://www.mediafire.com/?zb6g5450qaxgkia
[Android Apps and Games] missparker76:
Kebab I'd like to be sure that I use the feature the correct way.

Like a previous poster said I'd find it great to have the phone not disconnect from my car bluetooth until the car bluetooth is off even if I entered my home or office area.

If I understand well the bluetooth connected/disconnected condition may help.

What's the recommended setting to use?

- Should I add a 2nd condition in my "car event" i.e. "bluetooth device connected/disconnected" (I don't know how to understand this: does this mean phone+car connected or only car bluetooth on? Sorry for the dumb question but as I'm not English native I'm not sure to fully understand the meaning).

- Or should I create a new and separate event that would be "Bluetooth connected/disconnected" and that would work simultaneously with my "Car event"? Can several events work simultaneously?

Hope it's clear (I think I wouldn't be much clearer in French either LOL).
[Android Apps and Games] Kebab3000:
The previous 'Turn off Bluetooth if not connected' wasn't very reliable. It should be better now. Unfortunately I'm not sure how a bluetooth-enabled car behaves. With my music-headset, the phone's Bluetooth icon shows it as connected even if music isn't playing. What does it do for your car? Does it only show as connected when you have a phone call?

Ideally, I think your events should be:

Leave home -> Turn on bluetooth (for at least 5 minutes)

Bluetooth Device Disconnected (select your car) -> Turn off bluetooth

Those two events should work, assuming the improvement I made works for cars.

What other Bluetooth-related events have you got set up? Several events can work together, provided their conditions don't overlap.

Bluetooth Device Disconnected (Car) - should be read as "Car has disconnected from my phone". So your phone and car were connected before, but are now disconnected. It doesn't matter how they disconnected, either your car turning off, or your phone's Bluetooth turning off, or your phone going out of range of your car.
[Android Apps and Games] missparker76:
When I get into my car the car bluetooth turns on and I have the car icon blinking until it's connected to my phone. Then I have a connected icon both on my phone and my car radio that stays on until devices are disconnected.

I must be missing something as I don't understand the setting you suggested. Why turn on bluetooth only 5 minutes?:confused: After 5 minutes my car and device will disconnect.

And with BT device disconnected you turn bluetooth off (maybe you meant on?? In this case ok it would mean that car and phone would be always connected. But then when I would arrive home my BT would not turn off.)

Could we have an action like "let bluetooth on even if entering/leaving area" that would be used with "bluetooth device connected" condition?

I don't use any other bluetooth device with Llama, only my car.

EDIT: Nevermind. I have changed my action to "Disable bluetooth if not connected". I assume that's the action I need ;) I'll test that tomorrow.
[Android Apps and Games] odub303:
I'm really kicking myself for not installing this sooner. Great work to get this running in such a lightweight fashion, and it's obviously extremely useful. I was messing around with events, created my own and deleted a few of the default ones. I was wondering if there was a way to restore the default ones. Is there an xml file with the defaults somewhere? Thanks!
[Android Apps and Games] Kebab3000:
If you turn on bluetooth for at least 5 minutes, then if it doesn't find your car, Llama will turn it off. (This is assuming that it detects your car which is what I'm having problems with).

Can you do a test for me?

-Install the latest version on the market (1.2011.02.06.2145)

-Manually turn on Bluetooth

-Go to your car so your phone and car are connected to each other

-Create an event with 1 action: Toggle Blueooth set to Bluetooth Off (if not connected)

-While still in the event editor, press menu and test the action

-Let me know if Bluetooth turns off

-Manually turn bluetooth back on

-Dial a free number (like your voicemail), so that your phone audio is passing through your car

-Create an event with 1 action: Toggle Blueooth set to Bluetooth Off (if not connected)

-While still in the event editor, press menu and test the action

-Let me know if Bluetooth turns off

There's no way to restore them at the moment. You can export your current settings, then clear Llama's data and it will recreate them. You can then reimport your settings. Cheers :)
[Android Apps and Games] CerB:
anyway to get an older version ? since the new one is not on the marked yet.

Would love to try this app
[Android Apps and Games] kobik77:
Thought to myself that why not trigger "Arrive home/office" on BT disconnect.

As I always turn of my car BT off upon arriving to my destination.

Out of curiosity, are any more triggers planned to be added on next versions?
[Android Apps and Games] Kebab3000:
That's not really location based. You could be anywhere when you disconnect your Bluetooth headset. However, there's nothing limiting you from running the same actions that arrive home/office would have for when bluetooth disconnects.

I have these set up (amongst others):

turn down notifications for music

Bluetooth Device Connected (Jabra headset) -> change profile quiet

when I get to work and turn off my headset, be quiet

Bluetooth Device Disconnected (Jabra headset), Enter/In (Work) -> change profile quiet

When I get home during the day and turn off my headset, be normal

Bluetooth Device Disconnected (Jabra headset), Enter/In (Home), Between (6am -10pm) -> change profile Normal

When it's late, when I get home and turn off my headset, be very quiet

Bluetooth Device Disconnected (Jabra headset), Enter/In (Home), Between (10pm -6am) -> change profile Shhh

@CerB, unfortunately I haven't been keeping any previous builds around. It'll be back later tonight (unless I introduce more bugs this evening :p )
[Android Apps and Games] benjymous:
Ok - here's where it gets odd - I tried all three, and all of them seem to work fine :confused:

The only difference is that previously I'd moved the app from /data/app/ to /system/app/ (rooted phone) to save space - I only noticed errors when I updated from the market (meaning there was version [n-1] in system and [n] in data) - usually I test a new version of an app for a few days, then bake that version back into system. I'm wondering now if that class failure was some kind of confusion in the dalvik cache, maybe?
[Android Apps and Games] Kebab3000:
Possibly. I changed the name of the old BatteryReceiver to IntentReceiver. May have confused things. Good to hear it's working now :)

There's a new version on the market now
[Android Apps and Games] kobik77:
Hey Kebab3000,

I tested the new version using "Bluetooth Disconnected" and "Enter/In Area" conditions it is working fine.

BTW, the conditions are ANDs, right?

And are any more conditions and actions planned to be added on next versions?

Thanks alot!
[Android Apps and Games] cwinheim:
I have only played with the app for a minute (though I have been checking out the thread for quite some time). It is really great, but I have a suggestion.

The primary functions I need:

silence/wifi on at work (time/location based)

loud at home (location based)

bluetooth on/4g on in car (**location based)

loud/wifi off/4g on outside of work and home (null)

**This is the most difficult since the idea it to turn on based upon parked location (which changes). Here's what i think would be a solution: Create an action which it to make a temporary location. Then create a condition which it to enter that marked location.

It would function like this:

(car location stored per above direction)

1) Enter car location- turn on 4g and bluetooth

2) Enjoy bluetooth streaming audio and speakerphone in car

3) turn off car (which disconnects specific bluetooth network)- trigger store temporary location

[repeat- enter stored stored location, etc.]

A couple more notes:

1) I am not a fan of status bar icons, regardless of their informative nature. Is there a way to disable this altogether? If not, an option should be added. Also, if we could have custom icons, say a house, a car, an office building, etc. that would work too.

2) OR and AND conditions would be nice since right now you have to create multiple events if you have multiple scenarios in which you want to have the same profile (for instance multiple home/cars/parking locations).