Friday, November 29, 2013

Phone-to-PC connection app [General]


Phone-to-PC connection app



Hi folks.

Big hands + small phone = need for a GOOD phone-to-PC connection app.

Phone is a Medion E4002 (bought from Aldi) running Android 4.1.1. Does everything I want and great value for money.

I've tried a few apps but so far not found anything that easily allows me to do all my phone editing on the PC screen – mainly extensive contacts editing, but also file transfer etc. Texting is a big one too, as I need to frequently send text messages to groups.

I want an app that loads when I want to use it, not when it thinks it's needed – some are really annoying in this respect.

I sit at my desk all day with phone beside me so connection will always be via USB cable. Don't care about other connection types (Bluetooth, etc).

Any suggestions?



Read more

forum.xda-developers.com



Get the length of video recorded so far (or get accurate start time) [android help]


Get the length of video recorded so far (or get accurate start time)


java - Get the length of video recorded so far (or get accurate start time) - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
















I want to synchronize other sensor data with the video I'm recording, and so I'd like to record "how far am I into the video" when the sensor is triggered. Is there any way to do this? I couldn't find an appropriate method on the MediaRecorder class.


Another solution would be to just get the precise start time of the video recording, but my tests show that the video starts ~1sec after calling mediarecorder.start, but it's not consistent.


























You have raised an interesting topic.
If you refer to the documentation in the developer page, the following diagram states the recording is supposed to start when the start() method is called.


enter image description here
Your solution is supposed to be correct albeit there is a lag up to 1 sec. I would do it the same way
I went through the MediaRecorder class methods, the only method that seems to be useful is the callback setOnInfoListener().
Set it and see if you will get some kind of information when the recording starts! I haven't tried it yet though.




















lang-java






Read more

stackoverflow.comm



Gesture OnFling not called in ListView [android help]


Gesture OnFling not called in ListView



I need some help with handling the gestures on a listview. I have an videoview that I want to be able to detect left and right swipes on the layout below:


Link to a drawing of the current gesture and what is expected


The onFling method that i used to capture the event is not called



public class OnSwipeTouchListener implements OnTouchListener {

private final GestureDetector gestureDetector;
private FeedAdapter callback;

public OnSwipeTouchListener(Context context, FeedAdapter callback) {
gestureDetector = new GestureDetector(context, new GestureListener());
this.callback = callback;
}
@Override
public boolean onTouch(final View view, final MotionEvent motionEvent) {
return gestureDetector.onTouchEvent(motionEvent);
}

private final class GestureListener extends SimpleOnGestureListener {

private static final int SWIPE_THRESHOLD = 30;

@Override
public boolean onDown(MotionEvent e) {
return true;
}


public boolean onSingleTapUp(MotionEvent e) {
Log.v("Tom", "tap");
triggerTouch();
return true;
}
@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
boolean result = false;
Log.v("Swipe","is called"); // this is not called when swipe is not perfectly straight
try {
float diffX = e2.getX() - e1.getX();
if (Math.abs(diffX) > SWIPE_THRESHOLD) {
if (diffX > 0) {
onSwipeRight();
} else {
onSwipeLeft();
}
}
} catch (Exception exception) {
exception.printStackTrace();
}
return result;
}
}

public void onSwipeRight() {
}

public void onSwipeLeft() {
}

public void triggerTouch() {
}

public void onSwipeBottom() {
}
}


So how to make the onFling be called when user swipes slightly off horizontal?


Thank you for your help!


Tommy



Read more

stackoverflow.comm



Push notification to send from admin app to user app in android [android help]


Push notification to send from admin app to user app in android



I am working on android applications. I have two apps, user app and admin app. My requirement is the user sends request to admin app, and when the admin finds if the request is useful then it will accept the request and will send a notification to the user.


Due to some problems I cant use either php or .net webservice to send the push notification to user app. So I used third party library to send the notification. I followed the tutorial of parse push notification from https://parse.com/tutorials/android-push-notifications and worked on that example. I am able to send the notification to my application.


But here according to my requirement, when the admin app sends a request to user app, how will it uniquely identifies the user. There will be so many users who use my app. Once the admin accepts the request of a particular user it will send a notificatin to only that particular user. How can I achieve this task using parse push notification.


I am storing the user details and admin details in server database.


Will be really thankful for any suggestions.



Read more

stackoverflow.comm



Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...