Search:

Type: Posts; User: bean

Page 1 of 7 1 2 3 4

Search: Search took 0.57 seconds.

  1. Replies
    0
    Views
    105

    how to put margins around imageview

    hi im trying to place an imageview in a framelyout at a place but it always comes up at x=0,y=0
    ao what am i doing wrong


    ViewGroup.MarginLayoutParams markerParams = new...
  2. Thread: what data type?

    by bean
    Replies
    1
    Views
    121

    what data type?

    hi sorry if this is in the wrong section i have a small piece of code which is loosing me decimal points


    //simple division but outputting the wrong answer
    double...
  3. how to keep views the same on different devices

    hi this is wrecking my head i have an image and i want to place buttons on different parts of the image but on every device the buttons are in different place and or sizes even if the devices have...
  4. Replies
    1
    Views
    332

    Re: why am i getting this error

    the problem was i updated my sdk but not my ide and the 2 where incompatible once i updates android studio the problem was sorted
  5. Replies
    1
    Views
    332

    why am i getting this error

    hi recantly updated studio and installed libgdx which allso updated sdk but now every app i run crashes here is a blank app and the error from call to super


    package com.submin.mast;

    import...
  6. Replies
    2
    Views
    829

    how to get rid of actionbar

    hi im trying to get rid of actionbar in activity but the way i would normally do it is


    //set up notitle
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    //set up full screen
    ...
  7. Replies
    0
    Views
    280

    how to set an id for view from java?

    hi


    View.setId(int);//never works
    View.setId(4);//never works

    im using api 15 so


    View.setId(View.generateViewId());//cant be used
  8. Replies
    0
    Views
    182

    playing ringtone is giving a nullpointer

    hi im trying to play the default ringtone but am getting a nullpointer exception



    mp=MediaPlayer.create(getApplicationContext(), Settings.System.DEFAULT_RINGTONE_URI);//ringtone
    ...
  9. why is this class returning null values on objects

    hi sorry i know im doing something stupid here i have created a class to create and object with 3 attributes and store them in an ArrayList the class is below


    class barlocation{
    ...
  10. Replies
    0
    Views
    269

    finished my android color doodle

    this took 3 days but finally done :)

    https://play.google.com/store/apps/details?id=com.submin.doodle&hl=en
  11. why are my relative.layout parameters not being applied?

    hi im trying to addRule()s to a textview i a relative layout but none of them get applied


    TextView tv=new TextView(this);
    RelativeLayout.LayoutParams lp1 = new...
  12. Replies
    2
    Views
    441

    Re: Using Sensors in Android

    here is a good tut


    http://code.tutsplus.com/tutorials/using-the-accelerometer-on-android--mobile-22125
  13. Replies
    0
    Views
    299

    how to rotate relativelayout

    hi im trying to rotate a wigit in a relative layout layoutparamiters have the method ROTATEY but i cant find the right syntax for it and have been googleing for ages does anyone know what im...
  14. Replies
    0
    Views
    721

    best lib for web scraping?

    hi i normally use selenium for web scraping as it allows interaction woth the web page and pritty much does everything however selenium doeint work well with android so i have been playing around...
  15. Replies
    1
    Views
    440

    android studio doesint see device

    hi i have a samsung s4mini running 4.2.2 my debian buils sees device when i


    $ adb devices -l

    but when i try to run a project in studio it cant see the device?
    obioulsy i heve enabled usb...
  16. Replies
    2
    Views
    825

    Re: error adding selenium to android

    in case it is of use to others for multidex minSdkVersion needs to be 14 or higher now howwever i have a new problem when i run app i get the error


    java.lang.NoClassDefFoundError:...
  17. Replies
    2
    Views
    825

    error adding selenium to android

    hi im trying to add sekenium to my project my gradle


    apply plugin: 'com.android.application'

    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
  18. Replies
    1
    Views
    344

    how to launch this class?

    i have a class that


    public class Slide extends SurfaceView implements Runnable {}

    but when i put the activity into manifest i get error


    .slide has no default constructor
  19. Replies
    1
    Views
    496

    how to get gallery to open my images

    i have a folder created on dcim folder and images stored in it but when i open gallery they dont appear how do i get gallery to see this folder and open the .jpg inside?
  20. Replies
    0
    Views
    363

    oncreatemenuoptions buttons appear twice

    hi i only have to buttons in my oncreatemenuoptions but when the menu is inflated they both apear twice is there a way to prevent this of alter the size of buttons thanks
  21. Replies
    1
    Views
    513

    Re: how to convert canvas to bitmap?

    never did get to the bottom of this but found a work around by just taking a screenshot from class extending activity code below in case its of use to anyone else


    public void takeScreenshot()...
  22. Replies
    1
    Views
    513

    how to convert canvas to bitmap?

    hi how do you convert canvas to bitmap? was trying the code below but it only saves a blank page what am i doing wrong thanks


    public void saveImage(Canvas canvas) {
    try {
    ...
  23. Replies
    0
    Views
    265

    why does invaladate() not work when called

    my app invalidates from 2 place one works fine but the other is called form within onDraw and doesint seem to work


    protected void onDraw(Canvas canvas) {

    //draw color selector
    ...
  24. Replies
    2
    Views
    309

    Re: run code on screen rotate

    this does the trick



    OrientationEventListener myOrientationEventListener = new OrientationEventListener(this, SensorManager.SENSOR_DELAY_FASTEST){

    @Override
    ...
  25. Replies
    2
    Views
    309

    run code on screen rotate

    hi just wondering if there was a way to run code when the screen rotates and if so could someone point me in the right direction
Results 1 to 25 of 160
Page 1 of 7 1 2 3 4