Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Application Requests

Application Requests Request Apps or provide ideas for the devs here.



Reply
 
LinkBack Thread Tools
Old December 11th, 2009, 10:36 AM   #1 (permalink)
Member
 
LincKraker's Avatar
 
Join Date: Nov 2009
Location: wash, dc metro area
Posts: 173
 
Device(s): Samsung Epic 4g, Samsung Intercept
Thanks: 6
Thanked 33 Times in 16 Posts
Send a message via AIM to LincKraker Send a message via Yahoo to LincKraker
Default Auto upload of pictures to ftp

Features
- upload last picture taken with camera to FTP
- take pictures every X secs
- set name of picture on the ftp side with option to replace the current picture or add a number to the file name

I plan on using it to upload the last picture taken with my camera to a blog or website. I had an app on my WM phone before switching.

LincKraker is offline  
Reply With Quote
Sponsors
Old November 8th, 2010, 08:03 AM   #2 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 3
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default

yes please please make this app!

or does anyone know an exitsting app that does this?
Ajes is offline  
Reply With Quote
Old November 13th, 2010, 07:52 PM   #3 (permalink)
Junior Member
 
Join Date: Oct 2010
Posts: 17
 
Device(s):
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Simply, define a location which stored images are to be uploaded.

Have a service running in the background which identifies images not uploaded and upload them.

Here are a couple of links to get you started:

Data Storage | Android Developers
Java FTP Examples Source Code
aguywithathing is offline  
Reply With Quote
The Following User Says Thank You to aguywithathing For This Useful Post:
Ajes (November 17th, 2010)
Old November 14th, 2010, 03:46 PM   #4 (permalink)
New Member
 
Join Date: Nov 2010
Location: Europe
Posts: 9
 
Device(s):
Thanks: 0
Thanked 1 Time in 1 Post
Default

Pls try to search for such application and select program that suits you best.
blandger is offline  
Reply With Quote
The Following User Says Thank You to blandger For This Useful Post:
Ajes (November 17th, 2010)
Old November 17th, 2010, 11:37 AM   #5 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 3
 
Device(s):
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by aguywithathing View Post
Simply, define a location which stored images are to be uploaded.

Have a service running in the background which identifies images not uploaded and upload them.

Here are a couple of links to get you started:

Data Storage | Android Developers
Java FTP Examples Source Code

only need 1 thing more..:

an app that auto take a picture every 30 sec, or similar?
Ajes is offline  
Reply With Quote
Old June 7th, 2011, 10:33 AM   #6 (permalink)
New Member
 
Join Date: Jun 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you find anything? Might have a go and see if I could make such an app
ollyhicks is offline  
Reply With Quote
Old October 3rd, 2011, 04:13 PM   #7 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I am working on that project,
It works ...one shot, then it crash.
I have created 2 activities, I m using alarmManager.setRepeating to repeat the camera thread.
If you have time to help, here is my code:
Manifest with 2 activity
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="exo.com.FtpCam"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".FtpCam"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>:confused::confused:
        <activity android:name=".AndroidCamera" android:label="@string/app_name">
       </activity>
        <service android:name=".MyAlarmService" />
    </application>
    <uses-sdk android:minSdkVersion="4" />
    <uses-permission android:name="android.permission.FTP" />
    <uses-permission android:name="android.permission.WIFI" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permision.WRITE_EXTERNAL_STORAGE" />
</manifest>
The main
Code:
package exo.com.FtpCam;

import java.util.Calendar;

import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class FtpCam extends Activity {

private PendingIntent pendingIntent;

 /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {

     super.onCreate(savedInstanceState);

     Intent myIntent = new Intent(FtpCam.this, AndroidCamera.class);
     :confused::confused:pendingIntent = PendingIntent.getActivity(FtpCam.this, 0, myIntent, 0);

     AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);

     Calendar calendar = Calendar.getInstance();
     calendar.setTimeInMillis(System.currentTimeMillis());
     calendar.add(Calendar.SECOND, 5);
     alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 20*1000, pendingIntent);}}
The camera
Code:
package exo.com.FtpCam;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.OutputStream;

import android.app.Activity;
import android.content.ContentValues;
import android.content.pm.ActivityInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.hardware.Camera.AutoFocusCallback;
import android.hardware.Camera.PictureCallback;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore.Images.Media;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;

public class AndroidCamera extends Activity implements SurfaceHolder.Callback{

Camera camera;
SurfaceView surfaceView;
SurfaceHolder surfaceHolder;
boolean previewing = false;;

  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main); //on utilise le xml main
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
    
      getWindow().setFormat(PixelFormat.UNKNOWN);
      surfaceView = (SurfaceView)findViewById(R.id.camerapreview); //la zone dans le xml 
      surfaceHolder = surfaceView.getHolder();
      surfaceHolder.addCallback(this);
      surfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
  }

// ici les differentes callback :
  
  AutoFocusCallback myAutoFocusCallback = new AutoFocusCallback(){

      @Override
      public void onAutoFocus(boolean arg0, Camera arg1) {
       //take photo larque la photo est OK
       camera.takePicture(null, null, myPictureCallback_JPG);
       //camera.takePicture(null, null, null);
      }};
      
  PictureCallback myPictureCallback_JPG = new PictureCallback(){
  
    public void onPictureTaken(byte[] arg0, Camera arg1) {
      // TODO Auto-generated method stub
      Uri uriTarget = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, new ContentValues());
      OutputStream imageFileOS;
      try {
       imageFileOS = getContentResolver().openOutputStream(uriTarget);
       imageFileOS.write(arg0);
       imageFileOS.flush();
       imageFileOS.close();

       /*Toast.makeText(AndroidCamera.this,
         "Image saved: " + uriTarget.toString(),
         Toast.LENGTH_LONG).show();*/
       
      } catch (FileNotFoundException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
      } catch (IOException e) {
       // TODO Auto-generated catch block
       e.printStackTrace();
      }
      
    }};

@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width,
 int height) {
// TODO Auto-generated method stub
if(previewing){
 camera.stopPreview();
 previewing = false;
}

if (camera != null){
 try {
  camera.setPreviewDisplay(surfaceHolder);
  camera.startPreview();
  previewing = true;

  //Autofocus, la photo est prise dans la callback, qui indique que l image est nette 
  camera.autoFocus(myAutoFocusCallback);


 } catch (IOException e) {
  // TODO Auto-generated catch block
  e.printStackTrace();
 }
}
}

@Override
public void surfaceCreated(SurfaceHolder holder) {
// TODO Auto-generated method stub
camera = Camera.open();
}


// Mise en pause de l'application
@Override
public void onPause() {
    super.onPause();

    if (camera != null) {
        camera.release();
        camera = null;
    }
}

@Override
public void surfaceDestroyed(SurfaceHolder holder) {
// TODO Auto-generated method stub
camera.stopPreview();
camera.release();
camera = null;
previewing = false;
//super.onDestroy();
Toast.makeText(this, "MyAlarmService.onDestroy()", Toast.LENGTH_LONG).show();
}
}
eurobears is offline  
Reply With Quote
Old December 7th, 2011, 08:59 AM   #8 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

here is my first project
the webcam wifi android is working on my sony x10 mini (2.1)

the beta v1 apk is available here !

Solar Android Webcam
eurobears is offline  
Reply With Quote
Old February 24th, 2012, 01:40 PM   #9 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 4
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

eurobears is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Application Requests User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support Can't upload pictures to FB bby31288 LG Ally 7 January 9th, 2011 05:42 PM
Can't upload pictures on 3g keman EVO 4G - Support and Troubleshooting 3 December 26th, 2010 10:07 AM
Auto upload to picasa once a day? tha5150 Android Applications 3 December 11th, 2010 10:04 AM
auto-upload to picasa oliverm Android Applications 7 November 29th, 2010 10:21 PM
Upload pictures to PC?? JustinK Samsung Vibrant 13 September 10th, 2010 11:55 AM



All times are GMT -5. The time now is 02:59 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo