• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Search results

  1. S

    Apps Hooking into the native camera

    I need to take pictures with my application, but the only thing I am finding are examples of how to create a camera activity. Is there a way I can call up the phones native camera instead and get the byte[] data back instead of creating a camera activity myself? I am asking because I would...
  2. S

    Apps Passing data to an activity

    I have seen the idea of passing data to an activity by using putExtra() in the intent. How would I pass an instance of the class, or a component in the class to a new Activity? For instance, I want to call a camera activity from my activity(call it activityA) and after the callback(), I want to...
  3. S

    Apps Camera Preview

    I have a camera activity in my app. Once I get the byte array back from onPicturetaken, I convert the byte array to a bitmap using bitmap factory. How do I take that bitmap and pass it to a previewer so the user can see the picture they took.
  4. S

    Apps NullPointer

    I am trying to start an activity from within my listener. Once the listener is triggered, I keep getting a nullPointer on startActivity(i). The Activity exists for sure, any ideas? My println statements give me exactly what I expect, but for some reason this blows up on startActivity(i)...
  5. S

    Apps Table Layout Listener

    I have a Table Layout, that I am dynamically adding rows to. In my code, I created an array of TableRows that is of size = to the number of rows in my Cursor (database results). So as I walk through the cursor while loop, I create a new Table Row, whose index is my position in the cursor...
  6. S

    Apps Android Virtual Device in Eclipse

    How do you setup the dimensions of the actual Android Virtual Device in Eclipse? For some reason my AVD takes up half of the screen and I cant get to the top of it to minimize it/change dimensions.
  7. S

    Apps TableLayout

    I would like to create something like a JTable in Swing, in Android. I want to pull 2 fields from a database table and have them viewable in a 2x2 table.
  8. S

    Apps Package Imports

    I am running an example program that needs to import: com.example.android.apis.R Where can I get this? I can't find it in any of the sample folders in my sdk
  9. S

    Apps Trouble with camera application

    I am running this example program Using Camera API - Marakana It is only a CameraDemo Activity and a Preview class, it runs fine to strart, but when I move around to take the picture, the app freezes and says Force close. Any idea what may be wrong?
  10. S

    Apps Camera API

    I have a button in my application that I want to use to activate the camera and take a picture. I have a Listener on the button but i'm not sure how to access the camera. I basically want to take the picture, and then return to the activity
  11. S

    Apps Images in Android

    I am trying to create a simple app just to practice development. In my main.xml layout I have: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent"...