Run Blustacks or Android to play clash of clans on ubuntu 13.4+

82

Install VirtualBox Install virtualbox from the Ubuntu Software Center.

download android sdk to run AVD

Create a new Virtual Machine with the steps mentioned here. http://androvm.org/blog/blog/2012/11/14/androvm-configuration-tutorial/

download ur app and run

------------------OR-------------- (BEST=>)Try Genymotion runs with VBox/ Linux Its not really bluestacks but something similar which will emulate android apps http://forum.xda-developers.com/showthread.php?t=2333452

Share:
82

Related videos on Youtube

virepo
Author by

virepo

Updated on September 18, 2022

Comments

  • virepo
    virepo over 1 year

    I have looked at the other related posts on stack overflow but still cant get this working.

    Should be very simple.

    I have this jQuery and HTML code:

    $('.add-headset').click(function() {
      if ($(this).text() == 'ADD') {
        $(this).text('REMOVE');
        $('.buy-headset').val('hiii');
      } else {
        $(this).text('ADD');
        $('.buy-headset').val(0);
      }
    
    });
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
    <div class="add-headset">ADD</div>
    <input type="text" name="buy_headset" class="buy-headset" value="0" hidden />

    The text changes between ADD and Remove fine, but the value of the input field is not changing. I don't understand as I do pretty much the same thing with a different element underneath and this works fine.

    Any ideas?

    • Shivam Sarodia
      Shivam Sarodia almost 10 years
      What is your question here?
    • Joe Hanus
      Joe Hanus almost 10 years
      I want to play Android apps and games Pacifically Clash of CLans on Ubuntu
    • Joe Hanus
      Joe Hanus almost 10 years
      I also tried Running Windows 7 with Virtual box and then Bluestacks within the Windows VM but still loading error
    • bamtheboozle
      bamtheboozle over 6 years
      You can't use val() to set the value of a div element. Use .append() instead.
    • Rohit Kumar
      Rohit Kumar over 6 years
      s0 y0u want to change text for $('.buy-headset') ?
    • virepo
      virepo over 6 years
      I want to change the value of the input field with the class of buy-headset
    • GreyRoofPigeon
      GreyRoofPigeon over 6 years
      Seems to working fine... jsfiddle.net/j23hprbc (note, removed the invalid hidden attribute)
    • JLRishe
      JLRishe over 6 years
      The value is changing. The question is - why do you have a text input that you're not displaying? Isn't that what hidden inputs are for?
    • palaѕн
      palaѕн over 6 years
      Just do console.log($('.buy-headset').val()) inside click at last. It is getting correct value everytime.
    • Rory McCrossan
      Rory McCrossan over 6 years
      Note that val() updates the value property of the element, not the attribute, so the change will not be visible in the DOM, even though the call worked.
    • freedomn-m
      freedomn-m over 6 years
      @DragoşPaulMarinescu 1 it's an input type=text not a div 2 if you use .append() it won't change the value, it will just keep adding new values. At least suggest using .text() or .html().
  • Joe Hanus
    Joe Hanus almost 10 years
    Wine does not work for Bluestacks unless you or someone else got it to work i couldnt thanks i wish it was that easy
  • bobpaul
    bobpaul over 9 years
    Bluestacks does not work in VirtualBox; it complains that the graphics card is unrecognized and refuses to install. Clash of Clans does not work on GenyMotion.
  • virepo
    virepo over 6 years
    Thanks! been scratching my head all day aha