[android-developers] Re: Android adb permision error

2012-03-22 Thread Hera
Thank you so much introducing yours works!! This is, including OWNER
and GROUP values



On 21 mar, 15:27, Kostya Vasilyev kmans...@gmail.com wrote:
 FWIW, I remember seeing this with some (not all) of mydevices, even
 when my UPnP ids were correct.

 To fix, I specified my actual user and group to the udev file, like this:

 SUBSYSTEM==usb, ATTR{idVendor}==0bb4, MODE=0666, OWNER=kman,
 GROUP=kman

 ... changing from the usual GROUP=plugdev (IIRC) in the documentation.

 -- K

 21 ÍÁÒÔÁ 2012 Ç. 18:14 ÐÏÌØÚÏ×ÁÔÅÌØ Chris Stratton cs07...@gmail.com 
 ÎÁÐÉÓÁÌ:







  Is the content of your udev rules file correct, and will it match the device
  you are connecting?  Ie, post the content of your rules file.

  On Tuesday, March 20, 2012 7:59:49 AM UTC-4, Hera wrote:

  Hello,

  I have installed the android SDK but I'm getting an error when using a
  hardware device, executing ./adbdevice$ I get this error:

  List ofdevicesattached
      no permissions

  While if I execute sudo ./adbdevice there is no error:

  List ofdevicesattached
  HT019P80XXX device

 Adbmust work for all users (also when eclipse starts it) but It only
  works as root. The permissions of the related files are:

  -rwxr-xr-x 1 root root 72 2012-03-20 09:53 /etc/udev/rules.d/51-
  android.rules
  -rwxr-xr-x 1 ariadna ariadna 159620 2012-03-19 13:45adb

  I have googled and tried different solutions but none off then works
  on my Ubuntu, any idea?

  Thank you

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Setting a daily Alarm via a BootReceiver

2012-03-22 Thread asheesh arya
possibly u r ryt probably not!!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Can't get SdkControllerSensorActivity to compile

2012-03-22 Thread kingtut
I am trying to get the SdkControllerSensorActivity to compile to run on my 
device, I keep getting the following error:

*The container 'Android Dependencies' references non existing library 
'[SDK_PATH]/tools/apps/SdkController/SdkControllerLib/bin/com_android_tools_sdkcontroller_lib.jar'
 
SdkControllerSensorActivity Build Path Problem

*
even though I included the SDKControllerLib as a library project.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Emulator errors in SDKControllerLib

2012-03-22 Thread kingtut
I am trying to get the hardware 
emulationhttp://tools.android.com/tips/hardware-emulationworking with the new 
SDK, but when I add the SDKControllerLib and the 
SDKControllerSensorActivity projects I keep getting the following error:

*The method run() of type new Runnable(){} must override a superclass 
method*

With every run() method in all runnables.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

RE: [android-developers] one time Registration after installation of an application??

2012-03-22 Thread Muhammad UMER

Hi TreKing,

 Thanks for your help, I have searched about SharedPreferences 
and it's gud thing, but it is used as session. This will not remove data even 
app kill. I want ask,

   1) Can it remove data when the cell is close mean shut down? in my 
case i don't want to remove my data even the cell is shut down.

   2) I want to store the  User name and phone no only one time, after 
that the application will not ask again to enter these requirements. 
   Mean the  Registration activity will not visible again and again 
when the app start.


Thanks and Regards,

umer  

From: treking...@gmail.com
Date: Wed, 21 Mar 2012 12:37:23 -0500
Subject: Re: [android-developers] one time Registration after installation of 
an application??
To: android-developers@googlegroups.com

On Wed, Mar 21, 2012 at 12:34 PM, muhammad.ume...@hotmail.com 
muhammad.ume...@hotmail.com wrote:


I want to register the user only one time when he use after

installation and save it's name locally on mobile. how can i do this?
Check SharedPreferences.

-


TreKing - Chicago transit tracking app for Android-powered devices





-- 

You received this message because you are subscribed to the Google

Groups Android Developers group.

To post to this group, send email to android-developers@googlegroups.com

To unsubscribe from this group, send email to

android-developers+unsubscr...@googlegroups.com

For more options, visit this group at

http://groups.google.com/group/android-developers?hl=en 
  

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to place controls properly inside of a custom list view.

2012-03-22 Thread Put_tiMe
I have a custom list view.
 
Each row needs to have a text on the left, and then an image on the extreme 
right hand side.
 
My problem is that I'm not able to place the image on the extreme RHS.
 
 
My XML file for the row looks like this:
 
LinearLayout
android:layout_width=fill_parent
android:layout_height=wrap_content
android:orientation=horizontal 

TextView
android:id=@+id/aaa
android:layout_width=wrap_content
android:layout_height=wrap_content
android:gravity=center_vertical|fill_horizontal
android:padding=6dip
android:textSize=15dip
android:textStyle=bold
android:textAppearance=?android:attr/small
android:textColor=#FAFAFA /

ImageView
   android:id=@+id/bbb
android:layout_width=40dip
android:layout_height=40dip
android:scaleType=fitCenter
 android:paddingRight=15dip
android:layout_gravity=right
android:src=@drawable/off
   /
 
/LinearLayout
 
how can I fix this issue? How can I place the image to the extreme RHS of 
the list view row.
 
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Does ICS have a different XML layout for custom contact sync adapters?

2012-03-22 Thread borisb13
  
  
I have a custom sync adapter that uses a custom layout in 
/res/xml/contacts.xml to display some of the contact fields in the stock 
contacts app. Here is a generic version of the XML:

ContactsSource xmlns:android=http://schemas.android.com/apk/res/android;
ContactsDataKind
android:icon=@drawable/icon
android:mimeType=vnd.android.cursor.item/com.test.myapp.TestField1
android:summaryColumn=data2
android:detailColumn=data3
android:detailSocialSummary=false /
ContactsDataKind
android:icon=@drawable/edit

android:mimeType=vnd.android.cursor.item/com.test.myapp.editContact
android:summaryColumn=data2
android:detailColumn=data3
android:detailSocialSummary=false /
/ContactsSource

And on system running Gingerbread, it works perfectly -- both the summary, 
data, and icon are displayed in the stock contacts app. But in ICS, they 
are all lumped in together unde the Connections heading. Every custom 
field is shown, but only it's data, not the summary or the icon. Is there a 
different layout that I need to use for ICS, or is there anything else I'm 
missing?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How to screen capture through fb0?

2012-03-22 Thread bafett
the reason is that:the frame buffer supports page-flip(double
framebuffer).so you can't get the right address.

On 2月14日, 下午5时40分, bluestar bluestar8...@gmail.com wrote:
 Dear Sir:

  I use the source code from frameworks\base\cmds\screencap
  to do screen capture

  If using ScreenshotClient method, it is ok to get correct result
  If using to open fb0, some phones will fail to get

  Nexus S with Android 4.0.3 is OK
  Samsung Galaxy S2 with Android 2.3.5 is OK
  Galaxy Nexus S with Android 4.0.2 is failure

  Do you give me some suggestion or hint for how to get right
 result
  by using to open fb0 for all phones?

  Thank you!

 BR,
 Alan

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Application to allow selected application to connect to the internet via 3G

2012-03-22 Thread Hamza
I am trying to develop a similar application and am having trouble
progammatically disabling 3G on a device.  It would be great if you
can share how you managed to do that?

On Feb 8, 9:58 am, Anil Jagtap anil.so...@gmail.com wrote:
 You cannot do that

 On Feb 7, 10:31 am, Nwanna Anthony anthonio2uni...@gmail.com wrote:







  I have successfully written the android code that will totallydisable3G
  on a device. What I want to do next is to edit the code so that only
  selected application can access the internet via3Gwhile others cannot.
  My application is just like the Droid wall but with some difference. I have
  been working on this application for quite sometime because I just started
  learning android some months back.
  Please I need help with a line code or references to a web link that I can
  get an Idea.
  Am using this as my final year project and the last part of the code
  modification has been holding me back.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Sync Android app with Outlook

2012-03-22 Thread ashok kumar
Right now I am having an Android application which was developed by
me. Now I need to sync some of the app details with the Outlook. For
example a part of my application is a To Do list. I want to sync this
list with Outlook Calender. How can I do this? Any available snippets
are there?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android adb permision error

2012-03-22 Thread liuyix
Have the same problem on one of my android phones.But the other android 
phone I got doesn't have this problelm.

在 2012年3月20日星期二UTC+8下午7时59分49秒,Hera写道:

 Hello, 

 I have installed the android SDK but I’m getting an error when using a 
 hardware device, executing “./adb device$ I get this error: 

 List of devices attached 
 no permissions 

 While if I execute “sudo ./adb device” there is no error: 

 List of devices attached 
 HT019P80XXX device 

 Adb must work for all users (also when eclipse starts it) but It only 
 works as root. The permissions of the related files are: 

 -rwxr-xr-x 1 root root 72 2012-03-20 09:53 /etc/udev/rules.d/51- 
 android.rules 
 -rwxr-xr-x 1 ariadna ariadna 159620 2012-03-19 13:45 adb 

 I have googled and tried different solutions but none off then works 
 on my Ubuntu, any idea? 

 Thank you 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Sending GPS coordinates to a server

2012-03-22 Thread bhuvan
Hi Iam doing a project on vehicle tracking , For which i have chosen
the cheapest method of tracking, that is by using an android mobile
with an application which could send the coordinates of the locations
to a server, from there i could access the coordinates and overlay
them on a map . So what i need is how to build an application which
could use the gps receiver in the mobile for the coordinates and send
it directly through GPRS to a server which can be accessed from
anywhere through internet. Iam very much new to android developing, so
i was hoping whether anyone could help me in this regard

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] how to make a button stay in state_pressed style

2012-03-22 Thread Alisson Wilker
Hello, everyone. I'd like to get a button to behave as a tab, in which, as 
it is pressed, it changes the content of the view and stays highlighted, 
indicating that the content is related to that button.

The problem is: how can I get the button to stay in state_pressed, getting 
the style from the current theme?

Hope you can help me with this. Thanks in advance!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] SAXParserFactory.newInstance() Problem

2012-03-22 Thread Alexey Sinyutin
Good time.
I have problem with SAXParserFactory.newInstance();.
I have error look like : SAXParserFactory.newInstance cannot be resolved 
to a type
Ccode:

 try{

 URL website=new URL (fullUrl);

 SAXParserFactory spf=new SAXParserFactory.newInstance();   -only  in 
 this line i have error

 SAXParser sp=spf.newSAXParser();

 XMLReader xr=sp.getXMLReader();

 } 

Part of Import code:

 import javax.xml.parsers.SAXParser;

 import javax.xml.parsers.SAXParserFactory;

  How i can resolve this problem?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: RuntimeException thrown from Camera.autoFocus()

2012-03-22 Thread Linda Zhang
Was a solution to this problem ever found? I am running into the same
issue, but only on 4.0 devices. On pre-ICS devices my code runs fine.

On Jan 30, 1:21 am, Marcin Mikosik marcin.miko...@gmail.com wrote:
 Hi,

 I received a few crash reports through developer console that shows
 RuntimeException thrown from Camera.autoFocus() method.
 As javadocs does not mention that any exception can be thrown from this
 code I wonder what this exception mean and how one can workaround it.
 Can anyone help on that?
 thanks

 stack trace below

 java.lang.RuntimeException: autoFocus failed
 at android.hardware.Camera.native_autoFocus(Native Method)
 at android.hardware.Camera.autoFocus(Camera.java:832)
 at aY.g(Unknown Source)
 at bm.surfaceChanged(Unknown Source)
 at android.view.SurfaceView.updateWindow(SurfaceView.java:568)
 at android.view.SurfaceView.setFrame(SurfaceView.java:320)
 at android.view.View.layout(View.java:11174)
 at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
 at android.view.View.layout(View.java:11180)
 at android.view.ViewGroup.layout(ViewGroup.java:4203)
 at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
 at android.view.View.layout(View.java:11180)
 at android.view.ViewGroup.layout(ViewGroup.java:4203)
 at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628)
 at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486)
 at android.widget.LinearLayout.onLayout(LinearLayout.java:1399)
 at android.view.View.layout(View.java:11180)
 at android.view.ViewGroup.layout(ViewGroup.java:4203)
 at android.widget.FrameLayout.onLayout(FrameLayout.java:431)
 at android.view.View.layout(View.java:11180)
 at android.view.ViewGroup.layout(ViewGroup.java:4203)
 at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1468)
 at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:137)
 at android.app.ActivityThread.main(ActivityThread.java:4340)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:511)
 at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java: 
 784)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 at dalvik.system.NativeStart.main(Native Method)

 --http://developing-android-games.perunlabs.com/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Programmatically disable 3G/Mobile Data

2012-03-22 Thread Hamza
Hi!

I am trying to develop an application that smartly manages wifi vs 3g for a 
user. I am looking for a way to totally disable 3G on a device (similar to 
how a user can do it in the settings, but programmatically instead). 
Specifically, I need a way to do this on Android 4.0. How can an app 
disable mobile data on a device??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Valid google account OAuth 2 token in Android

2012-03-22 Thread Oleksandr Andriichenko
I have a problem with google account OAuth 2 tokens.
We need token for access account information (numeric id, email, user
name)
After request getAuthToken(account, SCOPE, options, mContext,
getAuthTokenCallback, null) in AccountManager, token is not available
for access to account information.
Response of HTTP request https://www.googleapis.com/plus/v1/people/me
(header Authorization: OAuth
ya29.AHES6ZSuMvL3FoxqXfevYevWyEmTPOE1HXW7_Tj6l3UAN-2J7kTs0-I)
{
 error: {
  errors: [
   {
domain: usageLimits,
reason: dailyLimitExceededUnreg,
message: Daily Limit Exceeded. Please sign up,
extendedHelp: https://code.google.com/apis/console;
   }
  ],
  code: 403,
  message: Daily Limit Exceeded. Please sign up
 }
}

Why this error hapens?
Previously works with two types AuthSub tokens separated by spaces.
(SCOPE_OLD_PERMITIONS)
Now it not works  causes java.io.IOException

How can I get valid token?

This is request for get token:
TCGoogleAccountsManager mng = new TCGoogleAccountsManager(this);
mng.requestAccountOAuthToken(this, acc);

сlass that helps get token:
public class TCGoogleAccountsManager {
private static final String CLIENT_SECRET = ...;
private static final String CLIENT_ID = ...;
private static final String SCOPE_CONTACTS_API = cp;
private static final String SCOPE_ANDROID_API = android;
private static final String SCOPE_GOOGPE_PLUS = oauth2:https://
www.googleapis.com/auth/plus.me;
private static final String SCOPE_MY_INFO = oauth2:https://
www.googleapis.com/auth/userinfo.email;
private static final String SCOPE_OLD_PERMITIONS = oauth2:https://
www-opensocial.googleusercontent.com/api/people/ oauth2:https://
www.googleapis.com/auth/userinfo#email;
private static final String SCOPE = SCOPE_GOOGPE_PLUS;
private static final String COM_GOOGLE = com.google;

private AccountManager mManager;
private OnGetOAuthTokenRequestCompletedListener
mTokenRequestListener;

public TCGoogleAccountsManager(Context ctx) {
mManager = AccountManager.get(ctx.getApplicationContext());
mTokenRequestListener = new GoogleTokenListener(
ctx.getApplicationContext());
}

public int getAccountsNumber() {
return mManager.getAccountsByType(COM_GOOGLE).length;
}

public Account[] getGoogleAccounts() {
return mManager.getAccountsByType(COM_GOOGLE);
}


public Account getGoogleAccountByName(String name) {
Account foundAcc = null;
if (name != null  !name.equals()) {
Account[] googleAccounts = 
mManager.getAccountsByType(COM_GOOGLE);
for (int i = 0; i  googleAccounts.length; i++) {
if (name.equals(googleAccounts[i].name)) {
foundAcc = googleAccounts[i];
break;
}
}
}
return foundAcc;
}


public Account getGoogleAccount(int index) {
return getGoogleAccounts()[index];
}

public void requestAccountOAuthToken(Activity mContext, Account
account) {
try {
final Bundle options = new Bundle();
options.putString(client_id, CLIENT_ID);
options.putString(client_secret, CLIENT_SECRET);
mManager.getAuthToken(account, SCOPE, options, mContext,
getAuthTokenCallback, null);
} catch (Exception e) {
e.printStackTrace();
}
}


private AccountManagerCallbackBundle getAuthTokenCallback = new
AccountManagerCallbackBundle() {
public void run(AccountManagerFutureBundle future) {
try {
final Bundle result = future.getResult();
final String accountName = result

.getString(AccountManager.KEY_ACCOUNT_NAME);
final String authToken = result

.getString(AccountManager.KEY_AUTHTOKEN);
boolean success = (accountName != null  
authToken != null);
if (!success) {
if (mTokenRequestListener != null) {

mTokenRequestListener.onRequestCompleted(false,
accountName, 
authToken);
}
} else {
// refresh token. We need fresh token.
 

[android-developers] steps for compile and build FFMPEG lib for android and access FFMPEG lib in android using JNI

2012-03-22 Thread hiren
Hello All,

1) I am planning to build FFMPEG lib for Android.
Can anyone tell me steps how to build FFMPEG lib for android and make
sample application.

2) I have 3 .cpp and 3.h file which use FFMPEG lib.
and finally i have to call methods of those three files from
another .cpp file  to make my application,..!!
Can anybody tell me the stepls,I am new to Android,

Thanks in advance,
HIREN MOrzariya.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Automatic error report feature in android not working?

2012-03-22 Thread Fabian
Hey guys,

in android 2.2 google introduced the error report feature to android (
http://android-developers.blogspot.de/2010/05/google-feedback-for-android.html).
 
I´ve developed an app, and it crashes on one phone without giving the 
opportunity to send the error report. It just shows a dialog: Unfortunally 
has stopped - and only the ok button. Why is the feature not working on 
this error?

Thank you!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Compile an Android application which is integrated in the Android firmware with root privileges

2012-03-22 Thread laurent delosieres
Dear Everybody,

I am sure that there is an easy way to solve this problem but I am
running out of ideas. I have an application that is integrated in the
Android firmware (android_src/packages/apps/MyApp). This application
is compiled by using the command mmm packages/apps/MyApp. However I
would like to set the uid of this application MyApp to 0 since I
need to call commands such as strace and kill from this
application. Since it is supposed to monitor other Android
applications, I do not want to use the application Superuser.apk
which provides you root access.

Thank you in advance.

/Laurent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] regarding the url format to access the database

2012-03-22 Thread chaitanya lakshmi k.b
can we use the specified url http://localhost/blood_donation/
Reg.php  for accesing database from the local server i

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Custom Menu Layout

2012-03-22 Thread Francisco
Thanks for sharing.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to set state_selected for initially selected item in gallery

2012-03-22 Thread Joachim
I have a gallery with textviews. The initially selected item doesn't
have state_selected. Even textview.setSelection(n) doesn't help. Is
there a work around?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Media store

2012-03-22 Thread aman...@gmail.com
I'd like to add image format capability to Android.  I'm aware of how
to set an intent filter, but I'd like to have the capability to load
all available files on storage, much like the Gallery app does.  I
don't want it to be on a file-by-file intent basis.

Is there a way to get access to a new format like images/jpeg, but a
custom images/format?

Assuming I can insert this format is there any way to piggy-back on
the MediaStore capability to auto-load the new file format much like
the Gallery app does?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Statistics of Google Play

2012-03-22 Thread eTeacher Marketing
Hi,
Recently, I've uploaded 2 apps to google play.

I wish to follow the download rate and to see performance reports.

I use www.appfigures.com for my iPhone apps stats.

Can anyone recommend me a good way to measure the activity in Google
Play?


Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Looking for information on the Fragment dump() method (FragmentManager too)

2012-03-22 Thread Daniel Robertson
I made a blog post with a basic example of how to use this relatively 
unknown function. Hope it helps!

http://daniel-robertson.tumblr.com/post/19639827728/how-to-debug-your-fragments-using

On Sunday, February 27, 2011 5:17:29 PM UTC-5, davemac wrote:

 Both of these classes have a dump() method which looks useful for 
 debugging. I tried to use them in a sample application, but I'm not 
 getting any output at all. My code looks like this from within my 
 activity: 

 public void dumpFragmentMgr() { 
 FragmentManager fm = getFragmentManager(); 
 File dumpFile = new 
 File(Environment.getExternalStorageDirectory() + 
 /fmdump.txt); 
 if(dumpFile.exists()) { 
 dumpFile.delete(); 
 } 
 try { 
 FileOutputStream fos = new FileOutputStream(dumpFile, 
 true); 
 fm.dump(DIALOG, fos.getFD(), new PrintWriter(fos), 
 null); 
 fos.flush(); 
 fos.close(); 
 } catch (FileNotFoundException e) { 
 // TODO Auto-generated catch block 
 e.printStackTrace(); 
 } catch (IOException e) { 
 // TODO Auto-generated catch block 
 e.printStackTrace(); 
 } 
 } 

 I'm positive that I have fragments in my fragment manager. My output 
 file is always empty, although I can see the datetimestamp getting 
 updated. I'm always passing null for the 4th argument to dump() since 
 I have no idea what else to put there. I have enableDebugLogging set 
 to true. Any help please? 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] qr code application

2012-03-22 Thread Anton
Hello guys,

I am doing a dissertation with regards to a mobile payment system
using qr code. For this system I obviously need a QR code reader. Do
you guys know of an API which enables you to read and decode this QR
code? Or maybe a simple application which I can modify to my needs?

I have found ZXing but I cannot get the hang of it since I am new to
android, this is my very first app.

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Instalation of FDTI Driver in Android

2012-03-22 Thread JB
I'm working with FTDI driver FT232R to comunicate with my pc, but now
I want to comunicate with my android tablet (sony table S). I already
red the technical note (TN_134 FTDI Android D2XX Driver) and I already
did all step less change de ueventd.rc file in the line dev/bus/usb/*
0660 root usb because I don't know how to do that.

I know that we need root acess to change this file, but I can't change
it.

Someone have any idea?

Thanks,

JB

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: loading PNG data to WebView

2012-03-22 Thread Karthika Mylsamy

have u used webview.loadData() from a Bitmap instance and displayed the 
bitmap image in webview?


On Wednesday, September 23, 2009 10:23:03 AM UTC+5:30, rukiman wrote:

 I have an instance of Bitmap that I want to load into the WebView. How 
 can I do this? I do not want to call webview.loadUrl() as the image is 
 already loaded from the file into memory . I am trying to optimize my 
 code. 

 I can see webview.loadData() however, seems like I have to encode 
 Bitmap into UTF-8?? I have two questions: 

 1) How can I use webview.loadData() from a Bitmap instance? 

 2) Is there a way I can tell WebView to load the instance of Bitmap 
 without having to encode the bitmap at all? For optimization purposes? 

 Thanks for your help. 



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Webview masking onclick events

2012-03-22 Thread riv

I have a simple page [www/index.html]:

body
div data-role=page id=page1
div data-role=content
a id=btnSave data-role=button data-
transition=fade data-theme=b href=#
Button
/a
/div
/div
script
//App custom javascript
 $(#btnSave).click(function() {
console.log(called);
alert(btnSave is clicked);

 });
/script
/body

This works fine as:

public class MyActivity extends DroidGap {

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl(file:///android_asset/www/index.html);

but if I use Webview to render this page, onclick event never getting
called..

mWebView = (WebView) findViewById(R.id.webview);
mWebView.setWebViewClient(new MyWebViewClient());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setDomStorageEnabled(true);
mWebView.getSettings().setAllowFileAccess(true);
mWebView.getSettings().setBuiltInZoomControls(false);
mWebView.loadUrl(file:///android_asset/www/index.html);

Is this a known issue ?

Thanks in advance,
riv

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Redirect my app to network setting if the device is not connected to any Network??

2012-03-22 Thread muhammad.ume...@hotmail.com
Hi,
   Please help me, my application is network base. So if my
app not found any network connection it will go to network settings.
how?

Thanks and Regards,

umer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] android UI : How to make 3 tap bars ?

2012-03-22 Thread Mohammed Elsabry


i would like to know the perfect way to make a 3 tap bars like the image in 
the following linkhttp://www.freeimagehosting.net/b3wva

when you press on any item of the top bar it changes the items in the third 
bar

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ANDROID APP FOR YOUTUBE

2012-03-22 Thread BADDY247
Hi,

I am an aspiring android developer. I would like to know information
regarding making the 'youtube' app for andorid.
Any material or help regarding this would be really great.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ListView header/footer problem

2012-03-22 Thread Jason Tian
I've had a similar problem. And here is my solution:

Put the header/footer in another wrapper layout (e.g. a FrameLayout maybe), 
and set this wrapper to be the header/footer.

Hope it works.

在 2012年3月19日星期一UTC+8下午2时56分31秒,gropapa写道:

 hello guys,
 I have an expandableListView in wich i add a LinearLayout View as header 
 and another one for the footer.
 After i affect the Adapter, i want to be able to show/hide those views.
 The problem is that if i write
 myView.setVisibility(View.GONE)
 it acts exactly the same as INVISIBLE.
 Since it is not possible to removeHeader and add it back... really don't 
 see how i can fix, if you have any idea


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] SDK related

2012-03-22 Thread Sunil.K
Hi,
I am trying to download android sdk for my windows xp. Facing few
problems which I am struck from past few months
I have installed Eclipse, installer_r16-windows.exe (android sdk
installer). when I click on SDK Manager.exe, it tries to download
sdk for me but throws following error :

Fetching http://dl-ssl.google.com/android/repository/addons_list-1.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/addons_list-1.xml,
reason: Connection reset
Fetched Add-ons List successfully
Fetching URL: http://dl-ssl.google.com/android/repository/repository-5.xml
Failed to fetch URL 
http://dl-ssl.google.com/android/repository/repository-5.xml,
reason: Connection reset
Done loading packages.


Enabled Force https:/..to http://;
still facing the same errors
Someone please push me to get rid of these errors so that I can start
with my first android application.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] free publisher account

2012-03-22 Thread Srihari Yamanoor
Yes, I believe the main thrust behind the $25 is to keep spammers and
others at bay at least a bit..

Srihari

On Wed, Mar 21, 2012 at 11:18 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Be grateful that it is a one-time low fee... Apple charges a yearly fee
 that is much more than that and Amazon is going to start charging $99 every
 year beginning next year...
 On Mar 21, 2012 9:25 AM, TreKing treking...@gmail.com wrote:

 2012/3/21 νιяιη¢нソ joinvir...@gmail.com

 Is it mandatory for a developer to buy an android publisher account with
 an amount of $25.


 Yes. You're not buying an account, you're paying a fee, presumably to
 curtail spammers and non-serious developers.

 cant he publish his applications without paying this amount ,like for
 free apps ...


 No.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Home: http://www.yamanoor.com/

Photography: http://www.yamanoor.net/

Laughs: http://ysrihari.blogspot.com/

Medical Devices: http://chaaraka.blogspot.com/

Earth: http://itshothere.org/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-22 Thread vamsi Vamsi
Hi Lakshmi, I have tried PhoneGap , and its pretty good
http://phonegap.com/


On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.comwrote:


 Check previous mails. Already lots of discussion happened on this topic .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti 
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

 Thanks in advance.

 lakshmi

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know when
 your company stops loving you.--  Voice Of Love*

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] video not playing in mdpi devices..

2012-03-22 Thread vamsi Vamsi
Hi Vani.
the problem might be due to resolution of the video.
you might want to re-size the resolution of your video and try .


On Wed, Mar 21, 2012 at 9:25 PM, vani reddy vani.reddy.bl...@gmail.comwrote:


 HI friends,

 I have a video in mp4 format its playing in hdpi devices but not in mdpi
 devices?
 How to resolve this

 --
 Regards,
 Vani Reddy

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Eclipse IDE

2012-03-22 Thread Subramanya S
I want to download Eclipse IDE for Java Developers for Mac OS X 10.6.8 Snow 
Leopard.  I want know which Eclipse Indigo i want to download is it Mac OS 
X 32 Bit or Mac OS X 64 Bit for Mac OS X 10.6.8  i am using MacBook My 
Processor is 64-bit, Intel Core 2 Duo.  But I don't know weather it is 
32-bit or 64-bit Mac OS X 10.6.8 Snow Leopard.  Please can you help with 
this enquiry

Thanks  Regards 
Subramanya...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] free publisher account

2012-03-22 Thread vamsi Vamsi
to add to TreKing's reply, if you are from India, you cannot release paid
apps in the market on your own, even after paying the fees.



On Wed, Mar 21, 2012 at 8:53 PM, TreKing treking...@gmail.com wrote:

 2012/3/21 νιяιη¢нソ joinvir...@gmail.com

 Is it mandatory for a developer to buy an android publisher account with
 an amount of $25.


 Yes. You're not buying an account, you're paying a fee, presumably to
 curtail spammers and non-serious developers.


 cant he publish his applications without paying this amount ,like for free
 apps ...


 No.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Automation of android application with apk using Robotium

2012-03-22 Thread Praful Purohit
Hi All
I have tried demo application its working fine.
But now i am trying to test a different apk without source code. I am
facing issues in launching that apk from Test project from using
eclipse (ADT)  after installation of that apk in device/Emulator.
And also facing issues in finding which activity to apply on
Application in that Test Project Class.
Can any one help with that???

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Android 3.0 DownloadManager

2012-03-22 Thread Rambalac
Yep, the same problem

четверг, 21 апреля 2011 г. 19:24:10 UTC+9 пользователь King Sun написал:

 when i use DownloadManager in android 3.0 sdk,

 for example :
 DownloadManager.Request re = new DownloadManager.Request(url);

 re.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
 (DownloadManager) getSystemService(Context.DOWNLOAD_SERVICE).enqueue(re);

 it throw a exception 
 in 
 re.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
  
 line
 it is the exception message in the picture, anyone has the same problem?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: BufferedInputStream buffer size

2012-03-22 Thread Harritius
I have same problem. Desktop version of my application works, but not 
android version.
I am reading like this:

while (inBuff.ready())
{  
sLine = inBuff.readLine();
}



On Monday, July 5, 2010 4:31:23 PM UTC+10, burzum_rus wrote:

 Hi all! I use BufferedInputStream in my code: 

 socket = new Socket(ip, Integer.parseInt(port)); 
 socket.setReceiveBufferSize(64000); 
 output = socket.getOutputStream(); 
 input =  new BufferedInputStream(socket.getInputStream(), 64000); 

 I read incoming packets like this: 

 if (input.available() != 0)  { 
 System.out.println(Get Packet:  + 
 input.available() +  bytes); 
 byte[] b = new byte[input.available()]; 
 input.read(b); 
 incParser(b); 
 } 

 I always get 2048 bytes in input(though it comes more) and the data 
 left loses. How can I set buffer size of BufferedInputStream more than 
 2048 bytes? 
 P.S. 
 This code works on Desktop as well, i can receive packets bigger than 
 2048 bytes.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] ImageButton onClick Change Image and Resize

2012-03-22 Thread Pelon Sinpelo
I have an imageButton of size 52x24, this image will be change size
when loading:

ImageButton blueButton = (ImageButton)
findViewById(R.id.button_blue_normal);
LayoutParams lpb = new LayoutParams((int) (52 * 1.25),(int) (24 *
1.25));
lpb.setMargins((int) (15 * 1.25), (int) (75 * 1.25), 0, 0);
blueButton.setLayoutParams(lpb);
blueButton.setOnClickListener( new OnClickListener() {
 @Override
 public void onClick(View v) {
 blueButton.setImageResource(R.drawable.button_blue_pressed);
 }
});
The above code working without problems, in the exact position and
size needed.

The problem is when the image is load after the onClick, the image
button_blue_pressed is displayed in original size 52x24 over the
previous image button_blue_normal that is larger.

how I can do to make the image button_blue_pressed the same size as
the previous button_blue_normal ?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] [CTS-2.3-R12] MediaStress test fail for Vp8R480x360LongPlayerTest

2012-03-22 Thread Pierre
Hello guys,

I run android cts-2.3-R12 test and then got Vp8R480x360LongPlayerTest item 
failed.
The cts command is shown as below:
start --plan CTS -p android.mediastress.cts.Vp8R480x360LongPlayerTest
The test case would play a webm file, but it will crash when playing at any 
time.

Here is the log I got.

01-03 00:38:09.615 I/DEBUG   (  155): Build fingerprint: 
'LePhone/apollohd_w/apollohd_w:2.3.5/GRJ90/1.0.14:user/release-keys'
01-03 00:38:09.615 I/DEBUG   (  155): pid: 157  /system/bin/mediaserver 
 tid: 2375  AudioTrackThrea 
01-03 00:38:09.615 I/DEBUG   (  155): signal 11 (SIGSEGV), code 1 
(SEGV_MAPERR), fault addr 9244a202
01-03 00:38:09.615 I/DEBUG   (  155):  r0 9244a202  r1 002041f0  r2 
a30029d5  r3 001f7100
01-03 00:38:09.715 I/DEBUG   (  155):  #00  pc 00100b72 
 /system/lib/libstagefright.so  \Global\android::BlockIterator::advance
01-03 00:38:09.715 I/DEBUG   (  155):  #01  pc 00100c1c 
 /system/lib/libstagefright.so   \Global\android::MatroskaSource::readBlock

According the log, it looks like there has some problem in Matroska 
extractor.
But, I have no idea to fix it.

Does anybody meet this problem before?  or some idea for this issue?

Thanks
- Pierre

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Links Fail After Zoom

2012-03-22 Thread mduffy215
I have a very simple app that is based on HTML5 web pages.

Whenever I zoom in/out on a page all the navigation links fail to
work; sometimes the entire app locks up.

This is a fatal bug.  We cannot deploy with this behavior.

This is similar to another bug reported in WebView last October:
http://groups.google.com/group/android-developers/browse_thread/thread/106f2de4ac3e0d49/2e2806fe185c6f33?hl=enlnk=gstq=zoom+bug#2e2806fe185c6f33

Any suggestions would be greatly appreciated.

This

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Valid google account OAuth 2 token in Android

2012-03-22 Thread Nikolay Elenkov
On Wed, Mar 21, 2012 at 2:23 AM, Oleksandr Andriichenko
oleksandr.andriiche...@gmail.com wrote:
 I have a problem with google account OAuth 2 tokens.
 We need token for access account information (numeric id, email, user
 name)
 After request getAuthToken(account, SCOPE, options, mContext,
 getAuthTokenCallback, null) in AccountManager, token is not available
 for access to account information.
 Response of HTTP request https://www.googleapis.com/plus/v1/people/me
 (header Authorization: OAuth
 ya29.AHES6ZSuMvL3FoxqXfevYevWyEmTPOE1HXW7_Tj6l3UAN-2J7kTs0-I)
 {
  error: {
  errors: [
   {
    domain: usageLimits,
    reason: dailyLimitExceededUnreg,
    message: Daily Limit Exceeded. Please sign up,
    extendedHelp: https://code.google.com/apis/console;
   }
  ],
  code: 403,
  message: Daily Limit Exceeded. Please sign up
  }
 }

Read the message :) You are hitting some limit,
so you either have to wait a day or signup and pay
for extra access.

This has nothing to do with Android, read the docs, etc.
of the Google APIs you are using and post to relevant
forums.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] what would be the base optimal throttle and seed for an application using monkey test?

2012-03-22 Thread droigons
Dear Experts:

I am running monkey test on my application using following command

adb shell monkey -p com.droigons.mygps --throttle 1000  --monitor-
native-crashes  --kill-process-after-error -s 1000 -v 50 
test.txt

what would be the base optimal throttle and seed for an application?


Thanks you

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Previous MapActivity is not shown/refreshed on clicking back from current MapActivity

2012-03-22 Thread Shajahan
I have 2 MapActivity (let call it M1  M2)
1st one (M1) -- no of geo points with pins and on clicking any of the
pin take you to the other M2 with more details.
Now when click BACK button from M2 to go to previous M1, then the M1
is not shown correctly or not refreshing.
Please help.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to screen capture through fb0?

2012-03-22 Thread Pent
 shot, and as of 3.0 the command for taking a screen shot and internal Java
 implementation use a different mechanism that always qworks.

What is the 'command for taking a screen shot' ?

Thanks,

Pent

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: SMS as techinque for chatting

2012-03-22 Thread Ali Chousein
 I hv created an application that send and receive but couldnt mk these msgs
 as chatting?

What's so difficult about it? You already have all SMS messages you
wish to display on the screen. You need to understand how you should
design your UI. You have to make choices how your UI should look like
and get started with it. I know it's very basic, but you can start
from Hello, Views tutorials maybe? You can find these tutorials
here: http://developer.android.com/resources/tutorials/views/index.html
Certain people in this list can help you only when you have specific
questions about an approach you have chosen.

PS. And please man, don't drop vowels when you write something!

-
Ali Chousein
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://geo-filtered-assistant.blogspot.com
https://marketplace.cisco.com/apphq/products/994

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] qr code application

2012-03-22 Thread ANKUR GOEL
hi
You will find the result for qr code in zxing in capture activity .
Have a look in that particular activity ..

Thanks
Ankur


On Wed, Mar 21, 2012 at 11:11 PM, Anton anton.mical...@gmail.com wrote:

 Hello guys,

 I am doing a dissertation with regards to a mobile payment system
 using qr code. For this system I obviously need a QR code reader. Do
 you guys know of an API which enables you to read and decode this QR
 code? Or maybe a simple application which I can modify to my needs?

 I have found ZXing but I cannot get the hang of it since I am new to
 android, this is my very first app.

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] how to get data from framebuffer

2012-03-22 Thread bafett
I need capture data from framebuffer(/fb0).because my platform support
double buffer framebuffer.how can i get the buffers included by
Framebuffernativewindow

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to store a JPG remote file into the phone internalMemory/sdcard?

2012-03-22 Thread saex
I need to add a new functionality into my app. I must store a lot of JPG 
images from internet into the Phone.

If the phone haves sdcard, the JPG files must be stored on the sdcard. If 
not, they must be stored on the internalMemory, only if the phone haves 
space to do it.

Then, i should do these things:

1. Check if the Phone haves SDCARD. If haves, SDCARD dir is the destiny, if 
not, INTERNAL MEMORY is the destiny.
2. Check if the phone have space to store the photos.
3. If have space, store the photos into a dir called `/Magazine/`

I know how to get a JPG file from internet and how to transform it into 
BITMAP, but it is the only think i know, i dont know how to store it as JPG 
and i dont know the other things.

public static Bitmap getRemoteBitmap(String url) {
Bitmap bm=null;
HttpClient httpclient = new DefaultHttpClient(); 
HttpResponse response; 
try { 
 ((AbstractHttpClient) 
httpclient).getCredentialsProvider().setCredentials(
new org.apache.http.auth.AuthScope(null,-1), 
new 
org.apache.http.auth.UsernamePasswordCredentials(MagazineStatus._username, 
MagazineStatus._password)); 
 
response = httpclient.execute(new HttpGet(url)); 
StatusLine statusLine = response.getStatusLine(); 
if(statusLine.getStatusCode() == HttpStatus.SC_OK) { 
try { 
HttpEntity entity = response.getEntity();
InputStream content = entity.getContent();
bm=BitmapFactory.decodeStream(content );
}catch(Exception ex) {Log.e(DBF 
Error,ex.toString());} 
}else { 
response.getEntity().getContent().close(); 
throw new IOException(statusLine.getReasonPhrase()); 
} 
}catch(ClientProtocolException cpe) {Log.e(ClientProtocolException 
@ at FPT,cpe.toString());} catch(Exception ex) {Log.e(Exception at 
FETCHPROJECTASK,ex.toString());} 
return bm;
}

I'm searching in google how to do the things i need, but i can't find any 
clear information, i prefeer to ask you for the best way to do this, the 
optimal way.

THanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] SAXParserFactory.newInstance() Problem

2012-03-22 Thread Kostya Vasilyev
Um, new SAXParserFactory.newInstance(); would be a constructor call
to instantiate an inner class of SAXParserFactory, called
newInstance:

public class SAXParserFactory {
  public class newInstance {
  public newInstance() { }
  }
}

... and there is no such thing.

In other words, since you're trying to call a method, not instantiate
a class, take out the new:

SAXParserFactory spf=new SAXParserFactory.newInstance();

--

SAXParserFactory spf = SAXParserFactory.newInstance();

-- K

21 марта 2012 г. 0:14 пользователь Alexey Sinyutin
alexeysinu...@gmail.com написал:
 Good time.
 I have problem with SAXParserFactory.newInstance();.
 I have error look like : SAXParserFactory.newInstance cannot be resolved to
 a type
 Ccode:

 try{

     URL website=new URL (fullUrl);

     SAXParserFactory spf=new SAXParserFactory.newInstance();   -only  in
 this line i have error

     SAXParser sp=spf.newSAXParser();

     XMLReader xr=sp.getXMLReader();

 }

 Part of Import code:

 import javax.xml.parsers.SAXParser;

 import javax.xml.parsers.SAXParserFactory;

  How i can resolve this problem?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Daniel Drozdzewski
Recommendation2:

Consider offers other than $x/hr, as those give the vendor incentive
to be late.
Divide the project into handful of stages, and pay for each completed
stage, where both sides agree on 'completeness criteria'.
It will encourage the communication between both sides too, which is
very important with software projects.

Daniel



On 21 March 2012 17:16, Bob Plantz rgpla...@gmail.com wrote:
 Recommendation: Take the bid just before the one that says $n/hr with the
 ending of MY choice. :-)

 On 3/21/2012 10:00 AM, Nadeem Hasan wrote:

 I will do it for $85/hr with no extra charge for any ending of your
 choice. Don't you love competition. --

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: On Reciving SMS Calling Web Service.

2012-03-22 Thread ravindra bhavsar

Hello developers,

I want call web service on if particular word is found in message.but it 
shows null pointer exception.

//sms Receiver code
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.widget.Toast;


   public class SmsReceiver extends BroadcastReceiver{

   @Override
   public void onReceive(Context context, Intent intent) {
   Bundle bundle = intent.getExtras();
   SmsMessage[] msgs = null;
   String str = ;
   if (bundle != null)
  {
   //---retrieve the SMS message received---
Object[] pdus = (Object[]) bundle.get(pdus);
msgs = new SmsMessage[pdus.length];
for (int i=0; imsgs.length; i++){
msgs[i] = 
SmsMessage.createFromPdu((byte[])pdus[i]);
   str += SMS from  
+msgs[i].getOriginatingAddress();
str +=  :;
str += msgs[i].getMessageBody().toString();
str += \n;   

if(str.contains(abc))
{
Toast.makeText(context, found, 
Toast.LENGTH_LONG).show();
JsonParsingActivity jpa=new JsonParsingActivity();

jpa.check();
// Toast.makeText(context, web service 
acccess,Toast.LENGTH_LONG).show();

}
else
{
Toast.makeText(context, Not found, 
Toast.LENGTH_LONG).show();
}
   }
 //---display the new SMS message---
//Toast.makeText(context, str, Toast.LENGTH_SHORT).show();

}  

}

}

//JsonParsingActivity.

  import java.io.IOException;
  import java.io.InputStream;
  import java.io.InputStreamReader;
  import java.io.Reader;
  import java.util.List;

  import org.apache.http.HttpEntity;
  import org.apache.http.HttpResponse;
  import org.apache.http.HttpStatus;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.impl.client.DefaultHttpClient;

  import android.app.Activity;
  import android.os.Bundle;
  import android.util.Log;
  import android.widget.Toast;

  import com.google.gson.Gson;

  public class JsonParsingActivity extends Activity {

String url = 
http://search.twitter.com/search.json?q=javacodegeeks;;

@Override
   public void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);


  }
 public void check()
  {
   InputStream source = retrieveStream(url);

 Gson gson = new Gson();
 Reader reader = new InputStreamReader(source);
 SearchResponse response = gson.fromJson(reader, 
SearchResponse.class);
 Toast.makeText(this, response.query, 
Toast.LENGTH_SHORT).show();
 ListResult results = response.results;

 for (Result result : results) {
 Toast.makeText(this, result.fromUser, 
Toast.LENGTH_SHORT).show();
 }
}

private InputStream retrieveStream(String url) {

 DefaultHttpClient client = new DefaultHttpClient(); 

  HttpGet getRequest = new HttpGet(url);
  
  try {
   
 HttpResponse getResponse = client.execute(getRequest);
 final int statusCode = 
getResponse.getStatusLine().getStatusCode();
   
if (statusCode != HttpStatus.SC_OK) { 
  Log.w(getClass().getSimpleName(), Error  + statusCode +  
for URL  +url); 
  return null;
}

   HttpEntity getResponseEntity = getResponse.getEntity();
   return getResponseEntity.getContent();
   
   } 
catch (IOException e) {
   getRequest.abort();
   Log.w(getClass().getSimpleName(), Error for URL  + url, e);
  }

  return null;

 }


Re: [android-developers] Previous MapActivity is not shown/refreshed on clicking back from current MapActivity

2012-03-22 Thread Kostya Vasilyev

http://code.google.com/intl/ru/android/add-ons/google-apis/reference/com/google/android/maps/MapActivity.html



Only one MapActivity is supported per process. Multiple MapActivities 
running simultaneously are likely to interfere in unexpected and 
undesired ways.




-- K


22.03.2012 12:41, Shajahan пишет:

I have 2 MapActivity (let call it M1  M2)
1st one (M1) --  no of geo points with pins and on clicking any of the
pin take you to the other M2 with more details.
Now when click BACK button from M2 to go to previous M1, then the M1
is not shown correctly or not refreshing.
Please help.



--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Hello everyone, i couldn't figure out what this error in the logcat means!!!

2012-03-22 Thread Soyer
03-22 06:23:21.295: E/AndroidRuntime(1941):
java.lang.IllegalStateException: ArrayAdapter requires the resource ID
to be a TextView



the problem is in this couple of lines:

  mNewDevicesArrayAdapter = new ArrayAdapterString(this,
R.layout.textviewlayout);



// Find and set up the ListView for newly discovered devices
   ListView newDevicesListView = (ListView)
findViewById(R.id.new_devices);
//TextView newDevicesListView = (TextView)
findViewById(R.id.title_paired_devices);
   newDevicesListView.setAdapter(mNewDevicesArrayAdapter);


now when i try to set the arrayadapter for a list view, it says that
the arrayadapter requires a textview, and this message appear asking
to assign an ID for the textView though the ID is assigned, so i did
is i put the textview in a separate file, however the arrayadapter is
still assigned to a list view...when i try to assign it to a textview,
the method setAdapter won't be in the list of the methods supported by
the textview element.



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Yasin YILDIRIM
Today I updated my ADT and SDK Tools to v17 and my projects using
Google's gson jar library started to throw NoClassDefFoundError.
Here's the logcat:

03-22 12:30:58.941: E/AndroidRuntime(21672): FATAL EXCEPTION: main
03-22 12:30:58.941: E/AndroidRuntime(21672):
java.lang.NoClassDefFoundError: com.google.gson.Gson
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.matriksdata.conn.XRequestHandler.connect(XRequestHandler.java:35)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.matriksdata.conn.XRequestHandler.makeRequest(XRequestHandler.java:
29)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.matriksdata.bavul.XBaseWithConnectionActivity.makeRequest(XBaseWithConnectionActivity.java:
46)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.matriksdata.ui.login.SplashScreenActivity.onCreate(SplashScreenActivity.java:
36)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.Activity.performCreate(Activity.java:4465)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1049)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1919)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1980)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.ActivityThread.access$600(ActivityThread.java:122)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.os.Handler.dispatchMessage(Handler.java:99)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.os.Looper.loop(Looper.java:137)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
android.app.ActivityThread.main(ActivityThread.java:4340)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
java.lang.reflect.Method.invokeNative(Native Method)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
java.lang.reflect.Method.invoke(Method.java:511)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-22 12:30:58.941: E/AndroidRuntime(21672):at
dalvik.system.NativeStart.main(Native Method)


any ideas?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread asheesh arya
i will do 100us$ per minute!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Mark Murphy
You can try:

http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17

On Thu, Mar 22, 2012 at 6:39 AM, Yasin YILDIRIM
yasinyildirim...@gmail.com wrote:
 Today I updated my ADT and SDK Tools to v17 and my projects using
 Google's gson jar library started to throw NoClassDefFoundError.
 Here's the logcat:

 03-22 12:30:58.941: E/AndroidRuntime(21672): FATAL EXCEPTION: main
 03-22 12:30:58.941: E/AndroidRuntime(21672):
 java.lang.NoClassDefFoundError: com.google.gson.Gson
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.matriksdata.conn.XRequestHandler.connect(XRequestHandler.java:35)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.matriksdata.conn.XRequestHandler.makeRequest(XRequestHandler.java:
 29)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.matriksdata.bavul.XBaseWithConnectionActivity.makeRequest(XBaseWithConnectionActivity.java:
 46)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.matriksdata.ui.login.SplashScreenActivity.onCreate(SplashScreenActivity.java:
 36)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.Activity.performCreate(Activity.java:4465)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1049)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 1919)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
 1980)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.ActivityThread.access$600(ActivityThread.java:122)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.os.Handler.dispatchMessage(Handler.java:99)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.os.Looper.loop(Looper.java:137)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 android.app.ActivityThread.main(ActivityThread.java:4340)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 java.lang.reflect.Method.invokeNative(Native Method)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 java.lang.reflect.Method.invoke(Method.java:511)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.android.internal.os.ZygoteInit
 $MethodAndArgsCaller.run(ZygoteInit.java:784)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
 03-22 12:30:58.941: E/AndroidRuntime(21672):    at
 dalvik.system.NativeStart.main(Native Method)


 any ideas?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread old new
10¥/hr  [?]

2012/3/22 asheesh arya asheesharya...@gmail.com

 i will do 100us$ per minute!!

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en1E3.gif

Re: [android-developers] Compile an Android application which is integrated in the Android firmware with root privileges

2012-03-22 Thread Mark Murphy
Questions regarding the firmware belong on http://source.android.com
and the Google Groups listed there. This list is for developing
applications with the Android SDK.

On Tue, Mar 20, 2012 at 3:53 PM, laurent delosieres
laurent.delosie...@gmail.com wrote:
 Dear Everybody,

 I am sure that there is an easy way to solve this problem but I am
 running out of ideas. I have an application that is integrated in the
 Android firmware (android_src/packages/apps/MyApp). This application
 is compiled by using the command mmm packages/apps/MyApp. However I
 would like to set the uid of this application MyApp to 0 since I
 need to call commands such as strace and kill from this
 application. Since it is supposed to monitor other Android
 applications, I do not want to use the application Superuser.apk
 which provides you root access.

 Thank you in advance.

 /Laurent

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Statistics of Google Play

2012-03-22 Thread Jim Graham
On Tue, Mar 20, 2012 at 07:56:59AM -0700, eTeacher Marketing wrote:

 Recently, I've uploaded 2 apps to google play.
 I wish to follow the download rate and to see performance reports.
 I use www.appfigures.com for my iPhone apps stats.
 Can anyone recommend me a good way to measure the activity in Google
 Play?

Yes.  Get Appmonger.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Previous MapActivity is not shown/refreshed on clicking back from current MapActivity

2012-03-22 Thread Shajahan
Thanks Kostya Vasilyev for your reply.

On Mar 22, 3:27 pm, Kostya Vasilyev kmans...@gmail.com wrote:
 http://code.google.com/intl/ru/android/add-ons/google-apis/reference/...

  

 Only one MapActivity is supported per process. Multiple MapActivities
 running simultaneously are likely to interfere in unexpected and
 undesired ways.

 

 -- K

 22.03.2012 12:41, Shajahan пишет:

  I have 2 MapActivity (let call it M1  M2)
  1st one (M1) --  no of geo points with pins and on clicking any of the
  pin take you to the other M2 with more details.
  Now when click BACK button from M2 to go to previous M1, then the M1
  is not shown correctly or not refreshing.
  Please help.

 --
 Kostya Vasilyev

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SDK related

2012-03-22 Thread Mulsaniya Bhadresh
any friend which is in android with u and it has installed all the version
which is required?

Take its android sdk and give simply path of that sdk inside eclipse.And
start to develop ur application.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Handler vs custom CallBack class

2012-03-22 Thread dakishin
Hi all,

could you explain me differences between android.os.Handler class and
my own CallBack class.

Usecase of Handler:

void do(Handler handler){
   new Thread(){
  void run(){

   Message message=handler.obtainMessage();
   message.obj=new Result();
   handler.sendMessage(message);
}

  }.start();
}

Usecase of my custom CallBack class

public interface CallBack{
   void onResult(Result result);
}


void do(CallBack callback){
   new Thread(){
  void run(){
callBack.onResult(new Result());
}

  }.start();
}

JavaDoc says: Message will then be scheduled in the Handler's message
queue and processed when APPROPRIATE. What does it mean?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Can't get SdkControllerSensorActivity to compile

2012-03-22 Thread Harshad


On Thursday, 22 March 2012 13:12:58 UTC+5:30, kingtut wrote:

 I am trying to get the SdkControllerSensorActivity to compile to run on my 
 device, I keep getting the following error:

 *The container 'Android Dependencies' references non existing library 
 '[SDK_PATH]/tools/apps/SdkController/SdkControllerLib/bin/com_android_tools_sdkcontroller_lib.jar'
  
 SdkControllerSensorActivity Build Path Problem

 *
 even though I included the SDKControllerLib as a library project.


I am having the same problem with a project that has a dependency on an 
Android library project.
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Can't get SdkControllerSensorActivity to compile

2012-03-22 Thread Harshad


On Thursday, 22 March 2012 17:15:06 UTC+5:30, Harshad wrote:



 On Thursday, 22 March 2012 13:12:58 UTC+5:30, kingtut wrote:

 I am trying to get the SdkControllerSensorActivity to compile to run on 
 my device, I keep getting the following error:

 *The container 'Android Dependencies' references non existing library 
 '[SDK_PATH]/tools/apps/SdkController/SdkControllerLib/bin/com_android_tools_sdkcontroller_lib.jar'
  
 SdkControllerSensorActivity Build Path Problem

 *
 even though I included the SDKControllerLib as a library project.


 I am having the same problem with a project that has a dependency on an 
 Android library project.
  


Sorry for spamming; I forgot to mention I have:

   - Eclipse Indigo
   - SDK and ADT version 17, which I just updated to from 16. Didn't have 
   this problem earlier.
   

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android build and target versions

2012-03-22 Thread Neilz
I've seen various questions related to the different between the
minSdkVersion and the targetSdkVersion, and I understand the principle
here. My question is more related to how you handle new android
versions, and what you should specify then.

Scenario: I built my app a year ago, when 2.3.3 (level 10) was out,
and wanted to support back to 1.6 (level 4). So my manifest stated:

uses-sdk android:minSdkVersion=4 android:targetSdkVersion=10 /

Also, in my Eclipse setup, I specified that the project should be
built using 2.3.3

Now, there are several newer versions available, up to 4.0.3 (level
15). I want my app to be available to all possible devices, and as far
as I can tell this seems to be the case. At this moment in time, I
don't require any extra features that the newer APIs offer.

Should I update my project to build with the newer version? Should I
change the targetSdkVersion?

If I don't change it, are there any drawbacks?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] which framework is best for to develop cross platform mobile applications?

2012-03-22 Thread Anirudh Loya
What made you say PhoneGap is good? Tell its merits?

On Wed, Mar 21, 2012 at 4:05 PM, vamsi Vamsi va...@partialbits.in wrote:


 Hi Lakshmi, I have tried PhoneGap , and its pretty good
 http://phonegap.com/



 On Wed, Mar 21, 2012 at 12:34 PM, Anirudh Loya loya.anir...@gmail.comwrote:


 Check previous mails. Already lots of discussion happened on this topic .


 On Wed, Mar 21, 2012 at 1:59 AM, nvlakshmi vakiti 
 lakshmi.vad...@gmail.com wrote:

 Hi,

 Which framework is best one  to develop cross platform mobile
 applications?

  Thanks in advance.

 lakshmi

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --

 Thank you

 Anirudh Loya | Android Developer**

 Desk: +9140-30681824 | Mobile: +91*9246561265*

 *Love your Job but don't Love your company, Because you may not know
 when your company stops loving you.--  Voice Of Love*

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Yasin YILDIRIM
It worked! Thanks :)

On Mar 22, 1:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 You can try:

 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-...

 On Thu, Mar 22, 2012 at 6:39 AM, Yasin YILDIRIM









 yasinyildirim...@gmail.com wrote:
  Today I updated my ADT and SDK Tools to v17 and my projects using
  Google's gson jar library started to throw NoClassDefFoundError.
  Here's the logcat:

  03-22 12:30:58.941: E/AndroidRuntime(21672): FATAL EXCEPTION: main
  03-22 12:30:58.941: E/AndroidRuntime(21672):
  java.lang.NoClassDefFoundError: com.google.gson.Gson
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.conn.XRequestHandler.connect(XRequestHandler.java:35)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.conn.XRequestHandler.makeRequest(XRequestHandler.java:
  29)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.bavul.XBaseWithConnectionActivity.makeRequest(XBaseWithConn 
  ectionActivity.java:
  46)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.ui.login.SplashScreenActivity.onCreate(SplashScreenActivity 
  .java:
  36)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.Activity.performCreate(Activity.java:4465)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1049)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  1919)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
  1980)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.access$600(ActivityThread.java:122)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.os.Handler.dispatchMessage(Handler.java:99)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.os.Looper.loop(Looper.java:137)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.main(ActivityThread.java:4340)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  java.lang.reflect.Method.invokeNative(Native Method)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  java.lang.reflect.Method.invoke(Method.java:511)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:784)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  dalvik.system.NativeStart.main(Native Method)

  any ideas?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Kostya Vasilyev
Just updated to tools 17 and got this in most projects:

Implicit super constructor Object() is undefined for default
constructor. Must define an explicit constructor

And

The project was not built since its build path is incomplete. Cannot
find the class file for java.lang.Object.Fix the build path then try
building this project

Fix Project Properties fixed some projects, but not all.

What did help was:

I brought up project Properties / Android, selected a different
Android API version, clicked Apply, then changed the API version back
to what it was and clicked Apply again.

The improvements in these new tools are very welcome, but come on,
does anyone ever test how well new tools can migrate existing
projects?

-- K

22 марта 2012 г. 16:12 пользователь Yasin YILDIRIM
yasinyildirim...@gmail.com написал:
 It worked! Thanks :)

 On Mar 22, 1:03 pm, Mark Murphy mmur...@commonsware.com wrote:
 You can try:

 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-...

 On Thu, Mar 22, 2012 at 6:39 AM, Yasin YILDIRIM









 yasinyildirim...@gmail.com wrote:
  Today I updated my ADT and SDK Tools to v17 and my projects using
  Google's gson jar library started to throw NoClassDefFoundError.
  Here's the logcat:

  03-22 12:30:58.941: E/AndroidRuntime(21672): FATAL EXCEPTION: main
  03-22 12:30:58.941: E/AndroidRuntime(21672):
  java.lang.NoClassDefFoundError: com.google.gson.Gson
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.conn.XRequestHandler.connect(XRequestHandler.java:35)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.conn.XRequestHandler.makeRequest(XRequestHandler.java:
  29)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.bavul.XBaseWithConnectionActivity.makeRequest(XBaseWithConn
   ectionActivity.java:
  46)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.matriksdata.ui.login.SplashScreenActivity.onCreate(SplashScreenActivity
   .java:
  36)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.Activity.performCreate(Activity.java:4465)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
  1049)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
  1919)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
  1980)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.access$600(ActivityThread.java:122)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.os.Handler.dispatchMessage(Handler.java:99)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.os.Looper.loop(Looper.java:137)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  android.app.ActivityThread.main(ActivityThread.java:4340)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  java.lang.reflect.Method.invokeNative(Native Method)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  java.lang.reflect.Method.invoke(Method.java:511)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.android.internal.os.ZygoteInit
  $MethodAndArgsCaller.run(ZygoteInit.java:784)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
  03-22 12:30:58.941: E/AndroidRuntime(21672):    at
  dalvik.system.NativeStart.main(Native Method)

  any ideas?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
 Available!

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] What will happen then press power button while video recording!?

2012-03-22 Thread AndroidFans
Hello everyone, I am developing a video software, everything is fine,
but i am confused what will happen then press power button while video
recording!?
Is the mediarecorder object paused or stop?
When press the power button again, the phone resumed,  is the
mediarecorder object will resume ??
Any help will be appreciated!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Greetings

2012-03-22 Thread kamil
Hello all,
I just joined this group. I am new to Android and Eclipse and am now
trying to find out about the specifics of android programming.
I am now trying to write a program that utilises SQLite but for the
time being without luck. I am hoping to get some help from this group
but before I send my questions, I will check the archives, who knows,
the questions may already been answered.
Thanks
Kamil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Relative position (offline)

2012-03-22 Thread magodiez
Hi,
I'm trying to figure out what is the best way to determine the relative 
position of another phone (Its position compared to mine).
The phones will be in a WifiP2P range, so they can communicate with each 
other.
I want it to be offline, if possible.

I've thought a couple possible solutions:
Solution1: Use GPS in both devices, and compare it.
  Problems: - Can I use GPS offline?
  - If two devices are in nearby area, is the GPS error 
going to be the same (or similar)?
  - Will this give problems indoors?
Solution2: Calculate my relative position depending in the WifiP2P 
signal strength
  Problems: - How can I calculate this relative position? (thought about 
something like triangulation but moving the phone to get the 3 or more 
different signals)
  - Is there a getRssi() function for the WifiP2P? (I 
didn't found one)
  - I might need to check for the other device movement too.
  - I've read that calculating your position changes with 
the accelerometer is not very accurate.

Any thoughts about this???
Any other possible solution???
If there is not a good solution offline, what would you suggest online??? 
(would the Network Location Provider have the same (or similar) error on 
nearby devices???)

Sorry for my possible English mistakes.
Thank you in advance!!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to read Peoples address in android 4.0 platform

2012-03-22 Thread Sandeep Nemuri
 am working on an application in which i have to fetch the Postal or
Home address of any contact from the contact list.
I want to open contact list and when i click on any contact item I
should get its Postal Address or Home address in return.
But I am not able to figure it out.
I am using OS Android 4.0.
Can any body please show some code snippets of how to do this.

Thanks in advance

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Any quick start recipes for SQLite?

2012-03-22 Thread Kamil Dursun
Hi,
I am trying to make a program that will use SQLite.
I am using the SQL commands to create a database and some tables. I have
understood that the db file should reside in my
data/data/package/databases folder but when I click to /data folder in the
file manager of Eclipse, I see nothing. The db file has not been created.
Any ideas?
Thanks
Kamil

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to read Peoples address in android 4.0 platform

2012-03-22 Thread Sandeep Nemuri
i am not able to find any code for reading peoples address from address
book in android 4.0 platform . can any 1 help me ??

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Luca Morettoni
On Thu, Mar 22, 2012 at 11:39 AM, Yasin YILDIRIM
yasinyildirim...@gmail.com wrote:
 Today I updated my ADT and SDK Tools to v17 and my projects using
 Google's gson jar library started to throw NoClassDefFoundError.

I have the same problem, after the upgrade I see that the apk created
with ADT don't contain some external lib;
in my project I use AdMob sdk, but compiling the project with the new
plugin it doesn't include external jar files...

PS: I updated the Android SDK tools to revision 17 too...
-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
Google+ profile: http://bit.ly/morettoni_plus
Member of Python User Group Perugia: http://www.pypg.org/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] NoClassDefFoundError for gson after updating the ADT and SDK Tools

2012-03-22 Thread Luca Morettoni
On Thu, Mar 22, 2012 at 12:03 PM, Mark Murphy mmur...@commonsware.com wrote:
 You can try:

 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17

thanks!

-- 
Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net
gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni
Google+ profile: http://bit.ly/morettoni_plus
Member of Python User Group Perugia: http://www.pypg.org/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Transfer store/checkout account from individual to company

2012-03-22 Thread Rob
Hi,

I have sold my android business to a limited company, and I'd like to
change the checkout account so that payments now go to this company,
rather than to me. At the moment, I'm paid to a US bank account. In
the future I'd like payments to go to a UK company accound.

Is there a way to do this?

thanks,

Rob

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Nadeem Hasan
You are not taking this seriously are you? Because none of us are.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Anirudh Loya
How can you say none of us ?..

I am very serious !

$XXX per hour !

On Thu, Mar 22, 2012 at 6:51 PM, Nadeem Hasan nha...@nadmm.com wrote:

 You are not taking this seriously are you? Because none of us are.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 

Thank you

Anirudh Loya | Android Developer**

Desk: +9140-30681824 | Mobile: +91*9246561265*

*Love your Job but don't Love your company, Because you may not know when
your company stops loving you.--  Voice Of Love*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android instrumentation testing, how to start with clean database all the time

2012-03-22 Thread Dirk Vranckaert
I did not really found the answer, but I did find a solution (or another 
way to reach my target :) ).
See my answer at StackOverflow.com =  
http://stackoverflow.com/questions/9804917/android-testing-start-with-clean-database-for-every-test/9823600#9823600
 

Op woensdag 21 maart 2012 09:26:56 UTC+1 schreef Dirk Vranckaert het 
volgende:

 I'm testing my application with Android Instrumentation tests.

 So I have a test-class extending  ActivityInstrumentationTestCase2 which 
 contains multiple tests. The code looks like this: 
 http://pastebin.com/0Di3Hwug 

 So the activity which is under test has a list of projects. The list of 
 projects is retrieved from the database. And when no database is available, 
 so when the DB is created, I insert one default project.

 What I want it to do is to delete the database before every test is run 
 (that's why I have the delete in the setUp() method), and so  if there is 
 no database available the onCreate for the database should be called on 
 creation of my activity (when loading the list of projects).

 What it does, it deletes the DB, it creates the DB, then runs my first 
 test, then it deletes the DB, but does not create it, and runs the second 
 test.

 In the test that is first run, I create (add) a project to the DB. In the 
 second test, as I delete the DB, I don't want to see that project anymore 
 but it's there!! No idea how that can happen but it seems that the 
 instrumentation tests are keeping a DB instance in memory...
 Or even an instance of the activity? Because when I put a breakpoint in 
 the onCreate of my activity I only get there once for both the tests...

 For the maintaining the DB I use ORMLite. You can see my helper class 
 here: 
 http://code.google.com/p/worktime/source/browse/trunk/android-app/src/eu/vranckaert/worktime/dao/utils/DatabaseHelper.java

 So how can I work around this or is there another way to achieve what I 
 want?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Loader Manager behaviour problem

2012-03-22 Thread Sudeep Sharma
Hi,
   Please help me on this.

I have my own class similar to CursorLoader which extends AsyncTaskLoader.

I need to do multiple queries to network so I am using LoaderManager
callbacks. I do not use ForceLoadContentObserver in my implementation,
instead i use normal ContentObserver.

1. I do a initLoader with say id loader id 1., initially i get a
cursor with empty count in onLoadFinished() but since i also register
on content observer,  onLoadFinished()  gets hit again with some data
and its displayed on UI.

2. Now when i need to refresh my data on listview through some button,
i destroy my loader with id 1 and create a new loader with id 2 (new
instance of my customized Cursor loader class gets created) and
control hits again on onLoadFinished()  with some data. Now in mean
while my content observer also gets hit as fresh data is fetched from
network but when i check isStarted() function of Loader to decide
whether to call forceLoad or not, it returns false, also i printed
isReset() function as false,  which means that Loader is reset by the
time Content observer got hit.

Why is it so? How it is diffrent from the first case when i started
loader with id 1.

In second case i just destroyed the loader with id1 and did initloader
with id 2.

Also i tried in  second case that if i did a restart on loader id 1
instead of destroying, then also when my content observer gets hit i
see isStarted() as false.

Due to this I am not able to pass the new/refreshed data to my app.

Please can anybody help me in understanding this or is this a LoaderManager bug.

Thanks  Regards,
Sudeep.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SWF file

2012-03-22 Thread bob
Well, I got this to work if I have something called SWF Player installed:

Intent intent = new Intent();  
intent.setAction(android.content.Intent.ACTION_VIEW);  
File file = new File(/mnt/sdcard/test.swf);  

intent.setDataAndType(Uri.fromFile(file) , 
application/x-shockwave-flash); 
   
startActivity(intent);



On Wednesday, March 21, 2012 8:18:51 PM UTC-7, MagouyaWare wrote:

 Have you googled this?  When I did, I came up with this stackoverflow post 
 which should help answer your question.  In the future, maybe do a little 
 homework first... :-)

 http://stackoverflow.com/questions/1887758/playing-a-flash-file-in-android
  
 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Wed, Mar 21, 2012 at 2:43 PM, bob b...@coolfone.comze.com wrote:

 Does anyone know the easiest way to play back an SWF file on an Android 
 device?

 Thank you.

  -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Android Project development cost

2012-03-22 Thread Kristopher Micinski
On Thu, Mar 22, 2012 at 9:39 AM, Anirudh Loya loya.anir...@gmail.com wrote:
 How can you say none of us ?..


Because the premise of the group dictates it won't be used for spammy
commercial purposes such as these...

kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to tell is Bluetooth SCO is available?

2012-03-22 Thread RedBullet
What's the proper way to determine is Bluetooth SCO is available? I am 
guessing that one just needs to call startBluetoothSco() and then listen 
for the status intent?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] one time Registration after installation of an application??

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 2:58 AM, Muhammad UMER
muhammad.ume...@hotmail.comwrote:

  1) Can it remove data when the cell is close mean shut down?


No, Preferences are saved across sessions. They are removed if the app is
uninstalled, along with the rest of the app data.


 in my case i don't want to remove my data even the cell is shut down.


Then SharedPreferences will work fine.


2) I want to store the  User name and phone no only one time,
 after that the application will not ask again to enter these requirements.


That's precisely the point of SharedPreferences.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to detect motion on android device

2012-03-22 Thread Hery Irawan
Hi, I want to create motion detection app, but I still have a problem
with my code

Here my code:


package com.iseng;

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

import android.app.Activity;
import android.content.ContentValues;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore.Images.Media;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;
import android.hardware.*;
import android.hardware.Camera.PictureCallback;

public class IsengActivity extends Activity implements
SurfaceHolder.Callback, Camera.PreviewCallback, PictureCallback  {


Camera kamera;
SurfaceHolder surface;
SurfaceView kameraview;

public byte dataOld[];


public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
kameraview =(SurfaceView) findViewById(R.id. kameraku);
surface = kameraview.getHolder();
surface.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
surface.addCallback(this);



}


@Override
public void onPreviewFrame(byte[] data, Camera kamera) {

if(data.length ==0) return;

if(dataOld.length==0 )
data=dataOld;

int Isdiferent=0;

int treshold =50;
for (int x=0; xdata.length; x=+200)
{
if(Math.abs(data[x] - dataOld[x]) = treshold )
{
Isdiferent +=1;
}

float precentage = Isdiferent / data.length;
if (precentage  20 )
{

kamera.takePicture(null,null,this);
}

}
}


@Override
public void surfaceChanged(SurfaceHolder holder, int format, int h,
int w) {
kamera.startPreview();
}


@Override
public void surfaceCreated(SurfaceHolder holder) {
kamera=Camera.open();

try

{
Camera.Parameters parameter = kamera.getParameters();
if(this.getResources().getConfiguration().orientation !=
Configuration.ORIENTATION_LANDSCAPE)
{
parameter.set(orientation,portrait);
kamera.setDisplayOrientation(90);
}

else
{
parameter.set(orientation,landscape);
kamera.setDisplayOrientation(0);
}

kamera.setParameters(parameter);
kamera.setPreviewDisplay(holder);
}

catch(IOException e)
{
kamera.release();

}
kamera.startPreview();
}


@Override
public void surfaceDestroyed(SurfaceHolder holder) {
kamera.stopPreview();
kamera.release();

}


@Override
public void onPictureTaken(byte[] data, Camera kamera) {

// TODO Auto-generated method stub
Uri imageFileUri =
getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,new
ContentValues());
try

{
/*String sdcardStorage =
Environment.getExternalStorageDirectory().toString();
imageFileUri=Uri.parse(sdcardStorage + 
/HeryMD/Test.jpg);*/

 String sdcardStorage =
Environment.getExternalStorageDirectory().toString();
 File f = new File(sdcardStorage + 
/HeryMD/Test.jpg);
 OutputStream os = new 
FileOutputStream(f);
 os.write(data);
 os.flush();
 os.close();
} catch(FileNotFoundException e)
{
Toast t = 
Toast.makeText(this,e.getMessage(),
Toast.LENGTH_SHORT);
t.show();
}


catch(IOException e)
{
Toast t = 

[android-developers] Re: onActivityResult not being called

2012-03-22 Thread Joey Selah
Actually excuse me,

I've mixed the classed up some how.  Below is the correct code:

public class BrewJournalEdit extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.brew_journal_edit);
baseIngredientButton.setOnClickListener(new
View.OnClickListener() {
public void onClick(View view) {
Intent intent = new
Intent().setClass(BrewJournalEdit.this, BaseIngredientEdit.class);
int requestCode = 0;
startActivityForResult(intent, requestCode);
}
});
@Override
protected void onActivityResult(int requestCode, int resultCode,
Intent data)
{
if(resultCode == 0)
{
}
}
}

public class BaseIngredientEdit extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.brew_base_ingredients_edit);
Button confirmButton = (Button) findViewById(R.id.confirm);
confirmButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
setResult(RESULT_OK);
finish();
}
});

On Mar 19, 10:21 pm, FiringCode kims...@gmail.com wrote:
 Intent().setClass(BrewJournalEdit.this, BaseIngredientEdit.class);

 to

 Intent().setClass(BaseIngredientEdit.this, BrewJournalEdit.class);

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to detect motion on android device

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 9:32 AM, Hery Irawan irawanfi...@gmail.com wrote:

 I want to create motion detection app, but I still have a problem with my
 code


And what is this problem? You understand that saying you have a problem,
posting a giant blob of code, and not actually explaining said problem is a
fantastic way to get ignored?

http://www.catb.org/~esr/faqs/smart-questions.html

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Alert dailog-- outer layout appears curled in mobile

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 8:03 AM, arun kumar arun.kata...@gmail.com wrote:

 Alert dailog looking different in emulator and mobile


So? There are a million Android devices. Most get customized, so the
default style of things, including dialogs, will be different from device
to device, and definitely from the emulator.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Transfer store/checkout account from individual to company

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 7:44 AM, Rob rob.jon...@gmail.com wrote:

 Is there a way to do this?


Wrong forum.
http://support.google.com/googleplay/android-developer/?hl=en

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Dev Environment - maven-android-eclipse

2012-03-22 Thread Ricardo Gladwell
Hi Ted

This is possible, please see the Android Connector for M2E (Maven for 
Eclipse):

http://rgladwell.github.com/m2e-android/

Regards...

-- 
Ricardo Gladwell ricardo.gladw...@gmail.com
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell

On Wednesday, March 21, 2012 4:17:41 PM UTC, Ted S. wrote:

 This is somewhat off topic, but I couldn't think of a better place to ask.

 Is anyone successfully using maven and eclipse to develop android apps? 
 If so, are they complex apps? I really like the dependency management 
 aspects of maven, but getting eclipse to play nicely with maven in an 
 android project is problematic. In my ideal world I would be able to 
 build and deploy in eclipse for development/debugging and use maven to 
 do production builds.

 So, have you tried and rejected using maven? Or have you tried and 
 gotten it to work nicely?

 I'm about ready to give up on getting it all to play nicely.

 -Ted



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Any quick start recipes for SQLite?

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 6:14 AM, Kamil Dursun kamildur...@gmail.com wrote:

 I have
 understood that the db file should reside in my
 data/data/package/databases folder but when I click to /data folder in
 the
 file manager of Eclipse, I see nothing. The db file has not been created.
 Any ideas?


Are you working on a device? Because you can't browse to private app data
files using ADB on a device.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Programmatically disable 3G/Mobile Data

2012-03-22 Thread Yaron Reinharts

Hi,

I was looking for the way to disable/enable 3G too.

This is what I came up with:
1) There is no API for this.
2) There are enough examples of how to achieve that using some techniques
(for example 
(http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android).
3) No matter which technique you are using you need to grant the 
MODIFY_PHONE_STATE permission.
4) This permission was marked as for system use only in Android 
version 2.3.
5) According to Google this is the expected behavior and they are not 
going to change it.

(check out http://code.google.com/p/android/issues/detail?id=15022).

I gave up this feature, please let me know if you find a 'proper' way to 
accomplish disabling/enabling 3G mobile data.


Thanks
/Yaron

--
Yaron Reinharts
Smart Drive Applications
http://www.poncho.co.il/gateaway.php
https://market.android.com/details?id=com.poncho.gsm.gate.activities



On 03/22/2012 05:04 AM, Hamza wrote:

Hi!

I am trying to develop an application that smartly manages wifi vs 3g 
for a user. I am looking for a way to totally disable 3G on a device 
(similar to how a user can do it in the settings, but programmatically 
instead). Specifically, I need a way to do this on Android 4.0. How 
can an app disable mobile data on a device??


--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 



--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Android build and target versions

2012-03-22 Thread TreKing
On Thu, Mar 22, 2012 at 6:58 AM, Neilz neilhorn...@gmail.com wrote:

 Should I update my project to build with the newer version?


No. If it ain't broke, don't fix it.


  Should I change the targetSdkVersion?


Do you want to target a newer version? If not, no. If it ain't broke, don't
fix it.


 If I don't change it, are there any drawbacks?


There may be compatibility problems with new versions. For example, if you
used the old foreground notification system that was turned into a no-op on
newer devices. For the most part, though, you shouldn't have to change
much, if anything.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   3   >