[android-developers] Re: You need to enter a valid Youtube address.

2012-11-19 Thread Keith Wiley
Incidentally, I don't think the problem is my video.  For example, I found 
another app on the market, not my app, which had a video.  I attempted to 
attach the youtube URL to that video to my app (just to test of course) and 
I got the same error.  Presumably, the URL format in my first post in this 
thread is not, in fact, correct...but I am confounded as to what the 
correct format is.

Gah!  Why is the error message so unhelpful.

Please help.  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: You need to enter a valid Youtube address.

2012-11-19 Thread Keith Wiley
I also tried the youtube short URL, btw, i.e., http://youtu.be/XXX.
http://youtu.be/KmBVrga0mGw

-- 
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] BillingService.java

2012-11-19 Thread Bram Stolk
Hi,

I have released my app with in-app-billing.
I used the Dungeons in app billing example to implement it.

However, I noticed that sometimes my app would crash in BillingService.java 
due to a NULL intent in HandleCommand.

So to fix this, I did an early return when intent is nil.
Like this:

 public void handleCommand(Intent intent, int startId) {
+if ( intent == null ) return; // Added by Bram, was getting null 
ptr exception here!
 String action = intent.getAction();
 if (Consts.DEBUG) {
 Log.i(TAG, handleCommand() action:  + action);

Although the crash went away, I do get reports from customers saying that 
they purchased content, which was never unlocked by my app.
I am beginning to suspect that those customers are hitting the 
intent-is-null path, causing a purchase status update to be missed by the 
app?

Did anyone else see either crashes in this function, or missed in app 
billing updates?

thx,

  Bram





















-- 
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: You need to enter a valid Youtube address.

2012-11-19 Thread Ralph Bergmann | the4thFloor.eu

Am 19.11.12 09:39, schrieb Keith Wiley:

I also tried the youtube short URL, btw, i.e.,
http://youtu.be/XXX .
http://youtu.be/KmBVrga0mGw


I have added this video with success 
http://www.youtube.com/watch?v=zHirwKGEfoE



Ralph

--
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] BillingService.java

2012-11-19 Thread Stefan Alder
Had a similar issue in BillingService.onStart (from Dungeons).

Not sure if this is official, but I did see here,
http://code.google.com/p/marketbilling, the following was added:
// Overrides onStartCommand for people who build on SDK versions  4.
// Override annotation is commented out as the method does not always
exist.
// @Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (intent == null) {
stopSelfResult(startId);
return;
}
handleCommand(intent, startId);
return 0;  // Service.START_STICKY_COMPATIBILITY
} Oddly it's not returning an int if the intent is null...
On Mon, Nov 19, 2012 at 12:54 AM, Bram Stolk b.st...@gmail.com wrote:

 Hi,

 I have released my app with in-app-billing.
 I used the Dungeons in app billing example to implement it.

 However, I noticed that sometimes my app would crash in
 BillingService.java due to a NULL intent in HandleCommand.

 So to fix this, I did an early return when intent is nil.
 Like this:

  public void handleCommand(Intent intent, int startId) {
 +if ( intent == null ) return; // Added by Bram, was getting null
 ptr exception here!
  String action = intent.getAction();
  if (Consts.DEBUG) {
  Log.i(TAG, handleCommand() action:  + action);

 Although the crash went away, I do get reports from customers saying that
 they purchased content, which was never unlocked by my app.
 I am beginning to suspect that those customers are hitting the
 intent-is-null path, causing a purchase status update to be missed by the
 app?

 Did anyone else see either crashes in this function, or missed in app
 billing updates?

 thx,

   Bram





















  --
 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] Re: Problem Searching the Array in a Spinner

2012-11-19 Thread skink


Mark Phillips wrote:
 Any suggestions on how to set the value of the spinner index by searching
 the strings in the spinner array?

why would you do that?

why not simply:

// set C deg
s.setSelection(0)
// set F deg
s.setSelection(1)
// set K deg
s.setSelection(2)

pskink

-- 
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] Get the calling thread's id

2012-11-19 Thread AndroidCompile
Hi,
Is it possible to retrieve the id of a thread that called a certain 
function? (assuming this function can be called from several threads)
I know that it is possible to ask a Binder object which Process had called 
it, but is it also possible with threads from the same process?

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] 2012 october payout report

2012-11-19 Thread Balint
Did anyone received the payout report for October 2012? We're in the second 
half of November and I cannot see it. It's generally available in the first 
week of a every month.
 
Balint

-- 
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 events of a specific calendar from android 2.3

2012-11-19 Thread Dawood Abbasi
i want to get events details of a specific calendar (not all calendars) 
from android 2.3
how can i do 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

[android-developers] Opening .msg file(Outlook item file) in android programmatically

2012-11-19 Thread Nandagopal T
Hi All,

Could anyone share their thoughts on this query.

http://stackoverflow.com/questions/13383318/opening-msg-fileoutlook-item-file-in-android-programmatically

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: Get the calling thread's id

2012-11-19 Thread Johan Appelgren
You can get the thread id using 
Thread.getId() 
http://developer.android.com/reference/java/lang/Thread.html#getId()

On Monday, November 19, 2012 10:14:27 AM UTC+1, AndroidCompile wrote:

 Hi,
 Is it possible to retrieve the id of a thread that called a certain 
 function? (assuming this function can be called from several threads)
 I know that it is possible to ask a Binder object which Process had called 
 it, but is it also possible with threads from the same process?

 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] You need to enter a valid Youtube address.

2012-11-19 Thread TreKing
On Mon, Nov 19, 2012 at 1:03 AM, Keith Wiley kbwi...@gmail.com wrote:

 I realize this issue is not really about Android development, but ever
 since the Android Market Forum went away, I have not been sure where
 developers should discuss Google Play Store administration problems.  If
 you know a better place than this group, please politely inform me, I would
 appreciate the clarification.


http://developer.android.com/support.html


 Otherwise, here goes...

 I'm trying to set up a new app and it won't let me enter a promo video
 URL. I keep getting an error *You need to enter a valid Youtube address.*,
 which is staggeringly unspecific feedback.  Isn't a proper youtube URL of
 the form *https://www.youtube.com/watch?v=XXX*?  I don't know
 what else to try.

 Any ideas?


Does this occur on both the old console and the new version they're working
on?

-
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 get device raw width and height or actual screen width and height ?

2012-11-19 Thread Makrand
I am trying to get the actual screen width and height of the Nexus 7 
running on 4.2.

I am doing some runtime calculations based on device width and height to 
resize buttons and some UI elements, so it will look proper in all devices. 
my code was working great in all SDKs 4.1 and below but not working on 4.2.
 
I am using following code to get width and height. 

Code: 1
DisplayMetrics displaymetrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
mWidth = displaymetrics.widthPixels;
mHeight = displaymetrics.heightPixels;

Code: 2
Point size = new Point();
WindowManager w = getWindowManager();
w.getDefaultDisplay().getSize(size); 
mWidth = size.x;
mHeight = size.y;

I have also tried with undocumented methods 
Code: 3
Display display = getWindowManager().getDefaultDisplay();
Method mGetRawW = Display.class.getMethod(getRawWidth);
Method mGetRawH = Display.class.getMethod(getRawHeight);
mWidth = (Integer) mGetRawW.invoke(display);
mHeight = (Integer) mGetRawH.invoke(display);

But none of above is working with Nexus 7 running on 4.2, its always 
subtracting status bar height, I am not getting full height. 

I have used some methods to calculate status bat height but not getting 
proper values, 

int statusBarHeight = Math.ceil(25 * 
context.getResources().getDisplayMetrics().density);

AND

Rect rectgle= new Rect();
Window window= getWindow();
window.getDecorView().getWindowVisibleDisplayFrame(rectgle);
int StatusBarHeight= rectgle.top;

is there any standard way to get actual device screen height and width?

-- 
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 Display the Images as 180 degrees and 360 degrees with scrolling facilities in Android?

2012-11-19 Thread Ganesh Vadlakonda
Hi All,

I am working on Android ,
My intention is that I am getting images like 180 degrees,and 360 degrees 
panoramic images .
I would like to show those images in android Activity fragments with 
providing scrolling and moving facilities to the user.
Can any one suggest me how to implement .
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: Get the calling thread's id

2012-11-19 Thread AndroidCompile
If two threads can access a service (that sits in the same process they are 
- the service could have created these threads) and use its methods, I want 
the service to know who was the caller.
I think that Thread.getId returns the current running thread (in this case, 
if the service calls this function, it will always receive its own thread 
Id).



On Monday, November 19, 2012 12:38:02 PM UTC+2, Johan Appelgren wrote:

 You can get the thread id using Thread.getId() 
 http://developer.android.com/reference/java/lang/Thread.html#getId()

 On Monday, November 19, 2012 10:14:27 AM UTC+1, AndroidCompile wrote:

 Hi,
 Is it possible to retrieve the id of a thread that called a certain 
 function? (assuming this function can be called from several threads)
 I know that it is possible to ask a Binder object which Process had 
 called it, but is it also possible with threads from the same process?

 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: How to get device raw width and height or actual screen width and height ?

2012-11-19 Thread Piren
Ahh... i dont think you were getting any different results on 4.1 
...Android always reports the height without the bar as long as it is 
visible.
Besides, using those values will get your the proper values to work with... 
why do those calculations while including an area of the screen your cant 
use? 


On Monday, November 19, 2012 1:29:14 PM UTC+2, Makrand wrote:

 I am trying to get the actual screen width and height of the Nexus 7 
 running on 4.2.

 I am doing some runtime calculations based on device width and height to 
 resize buttons and some UI elements, so it will look proper in all devices. 
 my code was working great in all SDKs 4.1 and below but not working on 4.2.
  
 I am using following code to get width and height. 

 Code: 1
 DisplayMetrics displaymetrics = new DisplayMetrics();
 getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
 mWidth = displaymetrics.widthPixels;
 mHeight = displaymetrics.heightPixels;

 Code: 2
 Point size = new Point();
 WindowManager w = getWindowManager();
 w.getDefaultDisplay().getSize(size); 
 mWidth = size.x;
 mHeight = size.y;

 I have also tried with undocumented methods 
 Code: 3
 Display display = getWindowManager().getDefaultDisplay();
 Method mGetRawW = Display.class.getMethod(getRawWidth);
 Method mGetRawH = Display.class.getMethod(getRawHeight);
 mWidth = (Integer) mGetRawW.invoke(display);
 mHeight = (Integer) mGetRawH.invoke(display);

 But none of above is working with Nexus 7 running on 4.2, its always 
 subtracting status bar height, I am not getting full height. 

 I have used some methods to calculate status bat height but not getting 
 proper values, 

 int statusBarHeight = Math.ceil(25 * 
 context.getResources().getDisplayMetrics().density);

 AND

 Rect rectgle= new Rect();
 Window window= getWindow();
 window.getDecorView().getWindowVisibleDisplayFrame(rectgle);
 int StatusBarHeight= rectgle.top;

 is there any standard way to get actual device screen height and width?


-- 
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 record multimedia audio

2012-11-19 Thread Meloy Común
Hello, I apologize for my English first.

I am developing an android piano.
I wonder how I can record the sounds that occurs when i touch the keys of 
the piano.
I explain it:

I load the sounds:

private void chargeSounds() {
this.soundPool = new SoundPool(12, AudioManager.STREAM_MUSIC, 0);
this.soundPool.
setOnLoadCompleteListener(new OnLoadCompleteListener() {

@Override
public void onLoadComplete(SoundPool soundPool, int sampleId,
int status) {
MainActivity.this.loaded = true;
}
});

this.soundID[0] = soundPool.load(this, R.raw.dob, 1);
this.soundID[1] = soundPool.load(this, R.raw.rebbem, 1);
this.soundID[2] = soundPool.load(this, R.raw.reb, 1);
this.soundID[3] = soundPool.load(this, R.raw.mibbem, 1);
..
.

Then, to record audio i have a button that launches myRecord:

public void myRecord(View view) {
mediaRecorder = new MediaRecorder();
// Create folder if no exists
File file = new File(Environment.getExternalStorageDirectory()
.getAbsolutePath() + /folder);
if (!file.exists())
file.mkdirs();
mediaRecorder.setOutputFile(file + /audio1.3gp);
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);

mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);

mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
try {
mediaRecorder.prepare();
} catch (IOException e) {
Log.e(Record, Fail to record: + e.getMessage());
Toast toast = Toast.makeText(getApplicationContext(),
e.getMessage(), Toast.LENGTH_LONG);
toast.show();
}
mediaRecorder.start();
this.btnGrabar.setBackgroundResource(R.drawable.record_on);
}
}

With this code i can record the piano music and my voice, but i only what 
to record piano audio.
Is there any way to record only the sound of the piano without voice?

I have tried to set grabar function like:
 mediaRecorder.setAudioSource(AudioManager.STREAM_MUSIC); instead of: 
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); but it blocks 
the app.
Any suggestions?

Thank you and Again apologies for my English.



-- 
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] Coverflow on API 16

2012-11-19 Thread onigunn
Hi,

since widget.Gallery is deprecated now I was wondering how can I achieve a 
coverflow widget for my application. The API says instead of Gallery we 
should use ViewPager or HorizontalScrollView. For a coverflow widget I 
would see the horizontalScrollView as the top choice. My question is: How 
do I can hook up into the scrollview? 

I wouldn't be suprised if this could be implemented very easly.

Best,

oni

-- 
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] Spinner List background

2012-11-19 Thread Nimish John

Is there any way to change the background of Spinner List??

-- 
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] Need Advice in Syncing Data From Android Device to SQL-Server Database

2012-11-19 Thread Anees Thyrantakath
Below is the settings what i got when i checked *adb shell netcfg*
System Directory:   C:\Windows\system32# netcfg
netcfg
lo   UP127.0.0.1   255.0.0.0   0x0049
eth0 UP10.0.2.15   255.255.255.0   0x1043
tunl0DOWN  0.0.0.0 0.0.0.0 0x0080
gre0 DOWN  0.0.0.0 0.0.0.0 0x0080

Is that possible to define same network configuration on my Android Device?
I think if i can set-up same configuration i'll be able to sync.


On Mon, Nov 19, 2012 at 1:50 PM, Anees Thyrantakath sakzk...@gmail.comwrote:

 Hi, I tried *adb forward 194.178.100.1:1433 tcp:8080* which is a *private
 ip*..got error *cannot bind socket *on cmd prompt.


 On Mon, Nov 19, 2012 at 11:30 AM, Anees Thyrantakath 
 sakzk...@gmail.comwrote:

 Hi Andrew Mackenzie, I created an Andriod app that read/write to a *Microsoft
 SQL-Server Database 2008 R2* database running on Server. Through using
 Emulator(in my local PC) i'm able to sync data.

 Problem comes while syncing the same app using USB Debugging in real
 Device. While Trying to connect Using USB getting the following error
 07-11 05:41:02.920: W/Error connection(2757): Network error IOException:
 failed to connect to /194.178.100.1 (port 1433): connect failed:
 ENETUNREACH (Network is unreachable)

 I'm syncing data from SQLite (sits in Android App) to SQL-Server Database
 Over IP.

 As if now i didn't try the Option of Port Forwarding Let me try the way
 as you mentioned.

 Thanks alot for your reply.

 Best Regards,
 Aadi


 On Sat, Nov 17, 2012 at 5:02 PM, Andrew Mackenzie 
 and...@mackenzie-serres.net wrote:

 Aadi, just to understand more what you want:

 You're trying to have an Android app read/write to a SQLite database
 running on your PC, using the USB connection?

 That doesn't sound easy, and I'm not sure it's possible.

 To get access over IP to the PC you will have to start by using the
 loopback address of 10.0.2.2, not 127.0.0.1 which is the local address
 INSIDE the android phone where the app is running.

 I suggest start with a simple test to check you can reach your PC from
 Android.
 Try running a web server on your PC and loading a page from it from the
 Android browser using the 10.0.2.2 address.

 If you want to sync two SQLite databases (one on Android device and
 another on the PC) over IP, then that's different - and I'm interested to
 know more about your needs there(changes on either side, synced,
 conflict resolution, etc).

 --
 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] Re: Chronometer Widget lags against other stopwatches

2012-11-19 Thread Gabriel Simões
No other reports of this issue?

On Saturday, November 17, 2012 11:58:20 AM UTC-2, Gabriel Simões wrote:

 Hello,

 I have created a simple activity with a chronometer widget just to display 
 the elapsed time.
 The code is really simple:

 //Initiate the chronometer base time
 chChronometer.setBase(SystemClock.elapsedRealtime());
 //start the chronometer
 chChronometer.start();

 The time displayed lags hard against other chronometers, what can be 
 visible within less than one minute. 
 The device I´m testing on is a Galaxy Nexus running 4.1.2
 My references for comparison are a Nexus 7 running 4.2 (standard 
 stopwatch, not an app), 2 real watches

 Is this a known issue? Are there any other steps I should take to make 
 things go right?

 Thanks,
 Gabriel Simões


On Saturday, November 17, 2012 11:58:20 AM UTC-2, Gabriel Simões wrote:

 Hello,

 I have created a simple activity with a chronometer widget just to display 
 the elapsed time.
 The code is really simple:

 //Initiate the chronometer base time
 chChronometer.setBase(SystemClock.elapsedRealtime());
 //start the chronometer
 chChronometer.start();

 The time displayed lags hard against other chronometers, what can be 
 visible within less than one minute. 
 The device I´m testing on is a Galaxy Nexus running 4.1.2
 My references for comparison are a Nexus 7 running 4.2 (standard 
 stopwatch, not an app), 2 real watches

 Is this a known issue? Are there any other steps I should take to make 
 things go right?

 Thanks,
 Gabriel Simões


-- 
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] ffmpeg converted video not working on default player

2012-11-19 Thread Narendra Singh Rathore
Hi all,

I have successfully converted a sequence of images into a video (.mp4
format) using ffmpeg.
But, there came an issue while playing them in device's default player,
whereas, if I use another player, it works fine.

Please suggest me, what may be the reason behind this, as well as how can I
be able to get rid off this problem.


Thanks  Regards,
NSR

-- 
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: ffmpeg converted video not working on default player

2012-11-19 Thread skink


Narendra Singh Rathore wrote:
 Hi all,

 I have successfully converted a sequence of images into a video (.mp4
 format) using ffmpeg.
 But, there came an issue while playing them in device's default player,
 whereas, if I use another player, it works fine.

 Please suggest me, what may be the reason behind this, as well as how can I
 be able to get rid off this problem.


 Thanks  Regards,
 NSR

if your google is working try googling for: ffmpeg android convert

pskink

-- 
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] adb tcpip howto

2012-11-19 Thread schurma
I would like to connect to my device via adb tcpip but am not able.  The few 
instructions I have read say the easy way is to connect via usb adb shell and 
configure tcpip from there.  I want to skip connecting via usb but have been 
unsuccessful in my attempts.  I used setprop via terminal emulator on my device 
per instructions but connection from my computer is unsuccessful and the open 
port  is not listed by netstat on my device.  I've tried the commands with 
su with equally unsuccessful results.  Can anyone shed some light on a solution?

-- 
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: 2012 october payout report

2012-11-19 Thread Pent
Don't see mine.

Then again, you start expecting them to be late after a while.

Finally, you remember it's the same company that runs Play Store and
everything just kindof fits.

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


Re: [android-developers] Re: Problem Searching the Array in a Spinner

2012-11-19 Thread Mark Phillips
The screen with the temperature spinner is an edit screen which is filled
at run time with the data the user entered in a previous session. The data
will eventually come from a cursor/sqlite database, but for now as I work
on the ui, I am simulating the app with sample data using string arrays and
simple array adapters. I have some helper methods in a static class that
provided the data in the form of arrays to the app (ie as a  standin for
the db backend until the db is stable). I guess I can wait to solve this
problem when I get to the cursor/sqlite integration phase, and just change
my sample data to hold the index instead of the actual string value.

The heart of my question is if there is another way to search the
arrayadapter for formatted strings.

Thanks,

Mark

On Mon, Nov 19, 2012 at 2:08 AM, skink psk...@gmail.com wrote:



 Mark Phillips wrote:
  Any suggestions on how to set the value of the spinner index by searching
  the strings in the spinner array?

 why would you do that?

 why not simply:

 // set C deg
 s.setSelection(0)
 // set F deg
 s.setSelection(1)
 // set K deg
 s.setSelection(2)

 pskink

 --
 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] Rating Bar bug?

2012-11-19 Thread Παύλος-Πέτρος Τουρνάρης
Hello guys. I have implemented a rating bar in one of my activities and
added 5 stars to it. Although i tried that programmatically and through the
XML nothing seems to work right. Both  ways show only 4,5 stars. The rating
bar's width is wrap_content as it must be and also i treid to put the
rating bar inside a linear layout that would contain only the bar. The
layout also had wrap_content value in its layout_width attribute.

Any other workarounds on it maybe?


P.S. : It's not a screen size problem, i've tested it on the emulator too
with a big enough screen setting to fit more than 5 stars.

-- 
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: Video Player for MP4 and MOV

2012-11-19 Thread bob
 

I don't know.  Maybe QuickTime for Java?



On Saturday, November 17, 2012 8:07:41 AM UTC-6, CL wrote:

 Thanks.
  
 Is there any open source MOV library that I can use?
  

 On Friday, November 16, 2012 12:16:09 AM UTC+8, bob wrote:

 This class can do MP4:


 android.widget.VideoView


 I doubt it will do MOV.



 On Thursday, November 15, 2012 9:40:59 AM UTC-6, CL wrote:

 Hi all,
  
 Does it mean I should drop the idea on developing it for Android?
  
 Cheers!
  

 On Wednesday, November 14, 2012 10:42:38 PM UTC+8, CL wrote:

 Dear Experts, 
  
 I am thinking of developing my own Video Player for MP4 and MOV files.
 Wonder where are the good resources to perform this task.
  
 Are there any alternatives other than VLC?
  
 Thanks!
  
 CL



-- 
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: Problem in android google play store ?

2012-11-19 Thread bob
 

Try launching it again.



On Saturday, November 17, 2012 3:37:59 AM UTC-6, mohammed Nuhail wrote:

 hi friends...
  I have a problem with google play store in 7inch tablet. wen i launched 
 that app i got this dialog message ( Unfortunately google play store has 
 stopped ) . please help me out with it...
 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: How to Display the Images as 180 degrees and 360 degrees with scrolling facilities in Android?

2012-11-19 Thread bob
 

I would place the user inside a sky cube and texture map the cube.



On Monday, November 19, 2012 5:39:48 AM UTC-6, Ganesh Vadlakonda wrote:

 Hi All,

 I am working on Android ,
 My intention is that I am getting images like 180 degrees,and 360 degrees 
 panoramic images .
 I would like to show those images in android Activity fragments with 
 providing scrolling and moving facilities to the user.
 Can any one suggest me how to implement .
 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: How to record multimedia audio

2012-11-19 Thread bob
 

To record only the piano audio, don't sing while recording.



On Monday, November 19, 2012 6:24:30 AM UTC-6, Meloy Común wrote:

 Hello, I apologize for my English first.

 I am developing an android piano.
 I wonder how I can record the sounds that occurs when i touch the keys of 
 the piano.
 I explain it:

 I load the sounds:

 private void chargeSounds() {
 this.soundPool = new SoundPool(12, AudioManager.STREAM_MUSIC, 0);
 this.soundPool.
 setOnLoadCompleteListener(new OnLoadCompleteListener() {

 @Override
 public void onLoadComplete(SoundPool soundPool, int sampleId,
 int status) {
 MainActivity.this.loaded = true;
 }
 });

 this.soundID[0] = soundPool.load(this, R.raw.dob, 1);
 this.soundID[1] = soundPool.load(this, R.raw.rebbem, 1);
 this.soundID[2] = soundPool.load(this, R.raw.reb, 1);
 this.soundID[3] = soundPool.load(this, R.raw.mibbem, 1);
 ..
 .

 Then, to record audio i have a button that launches myRecord:

 public void myRecord(View view) {
 mediaRecorder = new MediaRecorder();
 // Create folder if no exists
 File file = new File(Environment.getExternalStorageDirectory()
 .getAbsolutePath() + /folder);
 if (!file.exists())
 file.mkdirs();
 mediaRecorder.setOutputFile(file + /audio1.3gp);
 mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
 
 mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
 
 mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
 try {
 mediaRecorder.prepare();
 } catch (IOException e) {
 Log.e(Record, Fail to record: + e.getMessage());
 Toast toast = Toast.makeText(getApplicationContext(),
 e.getMessage(), Toast.LENGTH_LONG);
 toast.show();
 }
 mediaRecorder.start();
 this.btnGrabar.setBackgroundResource(R.drawable.record_on);
 }
 }

 With this code i can record the piano music and my voice, but i only what 
 to record piano audio.
 Is there any way to record only the sound of the piano without voice?

 I have tried to set grabar function like:
  mediaRecorder.setAudioSource(AudioManager.STREAM_MUSIC); instead of: 
 mediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); but it 
 blocks the app.
 Any suggestions?

 Thank you and Again apologies for my English.





-- 
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] Getting WiFi power transmisson

2012-11-19 Thread Amer Sabah
Hi all,

I have a question about WiFi P2P, is there any way to get the WiFi power 
transmission? SDK? NDK?

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: Get access to the transmit power when using the wifi tethering

2012-11-19 Thread Amer Sabah
Hi,

Actually I want to get the power transmission in Android, is there any way 
to do that. Please let me know if you have one.

I look forward to hearing from you,
Amer

On Wednesday, 18 April 2012 16:29:14 UTC+3, Jibin Ou wrote:

 Hello, is anybody familiar with the wifi tethering? Actually, I want to 
 get access to the transmit power of the wifi tethering signal. As far as I 
 know, the transmit power is able to be changed in part of devices. 

 I just want a way to get access to the current value of the transmit 
 power. Then I can use this value to estimate the distance between the 
 signal`s origin and the receiver. 

 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] Re: How to implement DUKPT encryption decryption in Java/Android?

2012-11-19 Thread Arne
Hi

Did you get a reply on this? Its more than a year since you answered.. 
Anyway, I just found it..

If you are going to use DUKPT for financial transactions involving visa/mc 
cards, then I dont think you will be able to PCI certify your device.
The DUKPT functionality must be implemented in a protected crypto module.. 
But I guess you already know this.

Anyway, implementing DUKPT in java is possible, I suggest you buy the 
specifications (ANS X9.24-2009 or later),
 it shows with pseudo code how to implement the basics of DUKPT.

I have implemented DUKPT myself in C, both the host part and the PED part. 
(It's a difference because the HOST have the Base Derivation Key while the 
PED does not.. And also, the PED should never store the initial key, only 
the future keys )


Arne


kl. 06:26:21 UTC+1 mandag 21. februar 2011 skrev Sivalingaraja følgende:

 Hi friends/experts, 

 I need to implement DUKPT encryption  decryption in Java/Android. 

 I have studied the reference and understand somewhat. I searched any 
 any tutorial with sample code in Java to implement but I have not got 
 any sample. 

 Can anybody know how to implement this in Java. 

 Any help or suggestion will be helpful for me. 

 Thanks in advance 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] Re: adt-bundle-windows download from developer.android.com

2012-11-19 Thread GarethK
I was getting this too. Now the link gives a 404, so I guess they are 
working on an update?

On Thursday, November 15, 2012 5:34:52 PM UTC-5, john brown wrote:

 Hello,

 I downloaded the Android Developer Tools (adt-bundle-windows.zip) from 
 developer.android.com today. I followed the directions Setting Up the 
 ADT Bundle. It was simple download and un-zip although it does take a 
 while.

 When I run c:\mydir\adt-bundle-windows\eclipse\eclipse.exe, I get the 
 following
 Error: c:\mydir\adt-bundle-windows\eclipse\eclipse.exe is not a valid 
 Win32 application

 The computer is a Win XP. I could not find any specifications about the 
 Eclipse version on developer.android.com.

 Any suggestion would be appreciated. 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] how to connect Android with MySQL ?

2012-11-19 Thread hown




This code how to apply ?

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;

public class DB {

private static final String url = “jdbc:mysql://localhost/android”;
private static final String user = “root”;
private static final String password = “MySql Password”;

public static void main(String args[]) {

try {
Class.forName(“com.mysql.jdbc.Driver”);
Connection con = DriverManager.getConnection(url, user, password);
System.out.println(“Success”);
Statement st = con.createStatement();
ResultSet rs = st.executeQuery(“select * from User”);
while(rs.next()) {
System.out.println(“Id ” + rs.getInt(1));
System.out.println(“Data ” + rs.getString(2));
}

} catch (Exception e) {
e.printStackTrace();
}
}
}

-- 
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] Play video and audio (hml5) on web page column mode

2012-11-19 Thread Adnan Aidi


Hello,

I'm a problem in my webView app, can not play a video or/and audio with 
video, audio tag on a web page column mode (-webkit-column). 

When the tag is positioned on the second column and beyond in web page, 
impossible to read the video or audio. 

The log error reported by android device :  MediaPlayer error (1, 
-2147483648)

Device Test : Tablet Sony S (Android 4.0.3 release 1a) 

-- 
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] Not all resources are being added to my apk file.

2012-11-19 Thread Alex Foreman
Hi,
I feel like I have been banging my head into a wall trying to get this to 
work so I am here for help.

I have a project which has a few dependencies as *.jars and also native 
code, specifically armeabi .so files which I have placed in a 'libs' dir.

When I compile the build system detects my jars and compiles them in and 
creates the apk.  The .so files are _not_ included however and althoguh I 
can see references to a natives dir under libs in the source files this is 
never touched.  I have also noticed that properties files in my *.jar 
dependencies are not added to the apk.

How do I get these native .so files added to my apk and how do I get the 
android build system to include resources from *.jar dependencies along 
side the compiled in *.class files.

I basically created a new project with the android tool and copied my 
source / dependencies / res etc into that dir structure.
I was under the impression that the libs dir should be picked up and used 
correctly but it is not.

I am using the latest SDK.

Many thanks in advance.  I really need to get this working soon. :(

-- 
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] need client-server example

2012-11-19 Thread Mohd Arshi Khan
hello


   1. I need a client server example,
   2. I am using eclipse and i have tomcat7.0 and wamp server in my PC,
   3. I have a device (samsung mobile) that i want to use as server/client
   and emulator(AVD) as client/server.
   4. How to create a server side app in eclipse? please explain with all
   steps.
   5. How test / run app?

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

Re: [android-developers] Re: Get the calling thread's id

2012-11-19 Thread Arun Kumar K
hi all,
i have doubt.i want to minimize and maximize the layout it is possible in
android mobile phones.And how to re-size the layout during the run time.i
m beginner for the android


On Mon, Nov 19, 2012 at 4:08 PM, Johan Appelgren
johan.appelg...@gmail.comwrote:

 You can get the thread id using Thread.getId()
 http://developer.android.com/reference/java/lang/Thread.html#getId()

 On Monday, November 19, 2012 10:14:27 AM UTC+1, AndroidCompile wrote:

 Hi,
 Is it possible to retrieve the id of a thread that called a certain
 function? (assuming this function can be called from several threads)
 I know that it is possible to ask a Binder object which Process had
 called it, but is it also possible with threads from the same process?

 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




-- 
*Thanks  Regards*
*K.Arun Kumar*

-- 
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] onShowCustomiew callback not called in ICS - please suggest workaround.

2012-11-19 Thread windwaker

 I have an app that plays videos from public sites through a VideoView 
inside a WebView. I need the VideoView object to get the video Uri to 
store. Before ICS the following codeused to work fine.

 @Overridepublic void onShowCustomView(final View view, final 
CustomViewCallback callback) {
super.onShowCustomView(view, callback);

if (view instanceof FrameLayout) {
final FrameLayout frame = (FrameLayout) view;
if (frame.getFocusedChild() instanceof VideoView) {
// get video view

video = (VideoView) frame.getFocusedChild();
}
}}

  Now unfortunately in ICS whenever a video is played inline (i.e. not in 
fullscreen mode) the onShwoCustomView is not called 
 This is documented here http://code.google.com/p/android/issues/detail?id=36020
 
 Now I am  searching high and low for an alternative to get a callback when the 
video is playing inline.
 I checked the HTML5VideoViewProxy.java and HTML5VideoView.java and found that 
onShwoCustomView is called only from HTML5FullScreenVideo.java
 I am now totally at a loss on how to proceed. 

 If I can manage to get a callback when the video starts paying then I can at 
least try and get the path Uri maybe through reflection.

 Also searching around somebody suggested that a *JNI plugin can be registered 
to get the video playback event*. 
 I don't have much idea on this can anybody validate if it is possible to get 
the video uri path using JNI?

 Is there any other work around?

 Any help 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] Data Transfer pause and resume.

2012-11-19 Thread Abdul Rahman
I am receiving sensor data from hardware side. Now i want to receive it, so 
in case if connection fails, is it possible to receive from where it cuts? 
I want to know its possible or 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] Re: Convert a view (layout) to a Bitmap

2012-11-19 Thread Streets Of Boston
I'm not sure if this will work in your situation, but try 
calling setWillNotCacheDrawing this on the View 'l' as well:

boolean drawsCache = l.willNotCacheDrawing();
l.setWillNotCacheDrawing(false);
Bitmap dragPicture = Bitmap.createBitmap(l.getDrawingCache());
l.setWillNotCacheDrawing(drawsCache);

On Monday, November 17, 2008 5:34:07 AM UTC-5, Jose Cortes wrote:

 Hello everybody. 

 I am working with OpenGL and Android, and I was wondering if there is 
 any way to create a Bitmap or a Drawable using a view (layout). The 
 purpose is to use this Bitmap as Texture for an OpenGL figure. 

 All I have untill now is: 

 ** I create a new view from the context and the Id. 

 View l = new View(context); 

 l.findViewById(R.layout.main); 

 ** I used DrawingCache...but dont know if it is well used: 

 l.setDrawingCacheEnabled(true); 

 Bitmap bmp = l.getDrawingCache(); 

 this bmp is null... 


 Any idea? 

 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] App Update - Why data files got deleted?

2012-11-19 Thread Beware Mobile
Hi,

I'm developing an Android app. The thing is: I've already a version at the 
Google Play store, that downloads a bunch of images at the app folder 
(.../Android/data/appnamespace/files). Then if update the app with a 
signed version, it deletes all the files in that directory...! This 
behavior just happens in some phones, I don't have any code regarding file 
deletion :/

So my question is:

Is there any way the system will erase app data files on update? (because I 
don't want it to...)

-- 
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: adt-bundle-windows download from developer.android.com

2012-11-19 Thread beeedoh
Same here.

WTF?

On Thursday, November 15, 2012 5:34:52 PM UTC-5, john brown wrote:

 Hello,

 I downloaded the Android Developer Tools (adt-bundle-windows.zip) from 
 developer.android.com today. I followed the directions Setting Up the 
 ADT Bundle. It was simple download and un-zip although it does take a 
 while.

 When I run c:\mydir\adt-bundle-windows\eclipse\eclipse.exe, I get the 
 following
 Error: c:\mydir\adt-bundle-windows\eclipse\eclipse.exe is not a valid 
 Win32 application

 The computer is a Win XP. I could not find any specifications about the 
 Eclipse version on developer.android.com.

 Any suggestion would be appreciated. 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] plz

2012-11-19 Thread ชุติมา ดวงเพชร
I want to souce code android google maps and GPS.

-- 
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] Not all resources are being added to my apk file.

2012-11-19 Thread Mark Murphy
On Mon, Nov 19, 2012 at 7:44 AM, Alex Foreman alexdfore...@gmail.com wrote:
 I have a project which has a few dependencies as *.jars and also native
 code, specifically armeabi .so files which I have placed in a 'libs' dir.

armeabi .so files go in libs/armeabi/, not libs/.

-- 
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 Android Development_ Version 4.3 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


[android-developers] Re: In eclipse-Android 4.2-Unable to build: the file dx.jar was not loaded from the SDK folder!

2012-11-19 Thread Bhavya V
   I have solved this problem by updating by platform tools. 

On Thursday, November 15, 2012 12:14:27 PM UTC+5:30, Ram wrote:

 I have updated Android 4.2 SDK using SDK Manager and 
 ADT 21.0.0.v201210310015-519525 in Eclipse(Indigo).

 I have created a New project,build and try to run this. I got error as 

 [2012-11-15 11:38:19 - MyApp] Unknown error: Unable to build: the file 
 dx.jar was not loaded from the SDK folder!

 How to solve this issue? I have googled lot.But i am not found any correct 
 way to solve this issue. I have clean project and tried,that also not works.

 - 
 BY

 R.RAMPRASAD

  

-- 
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: Releasing pre-loaded resources

2012-11-19 Thread Brad Lang
I'm interested in this as well.  Anyone here have any experience with this?

On Thursday, November 8, 2012 12:51:47 PM UTC-6, cjuillard wrote:

 I'm creating a very memory intensive game 3D game for Android that is 
 using all OpenGL UI. I've been trying to cut down on memory usage wherever 
 I can, and looking at a heap dump of my app I found that there is ~5Mb of 
 Android pre-loaded resources. Looking at the dominator tree in Eclipse MAT, 
 this memory is stored in android.content.res.Resources.  

 My question is whether there is any way to clear a part of or all of this 
 memory since I'm not using Android's UI framework. 


-- 
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] Invoke touch event on home screen given X and Y coordinates

2012-11-19 Thread bibhas
Hi guys,
I am very new to android development.
I want to invoke a touch event on the homescreen from my activity,
given the X and Y co-ordinates.
I have tried the dispatchTouchEvent, but it seems to work only on the
activities that I have created.

Is it possible to do what I want? Any help would 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] Transparent image with shadow on android screen

2012-11-19 Thread bright
 
I created a transparent image using GIMP, and used it as Android apk icon. 
But when I installed the apk on my Galaxy S3, there is a shadow when 
display the icon on my screen. I attached the image in this post. My apk is 
on the first row, it has global sphere in it.  As you can see, it has 
shadow in four corners. 

Please noticed that other apks' icons are ok, as in the second row. Also my 
icon displayed ok on Android emulator.

I searched around for a while, but couldn't find reason. If anyone can 
help, I really appreciate it.

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=enattachment: P1030055.JPG

Re: [android-developers] You need to enter a valid Youtube address.

2012-11-19 Thread Keith Wiley


On Monday, November 19, 2012 3:13:32 AM UTC-8, TreKing wrote:


 Does this occur on both the old console and the new version they're 
 working on?


That's an excellent question.  Unfortunately, I can't test it.  When I 
revert to the old system I can't see the new app I am preparing at 
all...which is presumably because it is not published yet but rather in the 
app-preparation mode which the new system offers.  I can see how that 
might be related to my original problem...but I'm not sure what to do.  I 
certainly don't want to make a second and duplicate app in the old 
system...at least not without deleting the version in the new system.

Ugh.

-- 
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] Convert a view (layout) to a Bitmap

2012-11-19 Thread Streets Of Boston
Hi Justin,

While I do agree that people should not post/answer just anything that they 
have no clue about, you may want to put your foot into your mouth when you 
realize who Romain is :-)

On Saturday, November 17, 2012 3:18:27 PM UTC-5, Justin Buser wrote:

 I don't understand why I keep finding different posts by you 
 about forcing  layout passes.  The View instance this person is referring 
 would never go through a layout pass, regardless of the point at which his 
 code was executed for several reasons, most notably because it's never even 
 added to the display list. Additionally, even if it *was* added to the 
 Window correctly, calling layout() would not force the layout, you would 
 call forceLayout() for that but even that would be pointless because the 
 View doesn't have a layout assigned to it or even have anything to layout 
 in the first place.

 The truly aggravating thing however is the fact that neither the question 
 itself, nor the *actual* answer ever have anything to do with forcing 
 layouts. Do you understand that when other people come across 
 invalid/irrelevant information like this and believe it (if not because you 
 claim to be a developer then simply because they don't know any better) 
 then it's no longer a forgivable case of simply being wrong about 
 something. At that point you are responsible for every adverse reaction 
 your bad information results in. Every application crash/exception 
 thrown/hour lost/dead kitten/etc... that occurs when someone tries your 
 solution and it doesn't work is on your head.

 As a human being you should feel morally obligated to not present anything 
 as fact unless you are 100% confident that it is indeed so. At the very 
 least you should have first hand experience as it pertains to the 
 information you are providing and if not then test / verify it before hand. 
 Although each individual  failure in this may seem relatively 
 insignificant, the aggregate result will ultimately have a negative impact 
 on our evolutionary progress as a species. As far fetched as you may find 
 this to be the vast multitude of problems that threaten our very existence 
 are at some level caused by ignorance, as such it should not be taken 
 lightly at *any* level.

 On Monday, November 17, 2008 11:20:41 AM UTC-5, Romain Guy wrote:

 Hi, 

 If you do this in onCreate(), then the View didn't go through a layout 
 pass yet, so its size is null (0 by 0 pixels.) You need to either wait 
 for the first layout, or force the layout by calling layout() on the 
 View. 

 On Mon, Nov 17, 2008 at 2:34 AM, Jose Cortes jbee...@gmail.com wrote: 
  
  Hello everybody. 
  
  I am working with OpenGL and Android, and I was wondering if there is 
  any way to create a Bitmap or a Drawable using a view (layout). The 
  purpose is to use this Bitmap as Texture for an OpenGL figure. 
  
  All I have untill now is: 
  
  ** I create a new view from the context and the Id. 
  
  View l = new View(context); 
  
  l.findViewById(R.layout.main); 
  
  ** I used DrawingCache...but dont know if it is well used: 
  
  l.setDrawingCacheEnabled(true); 
  
  Bitmap bmp = l.getDrawingCache(); 
  
  this bmp is null... 
  
  
  Any idea? 
  
  Thanks 
   
  



 -- 
 Romain Guy 
 www.curious-creature.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] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2012-11-19 Thread Didier Poulain
On a Nexus 7, before 4.2, getExternalStorageDirectory() returns 
/storage/sdcard0/. On 4.2 it returns /storage/emulated/0

1 - I'm working on expansion files, and to test it, the documentation 
recommends to manually put my obb file on the device. 
But /storage/emulated/ is read-only and I can not create a '0' folder 
(which does not exists so far), thus I can not upload the file. Also 
only /storage/sdcard0/ is shared.

2 - Will obb files be properly downloaded 
into /storage/emulated/0/Android/obb folder by Google Play on Nexus 7 4.2?

-- 
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: Passing data from service to original activity?

2012-11-19 Thread Paul24
Don't know if you're still having this problem, but try this. 
http://www.websmithing.com/2011/02/01/how-to-update-the-ui-in-an-android-activity-using-data-from-a-background-service/comment-page-1/#comment-734

Your service broadcasts the data with an intent, for your main application 
to access. 
sorry if this sounds wack, but just try the turorial in the link. I had the 
same problem for 2 days and couldn't get a descent link to a solution till 
this.

On Friday, January 14, 2011 3:57:26 PM UTC+2, AntiWiggin wrote:

 Hello, I'm writing an application that keeps track of certain 
 statistics using the devices GPS (average speed, distance from the 
 last location, etc...). Now initially I just did this in my activity 
 but then I realized I would like the user to be able to turn off the 
 screen and still have the GPS keep track of these statistics. 

 My question is how can my activity retrieve this data from the 
 service?

-- 
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: Dex failed after update to new SDK Tools

2012-11-19 Thread Gili Nachum
I believe you have too many methods overall in your application and it's 
referenced JARs. Dex is limited to 64K methods.
Though it strange, you should have a similar error even before upgrading to 
ADT 21. Unless you crossed this threshold (added more code) parallel to the 
upgrade.

בתאריך יום שישי, 16 בנובמבר 2012 16:08:53 UTC+2, מאת Kaloyan Donev:

  Hello,

 I get this error: Unable to execute dex: Cannot merge new index 68602 into 
 a non-jumbo instruction!

 Anyone knows something?

 Kaloyan


-- 
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] Am I at the right place?

2012-11-19 Thread Djarn Nicholas
I'm interested in getting android on my devices, I have never done it 
before, I know programming etc.

I am looking for the best forum that is useful for people wanting to get 
the actual OS on their devices, not the APPS.

Is this the right place or can someone kindly direct me to a good spot?

-- 
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: NumberPicker doesn't get the input value from keyboard

2012-11-19 Thread dvd Franco


Hi, try this:

...

public float getNumber() { 
mInteger.clearFocus();
mDecimal.clearFocus();
float v = mInteger.getValue() + 
((float)mDecimal.getValue())/10; 
return v; 
} 

the clearfocus might solve it
On Wednesday, July 27, 2011 9:52:12 PM UTC-3, Frank wrote:

 Hi all, 

 I have a very weird problem from NumberPicker. The values input 
 through the keyboard is not recognized but the values input by the 
 +/- buttons are. The following is the source code. 

 public class NumberPickerDlg extends AlertDialog { 
 private NumberPicker mInteger; 
 private NumberPicker mDecimal; 
 public NumberPickerDlg(Context context, float val) { 
 ... 
 } 

 public float getNumber() { 
 float v = mInteger.getValue() + 
 ((float)mDecimal.getValue())/10; 
 return v; 
 } 
 } 

 //the following is how it is used. 

 final NumberPickerDlg d = new NumberPickerDlg(...); 
 d.setButton(OK, new DialogInterface.OnClickListener() { 
 public void onClick(DialogInterface dialog, int which) { 
 float val = d.getNumber(); 
  } 
 });

-- 
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: Need Advice in Syncing Data From Android Device to SQL-Server Database

2012-11-19 Thread Durgesh Kumar
Sir I am also working with a same project and I am beginner for this. Can I 
get a sample code for the same. This will help many users like me.

On Wednesday, 14 November 2012 13:10:02 UTC+5:30, Aadi Rockzz wrote:

 Hi,

 I wrote an application in android which will sync with SQL-server database 
 that is sitting on my Local Server. while testing in real device using 
 emulator it's not syncing Giving me IOException. 

 I'm new to Android Technology. what my doubt is if i install this App in 
 my android device when i have to perform sync operation by connecting the 
 device through USB. Is there any need of Application to be installed that 
 will help the device to sync data to Database.

 Please Help me to Solve this issue.

 Best Regards,
 Aadi


-- 
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] A Blind Chinese Person's Suggestion about TalkBack

2012-11-19 Thread Pokester
Hellow there. I am a blind Chinese person. Using Android
system, I find some difficulties that Chinese blind people can't deal
with. Now, Talkback can help the blind do most of  things
completely. But still, you know, there are some questions that make us
difficulty. First of all, Chinese input. That problem is the most
trouble for us.If we send a message or edit anything, we will use
character input. Talkback can't support us to do that, cause it can't
explain the words appearing on the screen. In chinese, because
different words maybe have the same pronunciation, to input character
correctly, we need TalkBack have the function that it can explain
every word we input on the screen.
On the other hand, we don't know that why TalkBack can't read
something on the screen what is the most basic function, like hanging
up. We hope the developers give some changes that we can get better
operation.
That's all. Hope for reply.
   Pokester

-- 
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: Dex failed after update to new SDK Tools

2012-11-19 Thread Gili Nachum
Try: put dex.force.jumbo=true in your project.properties and clean rebuild
https://groups.google.com/forum/?fromgroups=#!topic/adt-dev/tuLXN9GkVas

בתאריך יום שישי, 16 בנובמבר 2012 16:08:53 UTC+2, מאת Kaloyan Donev:

  Hello,

 I get this error: Unable to execute dex: Cannot merge new index 68602 into 
 a non-jumbo instruction!

 Anyone knows something?

 Kaloyan


-- 
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] WPS PIN Entry

2012-11-19 Thread Doubao
I am new to wifi on Android. In wifi setting (Jelly Bean), there is an 
option to initiate WPS Pin Entry, and then a pin will show up and can be 
entered on AP. 

So I want to know if there is a programmatic way to get this PIN and force 
the device into WPS Enrollee mode. Any idea which API I should use?

Thanks a lot

-- 
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] Cannot merge new index 65925 into a non-jumbo instruction

2012-11-19 Thread renyang fang
Hello, everyone.
I have encountered a issue, when I update ADT to rev21, then I can not 
compile my project(not all my project, but one).
Here is the error message:
Unable to execute dex: Cannot merge new index 65925 into a non-jumbo 
instruction!
Conversion to Dalvik format failed: Unable to execute dex: Cannot merge new 
index 65925 into a non-jumbo instruction!

-- 
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 play several video files without slightest delay between them?

2012-11-19 Thread Henry Grishashvili
Dear developers,

I need some conceptual help here, I have a sequence of several short video 
files, say 1 video file was split into 4 files (properly, using video 
editor). I want to play those files in my app one after another without 
even slightest delays in between. 
MediaPlayer has to do reset() and prepare() for each file, right? That's 
where the delay comes from (I believe). Is it possible to make some kind of 
pipe, get a file descriptor, feed it to MediaPlayer and just put video 
files into the other end of pipe in the sequence that you like. Then 
MediaPlayer won't have to do reset() and prepare().  Would such approach 
work?

Another possibility, would it be possible to have two MediaPlayers?  One is 
playing, the other one meanwhile is reset and prepared, then when first one 
finishes, it somehow gets invisible and the other takes over (and so on).

Please advise, which approach you think is better, and what objects you 
would use to compose such a system?

Thanks a lot
Henry

-- 
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] change to lower version..??

2012-11-19 Thread Gunjan Pathak
Can we change our android version to its lower version..

-- 
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: Your Registration to Google Play is still being processed.

2012-11-19 Thread Mindaugas Guzas
i paid on NOv 8th and now its 16th so im waiting for 8 days, google wallet 
is saying my transaction is pending. money in bank is in 'reserved' state 
and nothing happens. i dont even see the message Your Registration to 
Google Play is still being processed., when i go to console it redirects 
me to a page where i should pay for another registration

On Monday, July 16, 2012 9:20:48 AM UTC+3, elirev4 wrote:

 I registered to the Google Play Developers 24 hours ago and this message 
 Your Registration to Google Play is still being processed. is still 
 there...


 How much time will I have to wait for Google to approve my account?


-- 
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] A Blind Chinese Person's Suggestion About TalkBack

2012-11-19 Thread 曹波涛
Hellow there. I am a blind Chinese person. Using Android
system, I find some difficulties that Chinese blind people can't deal with.
Now, Talkback can help the blind do most of  things completely. But
still, you know, there are some questions that make us difficulty. First of
all, Chinese input. That problem is the most trouble for us.If we send a
message or edit anything, we will use character input. Talkback can't
support us to do that, cause it can't explain the words appearing on the
screen. In chinese, because different words maybe have the same
pronunciation, to input character correctly, we need TalkBack have the
function that it can explain every word we input on the screen.
On the other hand, we don't know that why TalkBack can't read something
on the screen what is the most basic function, like hanging up. We hope the
developers give some changes that we can get better operation.
That's all. Hope for reply.
   Pokester


-- 
曹波涛

-- 
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] Invoke touch event on home screen given X and Y coordinates

2012-11-19 Thread Mark Murphy
On Sat, Nov 17, 2012 at 11:45 PM, bibhas bibha...@gmail.com wrote:
 Hi guys,
 I am very new to android development.
 I want to invoke a touch event on the homescreen from my activity,
 given the X and Y co-ordinates.
 I have tried the dispatchTouchEvent, but it seems to work only on the
 activities that I have created.

 Is it possible to do what I want?

Fortunately, no. Apps cannot force input events upon other apps.

-- 
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 Android Development_ Version 4.3 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] plz

2012-11-19 Thread Mark Murphy
On Thu, Nov 15, 2012 at 2:36 AM, ?? ??? berryg...@gmail.com wrote:
 I want to souce code android google maps

Get a job at Google and join the appropriate team (probably the Maps
team, though it might be the Android team).

-- 
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 Android Development_ Version 4.3 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


[android-developers] Help porting ROM (netd)

2012-11-19 Thread Mino Infiesta Tsuchiya
Hello all, I'm trying to port CM9 to the s5830i, but when trying to boot, 
I've fixed all errors except this one:

[CODE]
E/NetdConnector( 1455): at java.lang.Thread.run(Thread.java:856)
E/NetdConnector( 1455): Communications error
E/NetdConnector( 1455): java.io.IOException: No such file or directory
E/NetdConnector( 1455): at 
android.net.LocalSocketImpl.connectLocal(Native Method)
E/NetdConnector( 1455): at 
android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
E/NetdConnector( 1455): at 
android.net.LocalSocket.connect(LocalSocket.java:98)
E/NetdConnector( 1455): at 
com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:119)
E/NetdConnector( 1455): at 
com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:88)
[/CODE]
I've tried replacing [I]system/bin/netd[/I] with a stock ROM from the 
s5830i, but it didn't work, and I've also tried adding this to 
[/]init.rc[/] in [I]boot.img[/I]:
[CODE]
service netd /system/bin/netd
class main
socket netd stream 0660 root system
socket dnsproxyd stream 0660 root inet
socket mdns stream 0660 root system
[/CODE]

but still no luck. Any ideas?

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: Theme.Translucent.NoTitleBar.Fullscreen and fullscreen?

2012-11-19 Thread Javier Romero
I know it's been a very lng time but was there a solution for 
this?

On Tuesday, June 1, 2010 4:10:43 PM UTC-5, Mike wrote:

 When I try to use the Theme.Translucent.NoTitleBar.Fullscreen theme 
 through xml (or code), I do not actually get a fullscreen experience. 
 From an application and activity where there is no theme set, I launch 
 an activity with Theme.Translucent.NoTitleBar.Fullscreen specified as 
 the theme.  The content will properly get a fullscreen amount of room 
 to work with, but the status bar (with signal, battery, time, etc) 
 will still be there, obscuring whatever may be at the very top of the 
 view set for my activity. I tested this both on 2.1 (emulator/device) 
 and 2.2 (emulator), with and without an application theme. 

 I have also tried setting the window flags in the onCreate of the new 
 Activity to force full screen, but have not been able to get the 
 status bar to go away. 

 When I change the theme to simply Theme.NoTitleBar.Fullscreen, the 
 status bar will animate away as the UI transitions to the activity, 
 but then I cannot seem to make the activity translucent. 

 My questions are: 
 Is Theme.Translucent.NoTitleBar.Fullscreen supposed to hide the status 
 bar? 
 Alternately is there a way to recreate the translucency that 
 Theme.Translucent.* provides, allowing me to use a theme that works in 
 fullscreen and add the translucency manually? 

 Thanks much, 
 Mike

-- 
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] turn off mic's power on smartphones!!!

2012-11-19 Thread Muslim Muslim
who can make the App that will turn off power mic. it will bee sensation 
antiapp for audition actions. some phones bugging by mic when it is not 
using! this new program must turn off mic power . if someone makes it 
please send me one copy for my idea! [image: :)]

-- 
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] Nexus OTA updates via USB storage

2012-11-19 Thread Jason Berry
The Galaxy Nexus has this awesome feature in stock recovery to apply an OTA 
update via USB storage. I used it successfully the other day to upgrade to 
4.2.
It's a worthy addition to ADB sideload. Any chance of adding this 
capability to the Nexus 7?

-- 
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] You fixed google voice, now what?

2012-11-19 Thread OxJCxO
After the recent update to 4.2, the swipe to (google now) from lock screen 
is gone. 

If you're gonna do that at least make it so whenever I say google 
regardless of what screen I am on, it can automatically open google voice 
and wait for my voice command. 
Obviously if I am calling for google, I need to ask something specific, 
like:

 Open name of program
 Check my email (which it still doesn't know how to do?)
 Repeat what you just said?
 Read this paragraph for me
 automatically respond to 2nd google after first search is done? (well 
if the first problem is addressed this wouldn't be a problem)

Does anyone feel annoyed by all the screen swiping just to get to google 
voice now?

-- 
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: Widgets size

2012-11-19 Thread Sofie Moudrá
Hi,

thank you, it seems like something I needed - but is it really safe to use? 
I have tried it on my phone and it's ok, but will it correctly calculate 
actual size of the widget for all the different types of phones? 

I need to calculate the width of the widget, because I want to draw a 
horizontal line on it.  Length of this line depends on information, which 
I'm downloading from the web. If the informaton is 100 %, the length 
should be exactly the width of the widget, if 50 %, it should end in the 
middle, if 10 %, i will display just a short line...

It seems to me like this is the only possible solution for getting the 
actual width of the widget... If you can tell me your experiences with 
using this method on different devices, I will be very grateful.

Sofie

Dne pondělí, 17. ledna 2011 18:51:42 UTC+1 Henrik Lindqvist napsal(a):

 This is how I calculate the AppWidget size: 

   protected Point getAppWidgetPixelSize (AppWidgetProviderInfo 
 appWidgetInfo, Point point) { 
 int cx = (appWidgetInfo.minWidth  + 2) / 74; 
 int cy = (appWidgetInfo.minHeight + 2) / 74; 
 float density = getResources().getDisplayMetrics().density; 
 switch (getResources().getConfiguration().orientation) { 
   case Configuration.ORIENTATION_PORTRAIT: 
 point.x = (int)( 80 * cx * density + .5f); 
 point.y = (int)(100 * cy * density + .5f); 
 return point; 
   case Configuration.ORIENTATION_LANDSCAPE: 
 point.x = (int)(106 * cx * density + .5f); 
 point.y = (int)( 74 * cy * density +.5f); 
 return point; 
   //case Configuration.ORIENTATION_SQUARE: 
   //case Configuration.ORIENTATION_UNDEFINED: 
   default: 
 throw new IllegalStateException(orientation); 
 } 
   } 



 On Jan 17, 5:54 pm, Cleverson clevers...@gmail.com wrote: 
  Hi, 
  
  I'm trying to understand how the home screen calculates how many cells 
  will be assigned to a given widget. I came across the following 
  sentence in the Android Developer Site: 
  
  Because the Home screen's layout orientation (and thus, the cell 
  sizes) can change, as a rule of thumb, you should assume the worst- 
  case cell size of 74 pixels for the height and width of a cell. 
  However, you must subtract 2 from the final dimension to account for 
  any integer rounding errors that occur in the pixel count. To find 
  your minimum width and height in density-independent pixels (dp), use 
  this formula: 
  (number of cells * 74) - 2 
  Following this formula, you should use 72 dp for a height of one cell, 
  294 dp and for a width of four cells. 
  
  What if I have a mdpi (160dpi) device whose resolution is 480x800? 
  
  In a mdpi device, each 1 dip stands for 1 pixel. So, if my widget is 
  72dip x 294dip, it would take 72px x 294px in the mdpi device. 
  As far as I cound understand, in the example above, the widget would 
  not take 4 cells in this device. The device is 480 pixels wide and 294 
  pixels would be covered by 3 cells. 
  
  Who's wrong here? The formula or my interpretation? 
  
  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] Addind an avd

2012-11-19 Thread Imri Persiado
Hello everyone,
I'm trying to add an avd but the ok button is disabled:

https://lh6.googleusercontent.com/-JpGgiP5hTzs/UKZUjKvvuhI/AAw/e6ofBRxl8FI/s1600/%D7%9C%D7%9C%D7%90+%D7%A9%D7%9D.png
Any idea why?

-- 
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 put ads in live wallpapers?

2012-11-19 Thread jitendra shah


 what was the notification duration(or how many notification does your app 
pushes around in a day) you used in your wallpaper?
I added 2 notification a day and 1 for every reboot of phone.It worked but 
still got some bad reviews...

-- 
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] Help porting ROM (netd)

2012-11-19 Thread Mark Murphy
On Sat, Nov 17, 2012 at 5:50 PM, Mino Infiesta Tsuchiya
infiest...@gmail.com wrote:
 Any ideas?

This list is for developing apps with the Android SDK. Please consult
with the CyanogenMod team for help with porting CyanogenMod.

-- 
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 Android Development_ Version 4.3 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] Read out status bar messages?

2012-11-19 Thread Sebastian Heyn
Not thinking of spy apps, but maybe an app that forwards these status 
messages to an external device via BT (like an in-car display etc)
That app could be signed by google or whatever, as I would not mind to let 
anyone look at my dirty sources ;-))


Am Dienstag, 18. September 2012 19:59:30 UTC+2 schrieb Kristopher Micinski:

 If it were, it would be a security hole, which is why I ask why you 
 want to do so, because it implies you might want to write a spy app.. 

 kris 

 On Tue, Sep 18, 2012 at 1:12 PM, BearTi mlrt...@gmail.com javascript: 
 wrote: 
  Ok, thanks... are u really sure? :-) 
  
  
  
  
  Am Dienstag, 18. September 2012 19:05:02 UTC+2 schrieb Kristopher 
 Micinski: 
  
  It is not.  Why do you want to? 
  
  kris 
  
  On Tue, Sep 18, 2012 at 12:51 PM, BearTi mlrt...@gmail.com wrote: 
   Hi, 
   
   short question: 
   
   (How) Is it possible to read out and/or delete the message in status 
 bar 
   from another 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-d...@googlegroups.com 
   To unsubscribe from this group, send email to 
   android-developers+unsubscr...@googlegroups.com javascript: 
   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-d...@googlegroups.comjavascript: 
  To unsubscribe from this group, send email to 
  android-developers+unsubscr...@googlegroups.com javascript: 
  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] Android Emulator

2012-11-19 Thread Vykes Mac
Hey how do you get the GPU Emulator to work. i tick the option to enable it 
when is setup the emulator but when i run an app it gives me an error 
saying OpenGL ES 2.0 not supported by the 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] Plugins and reflected classes

2012-11-19 Thread Juan Carlos Rabanal Villalobos
Hello everyone.

Is it possible to load classes with reflection on a separate .apk? I need 
to create some sort of plugin system in my app.

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] Remote Sound connectivity to my Android

2012-11-19 Thread kemo harsho
 

Hi guys

I have a small issue with my remote connectivity to my android, I hope you 
guys can help with, the scenario is simple and my target is to connect to 
my android remotely through my laptop while the android is connected to my 
PC in the other room through USB cable, so what I have done already is that 
am connecting the Android to the PC through a USB cable and the PC to the 
Laptop through the LAN, now am connecting Remote desktop from my laptop to 
the PC and on the PC I installed application that can connect to the 
android so I can totally see the skin of my android and control it, but the 
final thing I wish to do is to make a phone call, here I connect a 
Bluetooth to the PC and I connect the Bluetooth as free handset to the 
android it didn't totally work,

So guys as you see its interesting scenario and if we work together we can 
accomplish something really assume

Really appreciate your help, Thanks J

-- 
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] AlarmManager destroying an AppWidget

2012-11-19 Thread Mário César Mancinelli de Araújo
I add a configure/settings Activity in my AppWidget and started gotting 
some problems. At first, I didn't knew what is the cause, so I commented 
some parts of the code to figure it out. So what I've found is that the 
AlarmManager code is causing it. I already tried changing simulator's 
version, cleared the project and everything. I'm dealing with this problem 
for almost 3 days...

Here are a screen shot showing it. Note that there are 2 widgets in the 
home screen, completely different, but both are the same! I mean... Both 
are my AppWidget, they should look as the lower one, but with 2 
TextViews... The 2 ImageButtons are there, but they don't always show. :/

http://www.flickr.com/photos/76149280@N08/8169290591/in/photostream?

So, my question is: what do I have to do to make it work? Do I have to 
create a service, do I have to change same code, even use another thing 
instead of AlarmManager or what?

P.S.: I already asked on Stack Overflow ( 
http://stackoverflow.com/questions/13322168/alarmmanager-destroying-an-appwidget-android-sdk
 ), 
but noting...

Here go the codes.

* AppProviderInfo (small_widget_provider_info.xml)

?xml version=1.0 encoding=utf-8?
appwidget-provider 
xmlns:android=http://schemas.android.com/apk/res/android;
android:initialLayout=@layout/widget_layout_small
android:minHeight=40dp
android:minWidth=250dp
android:updatePeriodMillis=8640
android:configure=com.br.mcsoft.quotes.activity.SettingsActivity 
/appwidget-provider

* AppProvider (WidgetProviderSmall.java)

package com.br.mcsoft.quotes.provider;

import com.br.mcsoft.quotes.R;
import com.br.mcsoft.quotes.Adapters.DBAdapter;
import com.br.mcsoft.quotes.activity.QuoteActivity;
import com.br.mcsoft.quotes.model.Quote;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.database.SQLException;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.RemoteViews;

public class WidgetProviderSmall extends AppWidgetProvider {
private static final String TAG = WidgetProviderSmall;

public static final String URI_SCHEME = widget_provider_small;

@Override
public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) {
// super.onUpdate(context, appWidgetManager, appWidgetIds);
System.out.println(Updatando...);
final int n = appWidgetIds.length;
for (int i = 0; i  n; i++) {
System.out.println(Entrou no loop...);

// Cria o RemoteViews
RemoteViews rv = new RemoteViews(context.getPackageName(),
R.layout.widget_layout_small);

// Atualiza os dados...
try {
DBAdapter db;
db = new DBAdapter(context);
db.open();
Quote q = db.getRandomQuote();
db.close();

// Guarda o ID da citação...

Editor configEditor = context.getSharedPreferences(
QuoteWidgetSmall, 0).edit();
configEditor
.putInt(String.format(QuoteId-%d, 
appWidgetIds[i]),
q.getId());
configEditor.commit();
System.out.println(Id:  + appWidgetIds[i]);
System.out.println(Quote Id:  + q.getId());

// Verifica o tamanho e trunca o texto da citação...
String textQuote = \ + q.getQuote() + \;
if (textQuote.length()  110 + 10) {
textQuote = textQuote.substring(0, 110) + ...\ [...];
}

System.out.println(Quote:  + q.getQuote());
System.out.println(Author:  + q.getAuthor().getName());

// Seta os campos...
// rv.setTextViewText(R.id.txtWdgQuote, \ + q.getQuote() 
+
// \);
rv.setTextViewText(R.id.txtWdgQuote, textQuote);
rv.setTextViewText(R.id.txtWdgAuthor, — 
+ q.getAuthor().getName());

System.out.println(Setou os valores...);
} catch (SQLException e) {
Log.e(TAG, e.getMessage(), e);
}

// Adiciona o listener do evento do botão Next...
Intent active = new Intent(context, WidgetProviderSmall.class);
active.setAction(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
// onUpdate recebe um array de ints, então passa como array.
active.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS,
new int[] { appWidgetIds[i] });
Uri data = Uri.withAppendedPath(
Uri.parse(URI_SCHEME + 

[android-developers] Re: 2012 october payout report

2012-11-19 Thread Tomasz Kucza
I didn't get one yet. It's actually a big problem because I used it for 
taxes.  It's the only report though that has proper exchange rates. I 
managed to get the information manually though checking every day 
separately.

TK

-- 
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 emulator

2012-11-19 Thread Vykes Mac
Does anyone knows y i'm getting error: OpenGL ES 2.0 is not supported by 
device, even though i set GPU emulation on in the emulator settings

-- 
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: ProgressDialog - how to remove the numbers

2012-11-19 Thread Luca Bergesio
progressDialog.setProgressNumberFormat();

-- 
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: adt-bundle-windows download from developer.android.com

2012-11-19 Thread john brown
Update:

The next day, Nov 16, I gave up on that computer and decided to install 
eclipes and adt on another machine. On that day there was a selection for 
downloading either a 32 or a 64 bit version. I got the 32 bit and the name 
of the file was adt-bundle-windows-x86.zip. I checked the file I downloaded 
the day before and the name was adt-bundle-windows.zip with not indication 
of what version. The adt-bundle-windows-x86.zip version did install and 
run correctly. So the problem is solved. (Or else I made a mistake 
yesterday and there was versioning and I was just error prone and did not 
see it. There is evidence that I have made a mistake before)

Thanks, John Brown

On Thursday, November 15, 2012 4:34:52 PM UTC-6, john brown wrote:

 Hello,

 I downloaded the Android Developer Tools (adt-bundle-windows.zip) from 
 developer.android.com today. I followed the directions Setting Up the 
 ADT Bundle. It was simple download and un-zip although it does take a 
 while.

 When I run c:\mydir\adt-bundle-windows\eclipse\eclipse.exe, I get the 
 following
 Error: c:\mydir\adt-bundle-windows\eclipse\eclipse.exe is not a valid 
 Win32 application

 The computer is a Win XP. I could not find any specifications about the 
 Eclipse version on developer.android.com.

 Any suggestion would be appreciated. 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] Re: Help porting ROM (netd)

2012-11-19 Thread bob
 

I bet it's trying to access something like /dev/socket.



On Saturday, November 17, 2012 4:50:54 PM UTC-6, Mino Infiesta Tsuchiya 
wrote:

 Hello all, I'm trying to port CM9 to the s5830i, but when trying to boot, 
 I've fixed all errors except this one:

 [CODE]
 E/NetdConnector( 1455): at java.lang.Thread.run(Thread.java:856)
 E/NetdConnector( 1455): Communications error
 E/NetdConnector( 1455): java.io.IOException: No such file or directory
 E/NetdConnector( 1455): at 
 android.net.LocalSocketImpl.connectLocal(Native Method)
 E/NetdConnector( 1455): at 
 android.net.LocalSocketImpl.connect(LocalSocketImpl.java:238)
 E/NetdConnector( 1455): at 
 android.net.LocalSocket.connect(LocalSocket.java:98)
 E/NetdConnector( 1455): at 
 com.android.server.NativeDaemonConnector.listenToSocket(NativeDaemonConnector.java:119)
 E/NetdConnector( 1455): at 
 com.android.server.NativeDaemonConnector.run(NativeDaemonConnector.java:88)
 [/CODE]
 I've tried replacing [I]system/bin/netd[/I] with a stock ROM from the 
 s5830i, but it didn't work, and I've also tried adding this to 
 [/]init.rc[/] in [I]boot.img[/I]:
 [CODE]
 service netd /system/bin/netd
 class main
 socket netd stream 0660 root system
 socket dnsproxyd stream 0660 root inet
 socket mdns stream 0660 root system
 [/CODE]

 but still no luck. Any ideas?

 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

Re: [android-developers] Re: Problem Searching the Array in a Spinner

2012-11-19 Thread skink


Mark Phillips wrote:
 The heart of my question is if there is another way to search the
 arrayadapter for formatted strings.


sure you can: use an object returned by adapter.getItem()

pskink

-- 
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] Am I at the right place?

2012-11-19 Thread Fred Niggle
Please check out android-...@googlegroups.com.

Hope this helps,
Fred

On 16 November 2012 20:51, Djarn Nicholas dnicholas...@gmail.com wrote:

 I'm interested in getting android on my devices, I have never done it
 before, I know programming etc.

 I am looking for the best forum that is useful for people wanting to get
 the actual OS on their devices, not the APPS.

 Is this the right place or can someone kindly direct me to a good spot?

 --
 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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
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] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2012-11-19 Thread Nikolay Elenkov
On Thu, Nov 15, 2012 at 3:39 AM, Didier Poulain haddoc...@gmail.com wrote:
 On a Nexus 7, before 4.2, getExternalStorageDirectory() returns
 /storage/sdcard0/. On 4.2 it returns /storage/emulated/0

 1 - I'm working on expansion files, and to test it, the documentation
 recommends to manually put my obb file on the device. But /storage/emulated/
 is read-only and I can not create a '0' folder (which does not exists so
 far), thus I can not upload the file. Also only /storage/sdcard0/ is shared.

Use adb push foobar.obb /sdcard/ and the files will end up in the proper place.


 2 - Will obb files be properly downloaded into
 /storage/emulated/0/Android/obb folder by Google Play on Nexus 7 4.2?


Probably.

-- 
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] need client-server example

2012-11-19 Thread Fred Niggle
Not wishing to appear rude, but you'll find the answers to those question
via a simple google search: there are lots of tutorials/examples out there.

On 15 November 2012 12:41, Mohd Arshi Khan arshikha...@gmail.com wrote:

 hello


1. I need a client server example,
2. I am using eclipse and i have tomcat7.0 and wamp server in my PC,
3. I have a device (samsung mobile) that i want to use as
server/client and emulator(AVD) as client/server.
4. How to create a server side app in eclipse? please explain with all
steps.
5. How test / run app?

 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




-- 
Ubuntu Speech 
inputhttps://play.google.com/store/apps/details?id=com.nds.ubuntuspeechinputis
now available on Google Play, along with Magnetic
Door Alarm 
apphttps://play.google.com/store/apps/details?id=com.nds.magneticdooralarm
.

-- 
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] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2012-11-19 Thread David Schreiber
Hello Nikolay,

is this some bad magic? Or how should the OS relate this expansion file 
with the app? Your recommended location doesn't have any package name in 
path?

Greetings, David

Am Montag, 19. November 2012 17:58:51 UTC+1 schrieb Nikolay Elenkov:

 On Thu, Nov 15, 2012 at 3:39 AM, Didier Poulain 
 hadd...@gmail.comjavascript: 
 wrote: 
  On a Nexus 7, before 4.2, getExternalStorageDirectory() returns 
  /storage/sdcard0/. On 4.2 it returns /storage/emulated/0 
  
  1 - I'm working on expansion files, and to test it, the documentation 
  recommends to manually put my obb file on the device. But 
 /storage/emulated/ 
  is read-only and I can not create a '0' folder (which does not exists so 
  far), thus I can not upload the file. Also only /storage/sdcard0/ is 
 shared. 

 Use adb push foobar.obb /sdcard/ and the files will end up in the proper 
 place. 

  
  2 - Will obb files be properly downloaded into 
  /storage/emulated/0/Android/obb folder by Google Play on Nexus 7 4.2? 
  

 Probably. 


-- 
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] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2012-11-19 Thread David Schreiber
Hello again,

Probably you meant /sdcard/Android/obb/packagename, but this path is no 
more correct for a Nexus 7 with Android 4.2 (FYI I have the same problem at 
the moment).

Greetings

Am Montag, 19. November 2012 18:06:18 UTC+1 schrieb David Schreiber:

 Hello Nikolay,

 is this some bad magic? Or how should the OS relate this expansion file 
 with the app? Your recommended location doesn't have any package name in 
 path?

 Greetings, David

 Am Montag, 19. November 2012 17:58:51 UTC+1 schrieb Nikolay Elenkov:

 On Thu, Nov 15, 2012 at 3:39 AM, Didier Poulain hadd...@gmail.com 
 wrote: 
  On a Nexus 7, before 4.2, getExternalStorageDirectory() returns 
  /storage/sdcard0/. On 4.2 it returns /storage/emulated/0 
  
  1 - I'm working on expansion files, and to test it, the documentation 
  recommends to manually put my obb file on the device. But 
 /storage/emulated/ 
  is read-only and I can not create a '0' folder (which does not exists 
 so 
  far), thus I can not upload the file. Also only /storage/sdcard0/ is 
 shared. 

 Use adb push foobar.obb /sdcard/ and the files will end up in the proper 
 place. 

  
  2 - Will obb files be properly downloaded into 
  /storage/emulated/0/Android/obb folder by Google Play on Nexus 7 4.2? 
  

 Probably. 



-- 
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] getExternalStorageDirectory() behaves differently on Jelly Bean 4.2

2012-11-19 Thread Nikolay Elenkov
On Tue, Nov 20, 2012 at 2:08 AM, David Schreiber
flashmasterd...@gmail.com wrote:
 Hello again,

 Probably you meant /sdcard/Android/obb/packagename, but this path is no
 more correct for a Nexus 7 with Android 4.2 (FYI I have the same problem at
 the moment).

Yes, I meant the full path, as you needed. It is kind of black magic: the OS
translates direct references to the right path, so that apps that use
hard-coded
paths don't break right away. Also convenient when using the shell.

-- 
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 get events of a specific calendar from android 2.3

2012-11-19 Thread Michael Chan
Hi,

You can do that by adding a selection/selectionArgs pair that matches
CalendarContract.Events.CALENDAR_ID with the calendar id of the
specific calendar.

Search for selectionArgs in
http://developer.android.com/guide/topics/providers/calendar-provider.html
for examples.

Thanks,
Mike

On Mon, Nov 19, 2012 at 2:04 AM, Dawood Abbasi dawoodahma...@gmail.com wrote:
 i want to get events details of a specific calendar (not all calendars) from
 android 2.3
 how can i do 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

-- 
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: You need to enter a valid Youtube address.

2012-11-19 Thread Keith Wiley
I couldn't get that to work.  Did you add it using the old console system 
or the new one?

On Monday, November 19, 2012 1:08:14 AM UTC-8, Ralph Bergmann wrote:

 Am 19.11.12 09:39, schrieb Keith Wiley: 
  I also tried the youtube short URL, btw, i.e., 
  http://youtu.be/XXX . 
  http://youtu.be/KmBVrga0mGw 

 I have added this video with success 
 http://www.youtube.com/watch?v=zHirwKGEfoE 


 Ralph 


-- 
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] adt-bundle-windows-x86 (and _64) missing SDK Manager.exe and AVD Manager.exe

2012-11-19 Thread Matthew Insko
I downloaded the adt-bundle-windows.zip.  It is missing the SDK and AVD 
Manager.exe.  The documentation tells you to go to the root of the SDK 
folder and run the SDK Manager to download additional SDK.

The workaround is obvious to devs familar with the previous SDKs, go to 
sdk\tools and run android.bat  (it will launch the SDK manager) but not for 
the people this toolkit is meant for.

Any plans to fix this issue in the bundles?

-- 
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] adt-bundle-{OS} has inconsistent SDK platform location for API 17

2012-11-19 Thread Matthew Insko
The new adt-bundle-windows (and linix) have the API 17 SDK in 
platforms\android-4.2 instead of platforms\android-17.  The SDK manager 
will still download the 4.2 SDK to platforms-17 if it does not exist.
What was the reasoning behind this change?  All the other SDK still 
download in the the named folders android-+apiLevel.

-- 
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] Required: .NET Website Developer at San Jose, CA

2012-11-19 Thread Munawar Ali
Hi Friends,

Hope you are doing fine. Please let me know if you have someone with you
available for the below mentioned requirement...
Please send profiles to m...@tekenergyusa.com

*Position: .NET Website Developer*
*Location: San Jose, CA *
*Duration: 12+ Month Contract*

Interview Process with Client:  Phone  In-Person Interviews (San
Francisco/San Jose Bay Area LOCAL CANDIDATES ONLY PLEASE)

*Requirement: *.NET Website Developer

The ideal *ASP.NET/C# Web Developer* will be responsible for the design,
development, implementation, testing and supporting of the web
applications.  The Developer must have* Front End (GUI) *development of
various web controls and knowledge of specific web development platforms
and languages (*HTML, JavaScript, DHTML, XML, and XSL*). *SQL back end
development* of database application and its inherent connection devices.

The ideal candidate must have 5+ years experience as a Web Developer
developing external client facing websites. Position requires previous
experience analyzing and resolving web site problems using *ASP.net, C# and
SQL.* Candidates must be able to think on their feet, work on multiple
projects simultaneously and be able to develop a wide variety of browsers
and operating systems.


Thanks  Regards,

Munawar Ali
Technical Recruiter
TEKenergy LLC
m...@tekenergyusa.com
www.tekenergyusa.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

  1   2   >