Re: [android-developers] java.lang.nullpointerexception in ServerSocket.accept()

2012-07-10 Thread Akshay Kumar
I am getting Null Pointer Exception at s=ss.accept();  and not
IOexception .

On Mon, Jul 9, 2012 at 11:04 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Well, apparently your ServerSocket is null... Likely you are getting the
 IOException... If you hit that exception then ss would be null.

 Thanks,
 Justin Anderson
 MagouyaWare Developer
 http://sites.google.com/site/magouyaware


 On Mon, Jul 9, 2012 at 1:08 AM, Akki akshay.iitr@gmail.com wrote:

 ss


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




-- 
Akshay Kumar
B Tech 3rd year
Computer Science Engineering
IIT Roorkee

Phone: +91-9410690001
Alternative E-mail: akshaygb1...@gmail.com

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

[android-developers] .apk upgradtion

2012-07-10 Thread Rahul Kaushik
i have my first android mobile app(version 2.3.3) and i email it to the
user, he installed on his mobile and now he wants some changes in it. i
have done the desired changes am ready with updated .apk file
nothing changed in manifest file, Some Field name changes only in one
activity
Doubts
1.Before installing updated apk on his mobile,do user have to unistall
earlier apk to get new changes???
2.is this right way to upgrade apk ??

RK

-- 
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] .apk upgradtion

2012-07-10 Thread TreKing
On Tue, Jul 10, 2012 at 1:17 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 1.Before installing updated apk on his mobile,do user have to unistall
 earlier apk to get new changes???


No.


 2.is this right way to upgrade apk ??


Does it work? Then sure. It's not the normal way (i.e., via a market),
but it's a valid way.

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

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

[android-developers] Re: Gif image not display properly in android

2012-07-10 Thread Mek Rama
The .gif file format is discouraged. Consider using .png (preferred) or 
.jpg (acceptable) instead.

http://developer.android.com/guide/topics/resources/drawable-resource.html#Bitmap





On Monday, July 9, 2012 11:46:06 PM UTC+5:30, arunkumar wrote:

 Hello all,
 I have loading gif image.  i am extract frames and the use frame by frame 
 by animation. But sometimes the gif image is struck and is not animating. 
 anybody please help regarding this issue. 

 -- 
 WITH REGARDS
 ARUN KUMAR P D
 +91-9994794759

  

-- 
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: .apk upgradtion

2012-07-10 Thread Mek Rama
(*)The correct approach:
 change the version in manifest
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.mek.amr.amrradio
android:versionCode=1
android:versionName=1.1 

(*)It's not mandatory to uninstall in the device but



On Tuesday, July 10, 2012 11:47:55 AM UTC+5:30, rahul kaushik wrote:

 i have my first android mobile app(version 2.3.3) and i email it to the 
 user, he installed on his mobile and now he wants some changes in it. i 
 have done the desired changes am ready with updated .apk file 
 nothing changed in manifest file, Some Field name changes only in one 
 activity 
 Doubts
 1.Before installing updated apk on his mobile,do user have to unistall 
 earlier apk to get new changes???
 2.is this right way to upgrade apk ??

 RK


-- 
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] add and edit contact

2012-07-10 Thread Live Happy
its possible to catch the intent of add or edit contact by phone  and get
the added data, can someone help me with that please

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

[android-developers] Re: upload app to google store ..

2012-07-10 Thread ala hammad
i mean like apple how much time google need to confirm my app and upload to 
store ..
or when upload will show in store ..

On Saturday, 7 July 2012 10:42:09 UTC+3, ala hammad wrote:

 hello all ,
 i want to ask how much time need to confirm my app from google store ??


 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: java.lang.nullpointerexception in ServerSocket.accept()

2012-07-10 Thread Jonathan S
s is null because you are not assign it. 

ServiceSocket is NULL because you are assigned it in the background threads.

You need to rewrite whole thing again.

-- 
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] add and edit contact

2012-07-10 Thread Asheesh Arya
just go through this link might be it helpful for you.
http://www.pocketmagic.net/?p=1857

-- 
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] Date Picker

2012-07-10 Thread nageswara rao rajana
Hi,

How to implement Cancel button in DatePickerDialog ?

thanking you,
nagu.

-- 
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: Lock orientation once the app started?

2012-07-10 Thread Ifor
I have a biking - running app.  It will work either orientation but once 
you start proererly using it, it locks in the curent orientation.  Running 
especialy it is switching all the time without this and hard to just glance 
at as typicaly that wil cause another switch... 

On Monday, 9 July 2012 17:32:30 UTC+1, Nobu Games wrote:

 Can any of you who implemented that approach give me an example when and 
 how this is wanted or useful? I don't mean that as a criticism. I'm just 
 wondering why to give the user control over the orientation just on 
 Activity startup and not beyond.


-- 
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] Date Picker

2012-07-10 Thread arun kumar
Hai Nagu,
Refer this code snippet
dialog.setButton(DialogInterface.BUTTON_NEGATIVE,
getString(R.string.cancel), new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
   if (which == DialogInterface.BUTTON_NEGATIVE) {

  dialog.dismiss();
  onBackPressed();
   }
}
  });

On Tue, Jul 10, 2012 at 1:22 PM, nageswara rao rajana nagu.raj...@gmail.com
 wrote:

 Hi,

 How to implement Cancel button in DatePickerDialog ?

 thanking you,
 nagu.

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




-- 
WITH REGARDS
ARUN KUMAR P D
+91-9994794759

-- 
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 change WiFi direct device name on ICS WiFi direct API ?

2012-07-10 Thread Jaeyoung Soh
Hello, everyone.

I'm doing implement the some application which can communicate with
other device through WiFi direct.

First of all, I refer to below API guide.
http://developer.android.com/guide/topics/connectivity/wifip2p.html

But, I can not find how to change WiFi direct device name which my
application is installed..
I want to edit my WiFi direct device name to other device could know
this connection request is from my App!.
Is that possible ? (I mean that NOT some specific model like as
Samsung Galaxy Series , BUT ICS api level support )

Also, I wonder Is it possible to turn on WiFi direct automatically not
using WiFi setting activity invoke?

Please give a some advice :)

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] SMS ACTION_VIEW intent w/ multiple phone numbers not working on Jelly Bean (4.1)?

2012-07-10 Thread akd17


It should be straightforward to open the SMS app with a pre-populated set of 
phone numbers as shown below:

Intent i = new Intent(Intent.ACTION_VIEW, 
Uri.parse(sms:1234567890;1234543210));
i.putExtra(sms_body, hello!);

This has been working on versions 4.0 and below on a variety of devices, but 
not on 4.1 (tried with galaxy nexus as well as emulator).  Instead of the 
multiple semicolon-separated phone numbers, only one number is pre-populated in 
the SMS screen.  Anyone else aware of 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] Play Music app and widget settings.

2012-07-10 Thread apisland
I am just asking about the app Play Music, what I wanted to know about 
the app, will there be an update to the app to include widget settings for 
the play music app?  I would like to be able to set the widget to have no 
background, just text, or to simply make the background transparent.   I 
don't know about programming, but I am guessing that implementing this 
setting into the play music app would not be very difficult at all.   


Just wondering if the widget settings will be addeed to play music app on 
android.   

-- 
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: Option to unlock the boot loader for Sony Ericsson Android Gingerbread phones now available.

2012-07-10 Thread txturtle
Dear Sony - I've followed the instructions a number of times, on three 
different computers.   Each time when i enter the unlock command, with my 
code, I see three dots on the next line ... and nothing else.

fastboot seems to hang at this point.   I do not receive an error.

Any suggestions?   Neo V (MT11a) with recent FOTA ICS update.

thanks.

On Thursday, April 14, 2011 2:11:13 AM UTC-5, Carl wrote:

 Hi, 

 It is now possible to unlock the boot loader for certain series of 
 Sony Ericsson 2011 Android™ Gingerbread phones. 

 Go to http://unlockbootloader.sonyericsson.com to get instructions and 
 a key to unlock the boot loader. 

 Please note that you may void the warranty of your phone if you unlock 
 the boot loader. See your phone’s warranty statement for details. 
 More information is available on the unlock boot loader web site. 

 For any questions, Sony Ericsson will monitor this thread on Google 
 groups. However, we cannot guarantee an answer for every question 
 asked in this forum. Please remember that you are unlocking the boot 
 loader at your own risk. 

 Br, 
 Carl Johansson 
 Sony Ericsson Developer World 


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

2012-07-10 Thread Addy
Hi there,

I build an application in dreamweaver cs6 with the help of phonegap, it 
gives me the apk file but when im trying to upload this .apk file on google 
play it gives me the following error.

Google Play does not accept apks signed with the debug certificate. Create 
a new certificate that is valid for at least 50 years

Please help me out to solve this issue as im a new android developer.

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] SMS intent ACTION_VIEW w/ multiple numbers not working on jelly bean (4.1)?

2012-07-10 Thread akd17
It should be straightforward to open the SMS app with the ACTION_VIEW 
intent as shown below, pre-populated with multiple recipients:

Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse
(sms:1234567890;1234543210));

i.putExtra(sms_body, hello!);

This works on versions 4.0 and below on a variety of devices, but it's not 
working on my galaxy nexus running 4.1; only a single phone number is 
populated in the SMS screen instead of all the numbers in the 
semicolon-separated list.  Anyone else aware of 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] rounded corner imageview ?

2012-07-10 Thread Alain Tavan
Hello,
I search a simple way of setting the corner radius of an imageView.
I start developing on Android and iOS.

This is really easy to do in iOS (i don't said this to feed some troll) and 
i did not found something that works for me.

Of course i found some imageview extends that enable this kind of feature.
But when i use some external libs to make asynchrone requests... well the 
placeholder is round cornered but not the image that got downloaded :(

isn't there a way to do this directly in the view XML ?

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] Reload Activity after every 2 minutes

2012-07-10 Thread Akhil

Hi,

I want to reload my activity after every 1 minute. I tried using handler 
for this... but problem is that when i press back key of device, it doesn't 
stop and goes into an infinite loop..

here is my code what i have done--


public class Chat extends Activity {
Handler handler;
public void onCreate(Bundle savedInstance) {
super.onCreate(savedInstance);
setContentView(R.layout.chat);
handler = new Handler();

Toast.makeText(getApplicationContext(), again, 400).show();

doTheAutoRefresh();
}

private void doTheAutoRefresh() {
handler.postDelayed(new Runnable() {
public void run() {
Intent intent = getIntent();
startActivity(intent);
finish();
//doTheAutoRefresh();
}
}, 1);

}

public void onPause(){
super.onPause();
   }
}


Thanks,
Akhil

-- 
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 modify WiFi Direct device name ?

2012-07-10 Thread Jaeyoung Soh
Hello, everyone.

I'm doing implement WiFi direct app between two Android devices with 
reference below API guide.

http://developer.android.com/guide/topics/connectivity/wifip2p.html 

I want to set the WiFi direct device name  as my wish  through the my app.
And that when my app try to connect(WifiP2pManager.connect) other Android 
device, I would like to do that device let know that connecting request is 
form my app.
For this scenario, first it should be possible - I can modify my WiFi 
direct device name.

Also, I know that some Samsung Galaxy Series support to modify WiFi direct 
settings include device name.
But I want some solution by ICS Api level for all Android ICS devices
Please let me know if there is some solution..

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] HDMI out

2012-07-10 Thread RS
Hi

I have a Android phone which has only supports Micro USB.  I will connect a 
Micro USB to HDMI converter cable to this.

Now I want to develop an app which will bring HDMI output.  Using this I 
will enable users to watch few videos in mobile to TV screen.

This is requirement given to me in my company.

Please help me with reference or source code

Thanks
RS

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

[android-developers] What are the minimum HW requirements for porting Gingerbread?

2012-07-10 Thread amitsharma
Hi,
 
I have a custom board based on the freescale I.MX 53 having keypad, 3 LCD 
screen + 2MP camera.
 
Anyhow, Can we port Android on such HW, without wifi, GPS, touchscreen?
 
BR,
Amit Sharma

-- 
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] SQLite Android Database Cursor window allocation of 2048 kb failed

2012-07-10 Thread Alexander Laderman


I have a routine that runs different queries against an SQLite database 
many times per second. After a while I would get the error

android.database.CursorWindowAllocationException: - Cursor window 
allocation of 2048 kb failed. # Open Cursors =  appear in LogCat.

I had the app log memory usage, and indeed when usage reaches a certain 
limit the I get this error, implying it runs out. My intuition tells me 
that the database engine is creating a NEW buffer (CursorWindow) every time 
I run a query, and even though I mark the .close() the cursors, neither the 
garbage collector nor SQLiteDatabase.releaseMemory() are quick enough at 
freeing memory. I think the solution may lie in forcing the database to 
always write into the same buffer, and not create new ones, but I have been 
unable to find a way to do this. I have tried instantiating my own 
CursorWindow, and tried setting it to and SQLiteCursor to no avail.

¿Any ideas?

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

[android-developers] Play Encrypt video with out generating physical copy of decrepit video.

2012-07-10 Thread alpesh moradiya
My problem is
When i decrepit Mp3 encrypt video file and give this file to videoplayer at 
that time i have to write that decrepit video in physical location because 
videoplayer don't allow accept byte array as a input because player only 
get input from physical location so, help me to play this video without 
generate physical file.

I am using AES algo for encrypt and  decrepit. 

-- 
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] Royality to Microsoft

2012-07-10 Thread amitsharma
I am developing a Android device based on the freescale I.MX 53.
 
Do we need to pay microsoft royality fee before launching to the market?
 
 

-- 
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] Background for EditText

2012-07-10 Thread amro alfares
hello all 
what i want to do is make an EditText with a background image 
ive tried to set a background in the xml with the background attribute , 
but the image gets bigger than the EditText 
ive also tried to use the EidtText methods like (setCompoundDrawables(left, 
top, right, bottom) ) 
but nthin worked for me 
so  any help please 
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=enattachment: 5_type-email.png

[android-developers] Minimum HW Requirement

2012-07-10 Thread amitsharma
I am using a evalution board based on freescale I.MX having  3 LCD screen, 
2MP Camera and Key buttons.
 
Anyhow, Can we port andoid on such devices without wifi, GPS, touchscreen? 
or can we port andoid on the digital camera? 

-- 
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 development issue through eclipse [ADT 20.0.0] - Graphical layout

2012-07-10 Thread vivekjain
my main.xml graphical layout is not displaying black background and icons 
and buttons that looks like in the emulator below is the screenshot of 
my graphical layout view ..in this button is not displayed rather it is 
just written as a text ..marked in red..

https://lh5.googleusercontent.com/-VKQz6FXRB94/T_pvph1EjEI/AAM/TRjofBj4Lqk/s1600/tee2.JPG

but wherever i have seen the xml graph layout looks different and simulates 
like as in the emulator

here

https://lh6.googleusercontent.com/-cjclEicuk1Y/T_pwU-2YgtI/AAU/t3v730MlyiM/s1600/te.JPG

i want it to appear like this with black bgrnd..


here is what i want it look like

https://lh3.googleusercontent.com/-iACklihf-YM/T_pwz4PpybI/AAc/n3AoxL_WUp0/s1600/context-menu-android.jpg



my specifications are :

Eclipse 3.7.2

ADT plugin 20.0.0

Target apis Android 1.6 

google apis 1.6..



-- 
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] Is it allowed to sell real products with Inapp Billing?

2012-07-10 Thread Alex
I want to sell real product (phisycally printed photos) from my app and 
wondering can I use Inapp Billing for that.
I was reading this article
http://developer.android.com/guide/google/play/billing/index.html
but it is not clear is it allowed or not.

Please advise

-- 
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] Making A Swing Speed App

2012-07-10 Thread Alex Youden
Hey,

This is more of a query to all you developers out there.

For my school project i built a Golf Swing Speedometer and it tell you your 
swing speed, however to make it more unique I though about making it into 
an App for your phone. Because you have 2 sensors (Set + Reset) You would 
time taken for the club to pass between the 2 points and you would convert 
that time into a speed using some calculations. 

So, my question to you is would it be possible to link 2 separate devices 
up to 1 Android device at the same time? So as 1 triggers, it sends a 
signal to the phone wirelessly (Bluetooth possibly, Any other methods of 
this would be greatly appreciated!) And when the second one is, again it 
sends a signal to the phone wirelessly.

If wirelessly cannot be done, could it be done via the mini-USB slot on the 
phone?

Again, im new to developing and this is a street into the development of my 
product which may be good, So if you could leave your thoughts that would 
be brilliant.

Thanks, Alex

(If you could recommend development software (Mac OSX) that would be 
greatly received)

-- 
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] Using same sqlite database from multiple Activities and Services

2012-07-10 Thread Romario


good article on the topic 
http://www.enterra-inc.com/techzone/handling_sql_issues/

-- 
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: Any Good UI books or online resource?

2012-07-10 Thread tall_dub
I wouldn't mind seeing a resource that gave actual examples of screen 
layouts and how to build them. Plenty of documentation as far as I can see 
but it's always nice to have examples for that Aha! moment. 

On Wednesday, 4 July 2012 01:54:24 UTC+1, Michael Leung wrote:

 Hi,
   I wish to improve my Android UI skills,Any Good UI books or online 
 resource you can recommend?
 Thanks!

 -- 
 Regards,
 Michael Leung
 http://www.itblogs.info - My IT Blog
 http://diary.skynovel.info - My Blog
 http://www.michaelleung.info - My Homepage
 https://play.google.com/store/apps/details?id=com.advgen.AdvNetInfoPro


  

-- 
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] Karbonn Smart Tablet1

2012-07-10 Thread ANUPAMA GRANDHI
Hi, I have got the Karbonn Smart Table1 yesterday, which has Android 4.0 
version. It has got preloaded apps like angry birds, angry birds season, 
office manager, 3g call manager...etc. Due to some issue i have opted for 
reset button. All these pre-loaded apps are disappeared after this. While I 
was trying to install these via  Google Playstore, i am getting message 
this app is not compatiable with the tab. I am just wondering if these apps 
are not compatiable how come Karbonn has given these as pre-loaded apps.

Any guidance towards installing these back through any platform will be 
definetely helpful.

Regards
Anu

-- 
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] Zoom and scroll functionality in surface view.

2012-07-10 Thread Ashwani Singh
Hi Friends,

  I am developing an scrabble word finder game. I have
implemented the surface view for Board designing. like below

public class BoardView extends SurfaceView implements
SurfaceHolder.Callback{

}

Now i want to add zoom functionality in surface view when user clicked
on view or touch.
 my whole code is below.


import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.AttributeSet;
import android.util.Log;
import android.view.Display;
import android.view.MotionEvent;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Button;
import android.widget.PopupWindow;

import com.scrabble.game.client.view.Dimensions;
import com.scrablle.game.client.model.Board;
import com.scrablle.game.client.model.GameEngine;
import com.scrablle.game.client.model.SoundManager;
import com.scrablle.game.client.model.Tile;
import com.scrablle.game.client.model.TileStack;
import com.scrablle.game.client.model.Tray;

public class BoardView extends SurfaceView implements
SurfaceHolder.Callback {

private static int BOARD_SIZE = 15;
private static final float MIN_FONT_DIPS = 10.0f;
int i1 = 0;
private static final int[] STACK_COLOR = { 0x, 0xFF2BC2AE,
0xFF2BC241, 0xFF9FA617, 0xFFC76B50 };
private Context mcontext;
private Dimensions dimensions;

private Button endTurn;

protected int defaultFontSize;

private DrawingThread thread;
public Canvas can = null;

class DrawingThread extends Thread {
private static final int TRAY_AREA = 1;
private static final int BOARD_AREA = 2;
private static final int SCORE_AREA = 3;
// private static final String STACK_MESSAGE = Tile Stack;

private boolean mRun;
private SurfaceHolder mSurfaceHolder;

private Dimensions dims;
private GameEngine ge;
private int defaultFontS;
private PopupWindow pw;

private int event;
private int eventX, eventY;
private int prevEventX, prevEventY;

private Handler mHandler;

private boolean switchMode;
// private boolean stackOpen;
private boolean tileIsMoved;
private boolean boardTileIsMoved;
private TileStack openStack;
private Tile movingTile;
private Rect[] tilesTray;

private Paint fillScorePaint;
private Paint fillTrayPaint;
private Paint fillBoardPaint;
private Paint strokePaint;
private Paint tileFillPaint;
private Paint tileStrokePaint;
private Paint tileTextPaint;
private Paint centralSquarePaint;
private Paint scorePaint;
private Paint selectedTilePaint;
private Paint underneathCellPaint;
private Paint stackPanePaint;
private Paint stackTextPaint;

private int selectedTileNum;
private int selectedBoardTileX, selectedBoardTileY;
private int movingTileX, movingTileY;

// private int topLeftX, topLeftY;

public DrawingThread(SurfaceHolder holder, Handler handler) {
mSurfaceHolder = holder;
mRun = false;
switchMode = false;
tileIsMoved = false;
boardTileIsMoved = false;
// stackOpen = false;
openStack = new TileStack();
event = eventX = eventY = -1;
prevEventX = prevEventY = -1;
selectedTileNum = -1;
selectedBoardTileX = -1;
selectedBoardTileY = -1;
movingTileX = -1;
movingTileY = -1;
// topLeftX = -1;
// topLeftY = -1;
mHandler = handler;
dims = new Dimensions();
movingTile = new Tile();
defaultFontS = (int) BoardView.MIN_FONT_DIPS;
ge = null;
tilesTray = new Rect[1];
paintInitialisation();
setFocusable(true);
}

public void setRunning(boolean b) {
mRun = b;
}

 

[android-developers] Re: transfer the incoming call to the voice mail programatically

2012-07-10 Thread amro alfares
Hello 
take a look at this : 
stackoverflowhttp://stackoverflow.com/questions/2963161/is-there-an-api-to-send-calls-to-voicemail-in-android
hope that it helps 

On Monday, July 9, 2012 10:22:25 AM UTC-7, Aashish Jawla wrote:

 hi,

 please anyone can told me how to transfer incoming call directly into the 
 voice mail. 


-- 
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] open an html5 page in chrome browser

2012-07-10 Thread atif qadri
hello,
i am making an app which : 1) starts the application by running a html 
5 page in the embedded chrome browser in the app.
 2) That uses ftp or http to 
download the file from the server based on the xml config file which it 
received from the server. 

  so , how to embed the browser in the app? making the html page and 
webview or with phonegap is done, but how can i make it open in chrome ? 
plz guide on the 2nd point also.
any help would be appreciated.
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: SQLite Issues - Database seems to be corrupt on occasions. Missing tables etc.

2012-07-10 Thread Romario


look here, probably will be helpful 
http://www.enterra-inc.com/techzone/handling_sql_issues/

-- 
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: WebView designMode doesn't work?

2012-07-10 Thread Aerik Sylvan
Another gentle bump.  Testing seems to show that design view sort of works 
- you can enter text, but no cursor shows which makes it almost impossible 
to navigate.  Also, selecting text and changing it does not work (though I 
read on stackoverflow that text selection is handled in a different android 
View so that it sort of understandable...)

-- 
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 catch the media button intent

2012-07-10 Thread Rajesh
Hi,

I wrote an android application for bluetooth headset call initiation, but 
my brodcastReceiver() is not getting the desired Intent 
action(ACTION_MEDIA_BUTTON).
Do I need to open the rfcomm channel as well? or should I handle Bluetooth 
AT commands?
Can anybody please help!

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] Change layout parameters of view after it has been drawn and has had his layout parameters setup

2012-07-10 Thread Appscend
Hy,

I have an annoying problem. At first when my fragment starts up, i set the 
layout parameters to the view that i return from the onCreateView method 
(called tempLayout - it's a FrameLayout).
This is how i do it (where x,y,width, height are given to me by the 
constructor method of the custom fragment class):
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(width, 
height);
params.leftMargin = x;
params.topMargin = y;
tempLayout.setLayoutParams(params); params = null;

After some time i want to move the view, and the only way i can think about 
doing that is by changing it's leftMargin and topMargin (which i presume 
are x,y for backwards compatibility; from API 11 we have setX and setY 
methods).
So i use the same code as above and the view doesn't change it's position, 
nor it's size.

Can you tell me what seems to be the issue here?

Thanks,
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] GPS program is not responding

2012-07-10 Thread asif naeem
I have developed an application that shows the current location in
mapview .But when i install the apk file in my device sometimes it
does respond and I have to force close the program while the other
navigator app given with the device works properly. Some times my app
runs but shows incorrect location on map while the default provided
app works properly. I  need to know what are development issues in
this that causes the problem. What type of change do I need to do in
my code. Any help and suggestion regarding this will be very helpful.
I should conclude here that my app is very simple only showing the
current location.I developed it using internet resources.
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] connectivity of android appliacation with sqllite

2012-07-10 Thread Ashu
can we connect a android application to sqlite database just like a 
connectivity of mysql to java code,,plz help me ,i am new to android

-- 
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] Google Play subscription weirdness

2012-07-10 Thread Arlo Gilbert
Has anybody else seen this?

We have a recurring monthly managed subscription for 9.99 per month as an 
in-app google play purchase.

When a user first clicks on the purchase button in our app, google play's 
interface launches as expected but it shows a price of $0.00... when the 
user clicks continue they are then prompted to add a credit card 
after that they then see the screen we would expect to see, a $9.99 per 
month subscription confirmation screen.

Besides just being really odd behavior, we also actually see these $0.00 
transactions in our Google Merchant account immediately followed by the 
9.99 transaction attempt.

Anybody else seen this? Is this just a terrible design flaw in Google play 
or are we doing something wrong on our end?

Thanks!
-A

-- 
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 add date and time to captured Image

2012-07-10 Thread android dev
HI all, I am new to android
pls help on this issue.
I have tried many things but not working , Exifinterface.

Thank you all

-- 
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] services in android

2012-07-10 Thread Ashu
can we create a service without any activity

i hav an application of email sending automatically so i made a activity 
and run it as a service when my device is switched on after booting it 
start automatically and display the ui of activity,, i dnt want dis 
ui,,what shall i do help me

i want my app should start in background without displaying ui,
how to make it service without any activity
can we make service without any activity..help me

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] GLOB sql command works slow in an specific situation

2012-07-10 Thread MHA
*i have a table (rowID, name, familyName) with at least 100.000 rows 
(SQLite) And i use this code to query my table when the text of an EditText 
changes (onTextChanged):
-
mySelectSql = Select rowID from gamtable WHERE word GLOB '  + 
searchEditText.getText().toString() + *';;
Cursor c1 = db.rawQuery(mySelectSql, null);
-
rowID is primary key, and name is indexed! this code works slow (~6000ms) 
just on the FIRST key that entered in the EditText, and works fast and very 
fast on Second, third,... etc.*
*i need to improve my code to result in First entered key as fast as second 
and third one...*
*any help on this issue?*

-- 
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] AppCache not working in WebView with loadDataWithBaseURL()

2012-07-10 Thread Andy Erickson
Greetings!  I've been stumped on a WebView AppCache problem for a while 
now.  I'm attempting to use loadDataWithBaseURL() to load literal HTML 
sourcing JS, CSS, images, and iframes into a WebView.  At the same time I 
am using the HTML5 AppCache to store this content locally.  My problem is 
that when the device is offline, no content except the HTML sourced in the 
iframe is loaded from the AppCache.  I am certain that AppCache is enabled 
and that the content is being stored in the AppCache (I poked around with 
adb shell).  I am also specifying a correct base URL.  My code resembles 
this:

public class ExampleActivity extends Activity {
  ...
  // HTML to be inserted into the WebView with loadDataWithBaseURL()
  public static final String ALL_HTML = 
!DOCTYPE htmlhtml +
headscript src='sourced_js.js' +
  onload='console.log(\sourced_js.js onload\);' +
/script +
link rel='stylesheet' href='style.css' / +   // doesn't load offline
/headbody +
iframe src='manifest.html'/iframe +// loads
img src='android.jpg' / +// doesn't load
img src='android.gif' / +// doesn't load
/body/html;

  public void onCreate(Bundle savedInstanceState) {
...
WebView webView = new WebView(content);
webView.clearCache(true);

WebSettings settings = WebView.getSettings();
settings.setAppCacheEnabled(true);
settings.setJavaScriptEnabled(true);
  
webView.loadDataWithBaseURL(http://my.website.come/path/to/content/;,
ALL_HTML, text/html, utf-8, null);
  }
}

The manifest.html file is just responsible for sourcing the manifest.  It 
looks like:

html manifest=manifest.appcache
head/head
body/body
/html

and manifest.appcache looks like:

CACHE MANIFEST

# Explicitly cached resources
# manifest.html is automatically cached
sourced_js.js
android.jpg
android.gif
style.css

NETWORK:
*

When online, all content loads.  When offline, only the iframe with 
manifest.html loads from the AppCache.  None of the images, stylesheets, or 
JavaScript in the original literal html load in the WebView from AppCache 
when the device is offline, but if I source those same contents in 
manifest.html, they DO load in the iframe.  As if these resources have to 
be sourced secondarily.

I'm positively stumped--Are there rules regarding when AppCache can be used 
with loadDataWithBaseURL()?

Thanks a ton!

Andy

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

2012-07-10 Thread Ashu
i am having an application of email sending ,i made an activity and start 
it as a service whenever i boot my device it displaying the ui screen of 
the activity,,i want to run my activity in background ,,it should not 
display after booting but should run in background

how can i make a service without any activity
i dnt want any activity

help me


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] How to open/close soft keyboard on a native Android application and extract full text without using key events?

2012-07-10 Thread aslater
Hello,

Firstly, i realise that i may be breaching group etiquette here by 
re-posting a question in this group that i've also raised in another group, 
(android-ndk), However the question does straddle both areas, (ndk and 
sdk), and i suspect there will be many on here who probably know the answer 
to this post and can offer advice and information from the sdk point of 
view. If i have breached etiquette then please accept my apologies and feel 
free to delete this post. (Though another reason for posting twice is i'm 
up against a deadline! ;)

I'm writing a Android NDK application, targeted at API 8, based on the *
hello-gl2* example and so uses a single full-screen OpenGL2.0 view, 
(extended *GLSurfaceView*).

I need to bring up the on-screen keyboard and pass the user entered text 
down to c code processing. I've managed to get this working based on this 
stackoverflow 
answer http://stackoverflow.com/a/7425536/1184595, (I don't get 
notification if the user closes the keyboard but from comments elsewhere in 
this group that seems to be the way things are. :)

All is well with this method until i switch to *Swype* or any other 
more-advanced-then-stock keyboard input manager then i rarely get the key 
events.
After reading the *KeyEvent* developer doc class overview what i'm seeing 
seems to be the expected behaviour:

 *You should never rely on receiving KeyEvents for any key on a soft input 
method.*

So i've been trying to work out a way in which to capture and/or extract 
text and i'm not having much luck.

I've got this code in my extended *GLSurfaceView *class:

  @Override
  public InputConnection onCreateInputConnection(EditorInfo outAttrs)
  {
  outAttrs.actionLabel = ;
  outAttrs.hintText = ;
  outAttrs.initialCapsMode = 0;
  outAttrs.initialSelEnd = outAttrs.initialSelStart = -1;
  outAttrs.label = ;
  outAttrs.imeOptions = EditorInfo.IME_ACTION_DONE | 
EditorInfo.IME_FLAG_NO_EXTRACT_UI;
  outAttrs.inputType = InputType.TYPE_NULL;

  return new BaseInputConnection(this, false);
  }

  @Override
  public boolean onCheckIsTextEditor()
  {
return true;
  }

And i'm calling:

  *public boolean showSoftInput(View view, int flags)*

passing in the view returned from '*getCurrentFocus*', from native code to 
display the keyboard.

Is it possible to be able to extract the text from the on-screen software 
keyboard not using the keyup event?
Is it possible to update what i've got to be able to do this or should i be 
looking at a completely different method?

Apologies for the questions, as you can tell, the non-native Java side of 
Android development is quite new to me. :)

Many thanks for any help or advice offered,
Andy

-- 
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] New preferences and PrefFragments

2012-07-10 Thread billb
I'm probably missing something straightforward, however, I cannot figure 
out how to organize my application settings/prefrences using the new 
pref_header.xml preferences now that the old method is deprecated.
 
I am trying to get the main settings screen (the first screen displayed by 
onCreate) to display a few checkboxes and two ListPreferences.
 
These are set up as:
 
 
?xml version=1.0 encoding=utf-8? 
preference-headers 
xmlns:android=http://schemas.android.com/apk/res/android; 

header 

android:fragment=com.redwagonsoftware.bonkbonk.PrefsActivity$PrefsFragment 

android:icon=@android:drawable/ic_menu_edit 
android:title=Display settings  
extra android:name=pref-resource android:value=pref_others / 

/header 

/preference-headers
 
 This works fine except that it makes the user tap one more time than is 
necessary.  The user is presented with a header that then takes them to a 
screen with the checkboxes and the two list preferences.
 
Question: If there's only one fragment is there a way to skip showing the 
header and then just show the contents of the fragment?
 
It seems as if there is no way to just show the application user settings 
without going through a header first.
 
Thanks in advance,
B.

-- 
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: GL10 access from outside of the rendering thread ...

2012-07-10 Thread boom na



Date: Sun, 1 Jul 2012 00:26:01 -0700
From: romain...@android.com
To: android-developers@googlegroups.com
CC: mmman...@wanderfulstorybooks.com
Subject: [android-developers] Re: GL10 access from outside of the rendering 
thread ...

Hi,
How exactly are you uploading the texture on that other platform? Are you 
simply doing an eglMakeCurrent() to reassign the GL context to another thread 
or are you using an EGLImage?

On Saturday, June 30, 2012 4:33:32 PM UTC-7, gl...@wanderfulstorybooks.com 
wrote:Hello,



I am optimizing an OpenGL-based application ported from that other

major mobile OS and find that I cannot successfully access the GL

context from anything other than the rendering thread of

GLSurfaceView.  What I CAN do on other platforms is upload my single

(and large) texture to GL prior to needing to render the texture

itself.  This is a 640x480 8-bit RGB texture that takes some time to

upload to the chip and needs to be done every time I realize a new

frame of animation from the background system memory buffer.  I'm sure

you can appreciate the savings in execution time if I can perform this

upload from another thread when I have nothing left to do but wait for

GLSurfaceView's rendering thread to call me.  All is synchronized

safely as evidenced by the successful release of this software using

this very same technique on that-other-platform-that-shall-not-be

named.  Things are very smooth and zippy on that platform, but Android

currently suffers by comparison.  Is there any way to do this?





Thanks



Glenn



-- 

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] Access-Control-Allow-Origin Error At Android 4.1

2012-07-10 Thread Bahadır Arslan


I have problems with Access-Control-Allow-Origin at Android 4.1

In my application i have some local HTML files and Javascripts which i was 
using to fetch data from web services. Until trying Android 4.1 there was 
no problem but after trying at Android 4.1 i got this error.

I read lots of documents but i couldn't find a way to solve this problem.

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

[android-developers] ICE CREAM SANDWICH

2012-07-10 Thread Sohom Bhowmick
I have samsung 7.7 tab. I would like to upgrade itself to 4.0 ICS. Will it 
be possible to do it.

-- 
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: Renderscript Deprecated

2012-07-10 Thread Barry O'Rourke
So how likely is it that RS compute vs. OpenCL will go same way ? Many of 
the platform and IP vendors (ARM, ZiiLabs, Intel, nvidia, Qualcomm, imgtec 
etc) are pushing OpenCL for mobile. Is this not the same situation ? 

Barry

On Saturday, June 30, 2012 11:08:15 PM UTC+1, Dave Burke wrote:

 To add a little more context to the deprecation notice (I think the choice 
 of the word experimental is a little misleading, sorry for the confusion):

 The feedback we got from internal and external app developers was that 
 they preferred to use OpenGL directly because of familiarity  portability 
 either through our Java bindings or NDK. In contrast, we do see interest in 
 the compute API of Renderscript. Hence we've decided to no longer evolve 
 the RS graphics APIs (hence deprecation notice) and instead focus on 
 building out Renderscript's GPU-compute support and developing Renderscript 
 further especially for applications such as image processing. 

 Dave

 On Saturday, June 30, 2012 2:45:17 PM UTC-7, Mark Murphy (a Commons Guy) 
 wrote:

 On Sat, Jun 30, 2012 at 5:18 PM, Romain Guy romain...@android.com 
 wrote: 
  - Renderscript Graphics has always been hardware accelerated 

 The point is that, according to the 4.1 release notes, we should no 
 longer use Renderscript Graphics: 

 https://developer.android.com/about/versions/android-4.1.html#Renderscript 

 Note: The experimental Renderscript graphics engine is now deprecated. 

 The concerns are: 

 1. Why were we not told that this was experimental at the time 
 Renderscript Graphics was announced? I see no evidence on the Web that 
 Renderscript Graphics was described as experimental. 

 2. If half a subsystem is now deprecated, why is that announcement 
 buried in release notes, rather than being called out a bit more 
 visibly? 

 At the end of the day, Google can do whatever it wants to. Personally, 
 I am just trying to figure out where the communications breakdowns 
 occurred. 

 Thanks! 

 -- 
 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 3.7 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] Why Android will always delete the calendar?

2012-07-10 Thread Roland Schumacher
I create a new calender with this code. Android 2.3.5

if(Build.VERSION.SDK_INT  14)
{
ContentValues calendar = new ContentValues();

calendar.put(_sync_account, Com2Cal);
calendar.put(_sync_account_type, LOCAL);
calendar.put(name, Com2Cal);
calendar.put(displayName, Com2Cal);
calendar.put(color, 0xFF008080);
calendar.put(access_level, 700);
calendar.put(sync_events, 1);
calendar.put(timezone, TimeZone.getDefault().getID());
calendar.put(ownerAccount, Com2Cal);
calendar.put(hidden, 0);
Uri conentUri;

if(Build.VERSION.SDK_INT = 8)
{
conentUri = 
Uri.parse(content://com.android.calendar/calendars);
}
else
{
conentUri = Uri.parse(content://calendar/calendars);
}

Uri newRow = 
context.getContentResolver().insert(createCompleteUri(conentUri), calendar);

Log.v(TAG, newRow.toString());
}
and
private static Uri createCompleteUri(Uri uri)
{
Uri.Builder b = uri.buildUpon();
b.appendQueryParameter(caller_is_syncadapter, true);
b.appendQueryParameter(account_name, Com2Cal);
b.appendQueryParameter(account_type, LOCAL);
Uri calUri = b.build();
Log.d(completeUri, calUri.toString());
return calUri;
}

The calendar was created. I see him in the calendar app. But after the 
restart, the calendar no longer exists. Why?
I add the calendar in a onClick event of a activity. I do not own 
SyncAdapter or so.

-- 
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 do I know how much cpu time I am using?

2012-07-10 Thread bsd_mike
I have a new, multi-threaded application and was wondering how I tell how 
much CPU time I am using...
especially if I am getting to the edge of using too much.

I have been playing with DDMS and with traceview, but can't put my finger 
on how much of the cpu I am using.

Is there an easy way to tell?

-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] Samsun Galaxy Tab 2 (GT-P3133) not listed in supported devices.

2012-07-10 Thread cfsdev
I have a user on a Samsun Galaxy Tab 2 (GT-P3133) running ICS and when they 
search for my app in the app store they do not see it.  This device is not 
listed in the available supported device list on the app upload.  There is 
nothing in our manifest that would stop the Tab from being supported.  Any 
ideas as to why this would be happening?  

-- 
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] Expand/Collapse doesn't work on checkable customized view

2012-07-10 Thread Bo Fu
Hello everyone,

I am working on an Android lab : 
https://sites.google.com/site/androidappcourse/labs/lab-3
but got stuck at section 3.3 which asks to expand/collapse a customized 
view when user taps the text area.

I followed the lab instruction that creates a ListView with ChoiceMode 
enabled on a relative layout. And my customized view is checkable. When I 
tap the text area, the expand button text is changing correctly, but the 
text area doesn't redraw. I am pretty sure that my expand/collapse logic is 
correct, as the expand/collapse button is working as expected requested in 
section 2.2.

After searching online, I found someone else has the exactly the same 
issue: 
http://stackoverflow.com/questions/8549397/setchecked-method-in-in-checkable-view-fires-twice-every-time-messing-with-the

Sorry for the long story. Any suggestion or help will be greatly 
appreciated.

Thanks,
Bo

-- 
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] multipart download with dynamic segmentation

2012-07-10 Thread ow1
dear all.

anyone know about multipart download with dynamic segmentation.??
or know about the journal or information about this?
i'm very need yours help...

regards Chandra.

-- 
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] 3G HTTP requests in Sleep mode and smartphone unplugged

2012-07-10 Thread bjcoredev
Hi,

My app have an UI but the user can start making HTTP polling on a
server with a customizable interval.

All is OK when the phone is not in sleep mode : (3G or wifi,background
or foreground).

But when i put the phone in sleep mode:

Using wifi:OK
Phone is charging (plugged) using 3G or wifi :OK

But when using 3G and if the phone is not charging (not plugged), it
seems that Android is blocking HTTP requests !
I can't use the USB debugging cause the phone is charging and all is
OK in this case

Any Ideas ?

Thanks

Nexus galaxy ICS 4.0.4

-- 
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] Building ApiDemos with android JB 4.1 SDK?

2012-07-10 Thread Shawn Walker
Greetings,

I'm trying to build and run the ApiDemos from the Android JellyBean 4.1 SDK.

I've been able to successfully run the very basic new android project, but 
I've had no luck with the ApiDemos from the SDK Samples.

These are the steps I followed:

1) from eclipse, file - new project - android - android sample project
2) Build Target - Android 4.1
3) ApiDemos - Finish
4) Right-Click ApiDemos Project in Package Explorer - Android Tools - Add 
Support Library
5) Accept All Licenses - Install

However, once eclipse built the project, it found 69 errors, and had 573 
warnings (obviously the build failed).

Here's a sampling of the errors:

Description Resource Path Location Type
The method getItemId(int) of type TaskAdapter must override a superclass 
method TaskListView.java 
/ApiDemos/src/com/example/android/apis/accessibility line 116 Java Problem
The method getView(int, View, ViewGroup) of type 
GameControllerInput.SummaryAdapter must override a superclass method 
GameControllerInput.java /ApiDemos/src/com/example/android/apis/view line 
444 Java Problem
The method getItem(int) of type TaskAdapter must override a superclass 
method TaskListView.java 
/ApiDemos/src/com/example/android/apis/accessibility line 111 Java Problem
The method getCount() of type TaskAdapter must override a superclass method 
TaskListView.java /ApiDemos/src/com/example/android/apis/accessibility line 
79 Java Problem
The method getView(int, View, ViewGroup) of type TaskAdapter must override 
a superclass method TaskListView.java 
/ApiDemos/src/com/example/android/apis/accessibility line 87 Java Problem
The method onCheckedChanged(CompoundButton, boolean) of type new 
CompoundButton.OnCheckedChangeListener(){} must override a superclass method 
Hover.java /ApiDemos/src/com/example/android/apis/view line 101 Java Problem
The method onActionItemClicked(ActionMode, MenuItem) of type 
OverscanActivity.IV.MyActionModeCallback must override a superclass method 
OverscanActivity.java /ApiDemos/src/com/example/android/apis/view line 93 Java 
Problem
The method compare(LoaderCustom.AppEntry, LoaderCustom.AppEntry) of type 
new ComparatorLoaderCustom.AppEntry(){} must override a superclass method 
LoaderCustom.java /ApiDemos/src/com/example/android/apis/app line 152 Java 
Problem
The method getCount() of type GameControllerInput.SummaryAdapter must 
override a superclass method GameControllerInput.java 
/ApiDemos/src/com/example/android/apis/view line 429 Java Problem
The method getItem(int) of type GameControllerInput.SummaryAdapter must 
override a superclass method GameControllerInput.java 
/ApiDemos/src/com/example/android/apis/view line 434 Java Problem
The method getItemId(int) of type GameControllerInput.SummaryAdapter must 
override a superclass method GameControllerInput.java 
/ApiDemos/src/com/example/android/apis/view line 439 Java Problem
...

What have I done wrong?

Does anyone have a proven set of steps to be able to build and run the 
ApiDemos for the JB 4.1 SDK?

-Shawn

-- 
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: GCM(Google Cloud Messaging) Implementation Error

2012-07-10 Thread Bahadır Arslan
I have the same problem, could you find the solution?

29 Haziran 2012 Cuma 16:42:35 UTC+3 tarihinde Divyang yazdı:

 I tried to integrate new GCM Google Cloud Messaging. I put the below 
 function, but it gives the error mentioned below. Any help would be 
 appreciated.

 I put the gcm.jar for client into my libs folder and provided reference to 
 it to use it in my android application.

 private void registerForGCM(){
 try {
 GCMRegistrar.checkDevice(Login.this);
 GCMRegistrar.checkManifest(Login.this);
 final String regId = 
 GCMRegistrar.getRegistrationId(Login.this);
 if (regId.equals()) {
   GCMRegistrar.register(this, SENDER_ID);
 } else {
   Log.v(GCM (Google Cloud Messaging), Already registered);
 }
 } catch (Exception e) {
 e.printStackTrace();
 }
 }

 Error:
 java.lang.NoClassDefFoundError: com/google/android/gcm/GCMRegistrar


-- 
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] Suggesting meaning to words selected by holding

2012-07-10 Thread Burak Ulutoprak
Hi,
I have a dictionary application which works fine, but you need to open the 
application and write for the word to look for meaning. 

My question is:
Is there a way to notify the application when user clicks and holds on a 
word (in a pdf document, or in message, or on any text in any application).
And by handling this event I want to show a menu item to look for the 
meaning.



-- 
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: ARM Cross Toolcain ver 2.5 that support openmp (=task parallelism) for Multicore based Android Developers

2012-07-10 Thread Bob Deng
Hi Lim,

I have download and try it,but the GCC 4.6.3 with bionic include openmp 
library can not create multi thread.
I put openmptest into my Exynos 4412 development board, only one thread is 
created.
But I put the openmptest compiled with the GCC 4.6.3 with glibc include 
openmp library into my board,it can create 4 thread.

Best Regards,
Bob Deng

Geunsik Lim於 2012年5月17日星期四UTC+8上午9時22分23秒寫道:

 Dear All, 

 We released cross toolchain to run a various experiment newly 
 using the latest GCC 4.6.3 including Openmp library. You can utilize 
 our toolchain easily and rapidly. 
 And then, We think that you can improve your existing android 
 application 
 on Multicore based Android devices easily. 

 * TITLE: 
 ARM Cross Toolcain ver 2.5 that support openmp (=task parallelism) 
 for Multicore based Android Developers 

 * Table of Contents 
  1. Who have to use this toolchain? 
  2. Definition 
  3. Technical goals 
  4. Package version information 
  5. Release history 
  6. Official License 
  7. Kandroid toolchain  installation (DOWNLOAD) 
  8. Bug Report or Contacts 
  9. How to compile C/C++ native source 


 * Detail explanation DOWNLOAD: 
   http://kandroid.org/board/board.php?board=toolchaincommand=bodyno=16 

 * References 
   Too many (with google search engine) 

 Thanks reading. 


 Geunsik Lim. 
 Core member of Kandroid.org community in South Korea 
 Senior software engineer at Samsung Electronics 

 END.

-- 
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 optimizing views for having a fast scroll

2012-07-10 Thread 伟刘
hi steve, please help me, i already registered in the mailing list, but i
could not send mail to this group for i have never received the mail i sent
.

Could you help me on this? thanks

2012/7/10 Steve steveyzh...@gmail.com

 Thanks for Garreau and other

 There is a topic that I'm interested in. I also check why cacheColorHint
 interrupt the performance.
 #00 means transparent to background, so the View must blend to back
 gourd very frame. It's terrible for performance.

 Some reference for more information:

 http://stackoverflow.com/questions/8345677/getting-black-screen-while-scrolling-in-listview-in-android

 *
 *
 On Wednesday, July 4, 2012 11:20:19 PM UTC+8, jean-francois garreau wrote:

 I finally found the source of all my GC ! it comes from my activity xml
 layout... Indeed for my expandView, I use this :

   ExpandableListView
android:id=@+id/**resultListResult
android:layout_width=fill_**parent
android:layout_height=fill_**parent
android:cacheColorHint=#**
/

 And if I remove this : android:cacheColorHint=#**  the
 animation is very smooth !

 Thanks for your help


 Le mardi 3 juillet 2012 13:23:24 UTC+2, Kostya Vasilyev a écrit :

 A custom view, assuming it's at the root of your item layout, is just as
 good as a view holder.

 Here is what you can do:

 - Override onFinishInflate in your item layout root view
 - Call this.findViewById to find children
 - Store them as member variables
 - Access in the adapter's getView, like itemView.mText1, itemView.mText2
 -- rather than doing itemView.findViewById(...)

 -- K

 2012/7/3 jean-francois garreau 
 jean.francois.garreau@gmail.**comjean.francois.garr...@gmail.com
 

 I already saw that presentation and I can't use the ViewHolder pattern
 because i need a customView.

 So I'm looking for a way to optimize my CustomView because I don't know
 what I'm doing wrong with this view that causing thoses GC

  --
 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] Exclude asset-folder at compiletime in Eclipse

2012-07-10 Thread Zohob
Hey,

I have a project which has to be compiled twice (Java+Eclipse):
one version should include assets and methods using assets, the second
one won't use them.

To disable the code dealing with assets I used a static final boolean
(I think this way even the compiler excludes the code). Now I want to
acchieve that not only the assets-code is not integrated but also the
assets-folder is excluded to save storage and to conceal that the app
had additional functionalities.

How can I do that? Just removing the assets-folder is clearly no
solution because I want to switch between those two compile modes
quickly.

Greetings, Zohob

-- 
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] Problem With SDK 20

2012-07-10 Thread Abdelali BADDAR
Hey,

I've install the Environnement of Android with SDK20 in my own laptop,and
when i want to import my old project realized with the SDK 16.that show me
a lot of errors and problems.i give you an example of error.

setContentView(R.layout.main)  when main is the xml files describing the
Main Activity.the error is it dont know the main files.it dont show main
when i pressed Ctrl+Space after R.layout.

and if i want to import my olds projects he tell me   Invalid Project
description

that the error:

Invalid project description.
  C:\Users\sensei\workspace\SimpleCalendarImp overlaps the location of
another project: 'SimpleCalendarImp'

Thanks for Your Help
-- 


Cordialement,
==
Abdelali   BADDAR
Ingénieur d'état en Informatique
à l'Ecole Nationale Supérieure d'Informatique et d'Analyse des Systèmes

Tel: (+212) 06.74.87.33.60



-- 
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-07-10 Thread Vijay Krishnan
Hi all,
 I want to know about push notifications in android.Anyone help on
this.

Thanks,
vijay.k

-- 
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: Unable to execute Bluetooth HDP Demo

2012-07-10 Thread wambin
Hi jfernandez and all.

I've had the same problem for half a year.
My device is Galaxy Nexus SC-04D ver4.0.4.
I've not solved this problem yet, in spite of half a year researches.
I gradually be sure that this is a bug of unregisterAppConfig().
Here is a report about this problem.
Google android group
http://code.google.com/p/android/issues/detail?id=26704can=1q=hdpcolspec=ID%20Type%20Status%20Owner%20Summary%20Stars

I think this is a only way to report the bug to Android API developers, 
because developer.android.com provides this forum as a Support.
So, I want you to add a star or comment to this issue, if you have the same 
problem.
And wish to be debug.

On Thursday, February 2, 2012 8:05:51 PM UTC+9, jfernandez wrote:

 Hi all, 

 I have observed a strange and undesirable behaviour that I'm going to 
 describe. When an HDP channel is stablished, the Android system starts 
 a long proccess of freeing memory (I have lots of Logcat messages like 
 dalvikm - GC_CONCURRENT freed 494K ...), even in some occasions, the 
 system crashes and the smartphone is rebooted. I don't know if this is 
 a problem of my ROM/smartphone (I'm using Android 4.0.3 ICS). Does 
 anybody has the same problem? 

 Thanks and regards! 

 On 15 dic 2011, 18:30, jfernandez jorge.fernandez.gonza...@gmail.com 
 wrote: 
  Hi all, 
  
  I'm executing the BluetoothHDPDemo [1]  (offered from Android 4.0 
  Ice Cream Sandwich) in my Android smartphone. When I have registered 
  the application in order to receive data, and I have paired the 
  biomedical device with the smartphone, I try to open the channel 
  connection and I can see that the device starts sending data to the 
  smartphone. However, the smartphone isunableto open the channel 
  connectionHDP. 
  
  At the end of this message you can see the output obtained in the 
  LogCat. 
  
  Has anybody achieved to run successfully this sample about the use of 
  the Bluetooth Health Profile API? Any ideas? 
  
  Thanks. Regards. 
  
  [1]
 http://developer.android.com/resources/samples/BluetoothHDP/index.html 
  
  This is the log that I obtain: 
  
  12-15 16:40:54.048: I/BluetoothHDPService(1105): connectChannel() 
  12-15 16:40:54.068: D/BluetoothService(147): CONNECTION_STATE_CHANGE: 
  00:80:25:14:A1:BC: 0 - 1 
  12-15 16:40:55.169: D/ConnectivityService(147): 
  handleInetConditionHoldEnd: net=1, condition=0, published condition=0 
  12-15 16:40:59.393: D/BluetoothEventLoop(147): Device property 
  changed: 00:80:25:14:A1:BC property: Connected value: true 
  12-15 16:41:00.024: D/BluetoothEventLoop(147): Health Device : 
  devicePath: /org/bluez/278/hci0/dev_00_80_25_14_A1_BC:channelPath:/org/ 
  bluez/278/hci0/dev_00_80_25_14_A1_BC/chan3115:existstrue 
  12-15 16:41:00.034: E/BluetoothService.cpp(147): 
  getChannelApplicationNative 
  12-15 16:41:00.044: E/bluetooth_common.cpp(147): 
  dbus_func_args_timeout_valist: D-Bus error in Acquire: 
  org.bluez.Error.HealthError (Cannot reconnect: MDL is not closed) 
  12-15 16:41:00.044: E/BluetoothHealthProfileHandler(147): Error 
  obtaining fd for channel:/org/bluez/278/hci0/dev_00_80_25_14_A1_BC/ 
  chan3115 
  12-15 16:41:00.074: E/BluetoothService.cpp(147): destroyChannelNative 
  12-15 16:41:00.074: E/BluetoothEventLoop.cpp(147): 
  onHealthDeviceConnectionResult: D-Bus error: 
  org.bluez.Error.HealthError (Mdl is not created) 
  12-15 16:41:00.074: D/BluetoothEventLoop(147): 
  onHealthDeviceConnectionResult 2 6001 
  12-15 16:41:00.214: D/BluetoothEventLoop(147): 
  onHealthDeviceConnectionResult 2 6000 
  12-15 16:41:00.214: D/BluetoothEventLoop(147): Health Device : Name of 
  Property is: MainChannel Value:/org/bluez/278/hci0/ 
  dev_00_80_25_14_A1_BC/chan3115

-- 
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: 3G HTTP requests in Sleep mode and smartphone unplugged

2012-07-10 Thread RichardC
What Wakelock(s) are you holding?

On Tuesday, July 10, 2012 9:53:46 AM UTC+1, bjcoredev wrote:

 Hi, 

 My app have an UI but the user can start making HTTP polling on a 
 server with a customizable interval. 

 All is OK when the phone is not in sleep mode : (3G or wifi,background 
 or foreground). 

 But when i put the phone in sleep mode: 

 Using wifi:OK 
 Phone is charging (plugged) using 3G or wifi :OK 

 But when using 3G and if the phone is not charging (not plugged), it 
 seems that Android is blocking HTTP requests ! 
 I can't use the USB debugging cause the phone is charging and all is 
 OK in this case 

 Any Ideas ? 

 Thanks 

 Nexus galaxy ICS 4.0.4 


-- 
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] Building ApiDemos with android JB 4.1 SDK?

2012-07-10 Thread Mark Murphy
Make sure your Java compiler compliance level in Eclipse is set to
1.6, not 1.5. You can find this in Project Properties, in the Java
Compiler area.

On Sun, Jul 8, 2012 at 5:47 PM, Shawn Walker binarycrusa...@gmail.com wrote:
 Greetings,

 I'm trying to build and run the ApiDemos from the Android JellyBean 4.1 SDK.

 I've been able to successfully run the very basic new android project, but
 I've had no luck with the ApiDemos from the SDK Samples.

 These are the steps I followed:

 1) from eclipse, file - new project - android - android sample project
 2) Build Target - Android 4.1
 3) ApiDemos - Finish
 4) Right-Click ApiDemos Project in Package Explorer - Android Tools - Add
 Support Library
 5) Accept All Licenses - Install

 However, once eclipse built the project, it found 69 errors, and had 573
 warnings (obviously the build failed).

 Here's a sampling of the errors:

 Description Resource Path Location Type
 The method getItemId(int) of type TaskAdapter must override a superclass
 method TaskListView.java
 /ApiDemos/src/com/example/android/apis/accessibility line 116 Java Problem
 The method getView(int, View, ViewGroup) of type
 GameControllerInput.SummaryAdapter must override a superclass method
 GameControllerInput.java /ApiDemos/src/com/example/android/apis/view line
 444 Java Problem
 The method getItem(int) of type TaskAdapter must override a superclass
 method TaskListView.java
 /ApiDemos/src/com/example/android/apis/accessibility line 111 Java Problem
 The method getCount() of type TaskAdapter must override a superclass method
 TaskListView.java /ApiDemos/src/com/example/android/apis/accessibility line
 79 Java Problem
 The method getView(int, View, ViewGroup) of type TaskAdapter must override a
 superclass method TaskListView.java
 /ApiDemos/src/com/example/android/apis/accessibility line 87 Java Problem
 The method onCheckedChanged(CompoundButton, boolean) of type new
 CompoundButton.OnCheckedChangeListener(){} must override a superclass method
 Hover.java /ApiDemos/src/com/example/android/apis/view line 101 Java Problem
 The method onActionItemClicked(ActionMode, MenuItem) of type
 OverscanActivity.IV.MyActionModeCallback must override a superclass method
 OverscanActivity.java /ApiDemos/src/com/example/android/apis/view line 93
 Java Problem
 The method compare(LoaderCustom.AppEntry, LoaderCustom.AppEntry) of type new
 ComparatorLoaderCustom.AppEntry(){} must override a superclass method
 LoaderCustom.java /ApiDemos/src/com/example/android/apis/app line 152 Java
 Problem
 The method getCount() of type GameControllerInput.SummaryAdapter must
 override a superclass method GameControllerInput.java
 /ApiDemos/src/com/example/android/apis/view line 429 Java Problem
 The method getItem(int) of type GameControllerInput.SummaryAdapter must
 override a superclass method GameControllerInput.java
 /ApiDemos/src/com/example/android/apis/view line 434 Java Problem
 The method getItemId(int) of type GameControllerInput.SummaryAdapter must
 override a superclass method GameControllerInput.java
 /ApiDemos/src/com/example/android/apis/view line 439 Java Problem
 ...

 What have I done wrong?

 Does anyone have a proven set of steps to be able to build and run the
 ApiDemos for the JB 4.1 SDK?

 -Shawn

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] ICE CREAM SANDWICH

2012-07-10 Thread Mark Murphy
This has nothing to do with this list, which is for building
applications with the Android SDK.

On Wed, Jul 4, 2012 at 2:14 PM, Sohom Bhowmick bhowmicksoh...@gmail.com wrote:
 I have samsung 7.7 tab. I would like to upgrade itself to 4.0 ICS. Will it
 be possible to do it.

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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: GCM(Google Cloud Messaging) Implementation Error

2012-07-10 Thread Mark Murphy
Try the android-gcm Google Group for GCM-related questions, as there
will be more focused assistance for you there.

On Tue, Jul 3, 2012 at 9:44 AM, Bahadır Arslan bahadirars...@gmail.com wrote:
 I have the same problem, could you find the solution?

 29 Haziran 2012 Cuma 16:42:35 UTC+3 tarihinde Divyang yazdı:

 I tried to integrate new GCM Google Cloud Messaging. I put the below
 function, but it gives the error mentioned below. Any help would be
 appreciated.

 I put the gcm.jar for client into my libs folder and provided reference to
 it to use it in my android application.

 private void registerForGCM(){
 try {
 GCMRegistrar.checkDevice(Login.this);
 GCMRegistrar.checkManifest(Login.this);
 final String regId =
 GCMRegistrar.getRegistrationId(Login.this);
 if (regId.equals()) {
   GCMRegistrar.register(this, SENDER_ID);
 } else {
   Log.v(GCM (Google Cloud Messaging), Already registered);
 }
 } catch (Exception e) {
 e.printStackTrace();
 }
 }

 Error:
 java.lang.NoClassDefFoundError: com/google/android/gcm/GCMRegistrar

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] New preferences and PrefFragments

2012-07-10 Thread Mark Murphy
On Sat, Jul 7, 2012 at 7:08 PM, billb b...@briskynet.com wrote:
 Question: If there's only one fragment is there a way to skip showing the
 header and then just show the contents of the fragment?

Not that I am aware of, other than by bypassing the headers and using
the original API.

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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Karbonn Smart Tablet1

2012-07-10 Thread raju
just rest the version or upgrad the version


On Fri, Jul 6, 2012 at 11:03 AM, ANUPAMA GRANDHI anoo1...@gmail.com wrote:

 Hi, I have got the Karbonn Smart Table1 yesterday, which has Android 4.0
 version. It has got preloaded apps like angry birds, angry birds season,
 office manager, 3g call manager...etc. Due to some issue i have opted for
 reset button. All these pre-loaded apps are disappeared after this. While I
 was trying to install these via  Google Playstore, i am getting message
 this app is not compatiable with the tab. I am just wondering if these apps
 are not compatiable how come Karbonn has given these as pre-loaded apps.

 Any guidance towards installing these back through any platform will be
 definetely helpful.

 Regards
 Anu

 --
 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] Minimum HW Requirement

2012-07-10 Thread Mark Murphy
This has nothing to do with this list, which is for developing
applications with the Android SDK.

On Tue, Jul 3, 2012 at 2:33 PM, amitsharma amit.h...@gmail.com wrote:
 I am using a evalution board based on freescale I.MX having  3 LCD screen,
 2MP Camera and Key buttons.

 Anyhow, Can we port andoid on such devices without wifi, GPS, touchscreen?
 or can we port andoid on the digital camera?

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Karbonn Smart Tablet1

2012-07-10 Thread Mark Murphy
This has nothing to do with this list, which is for developing
applications with the Android SDK. Please contact the device
manufacturer for technical support with their device.

On Fri, Jul 6, 2012 at 1:33 AM, ANUPAMA GRANDHI anoo1...@gmail.com wrote:
 Hi, I have got the Karbonn Smart Table1 yesterday, which has Android 4.0
 version. It has got preloaded apps like angry birds, angry birds season,
 office manager, 3g call manager...etc. Due to some issue i have opted for
 reset button. All these pre-loaded apps are disappeared after this. While I
 was trying to install these via  Google Playstore, i am getting message this
 app is not compatiable with the tab. I am just wondering if these apps are
 not compatiable how come Karbonn has given these as pre-loaded apps.

 Any guidance towards installing these back through any platform will be
 definetely helpful.

 Regards
 Anu

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Royality to Microsoft

2012-07-10 Thread Mark Murphy
This list is for developing applications with the Android SDK. Please
hire an attorney for your contract and licensing questions.

On Tue, Jul 3, 2012 at 2:36 PM, amitsharma amit.h...@gmail.com wrote:
 I am developing a Android device based on the freescale I.MX 53.

 Do we need to pay microsoft royality fee before launching to the market?



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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] HDMI out

2012-07-10 Thread Mark Murphy
HDMI out, if it supported by the device, is transparent to the app developer.

On Mon, Jul 2, 2012 at 10:12 AM, RS 2sdevt...@gmail.com wrote:
 Hi

 I have a Android phone which has only supports Micro USB.  I will connect a
 Micro USB to HDMI converter cable to this.

 Now I want to develop an app which will bring HDMI output.  Using this I
 will enable users to watch few videos in mobile to TV screen.

 This is requirement given to me in my company.

 Please help me with reference or source code

 Thanks
 RS

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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Gingerbread minimum hw requirements

2012-07-10 Thread Mark Murphy
This has nothing to do with this list, which is for developing
applications using the Android SDK.

On Tue, Jul 3, 2012 at 11:14 PM, amit.h...@gmail.com
amit.h...@gmail.com wrote:
 I have a custom board based on freescale i.mx 53 and having 2mp camera, 4 gb
 sd card,  3 lcd (without touch).

 can we port android to such system without wifi, bluetooth, 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



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

Android Training in DC: http://marakana.com/training/android/

-- 
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] Save Multiple Image In Android

2012-07-10 Thread Hari
I have a an image in my image view. There is a button to add several 
templates on to this image and all of them are bitmap images.

If a user had added two bitmap images on top of the base image.. how i will 
save the whole layout as a single image.. please help me

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

[android-developers] Quit the app from within the Webview

2012-07-10 Thread Jachym Kokesh Lukes
I am wondering, if there is some way of existing the app by taping on 
something within the Webview. 

My app loads mobile website into webview and acts on the outside like real 
app, but after going through the pages for thirty minutes, you must press 
the back button almost for another thirty minutes to get out of the app.

I myself don't believe, that it will be possible, but I am trying anyway. 
Any ideas?

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

[android-developers] Building location aware app

2012-07-10 Thread Ibukun Adeniyi
i want to build a location aware using google maps, but i want the 
application to be able to point to particular locations on the map that i 
put into the map, based on proximity. how can i store locations on the 
google maps api. 

-- 
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 can I configure the Refund Period when using ServerManagedPolicy () in Android LVL

2012-07-10 Thread PaulZuri

Am I able to configure values for VT, GT, GR and UT associated with a 
particular App, at the Server Side  ???

Many thanks.

Paul

-- 
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] I want to make list of all mp3 files on the android

2012-07-10 Thread Ido Magor
I am building a music player and i want to take all of the mp3 files from 
the phone (sd card and flash together) and put all of thier names in a 
listAdapter to be shown on the screen of course  so can some one write me 
the code to get all of the mp3 files absolute path and thier names ?
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] How to fix launching of my Android app against system's default PHONE app

2012-07-10 Thread Gaurav .www
I made an android app to show an attractive GUI to be displayed
whenever there is any new outgoing call or incoming call. Whenever any
broadcast signal (either NEW_OTUGOING_CALL or PHONE_STATE) is
received, my app launches, same as the Android mobile's default PHONE
app.

Sometimes my app appears on screen and sometimes the default PHONE app
appears on screen. How to fix it.. only my app should be launched to
handle incoming/outgoing calls OR my app should be on top of default
PHONE app.

Any guidance will be appreciated...and also suggest me if any other
solution is possible.

-- 
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-app billing – get price paid after successful purchase?

2012-07-10 Thread hzhao
I found a way to use 
Google Checkout XML API - Notification History 
APIhttps://developers.google.com/checkout/developer/Google_Checkout_XML_API_Notification_History_API
to get the order's detail at backend.

Try it with the orderId  you got from the notice


On Sunday, May 8, 2011 3:40:46 AM UTC+8, Rob B wrote:

 Is it possible to obtain the actual transaction cost after a 
 successful purchase occurs? The first paragraph of the In-app Billing 
 Overview page (http://developer.android.com/guide/market/billing/ 
 billing_overview.htmlhttp://developer.android.com/guide/market/billing/billing_overview.html)
  
 says When the checkout process is complete, 
 the service sends your application the purchase details, such as the 
 order number, the order date and time, and the price paid. However, 
 the JSON dict that comes with PURCHASE_STATE_CHANGED (after sending 
 GET_PURCHASE_INFORMATION to the Market) doesn't seem to include 
 anything about cash spent. 

 Additionally, it would be useful to be able to query the Market to 
 obtain all purchasable items, but it seems that others have already 
 pointed out that this doesn't exist and there's no solution but to 
 hardcode it. 

 Any help on these topics would be greatly 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] how to replace with in android or java ?

2012-07-10 Thread hari2012
hi
I am working on a project.I have stuck in a problem so please help me asap.
how to replace  with  in android or java ?
how to replace two double quotes with single double quotes  in android or 
java ?

Thanks in advance,
regards, 
hari 

-- 
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] My App isn't searchable in Google Play - Please Help -

2012-07-10 Thread Humph
Hi everyone, 
help much required, please.
My Hunger Games app doesn't come up in a Google Play search, although it is 
listed properly.
 
can anyone tell me what we're doing wrong
 
many thanks,
 
here's the app: *
https://play.google.com/store/apps/details?id=com.london.droid.HungerGamesfeature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLmxvbmRvbi5kcm9pZC5IdW5nZXJHYW1lcyJd
*https://play.google.com/store/apps/details?id=com.london.droid.HungerGamesfeature=more_from_developer#?t=W251bGwsMSwxLDEwMiwiY29tLmxvbmRvbi5kcm9pZC5IdW5nZXJHYW1lcyJd
 
Humph

-- 
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 do I sell apps from South Africa?

2012-07-10 Thread MeltdownZA
We have an upcoming title we'd like to sell via the Google Play store.
From the research I've done, it seems that we can sell apps if we are in 
South Africa.

Yet when I registered a Google Play developer account, and paid the $25, 
and I registered, South Africa is not in the list of countries I can 
register for as a developer.
What is the correct approach to take for this?

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] READ_LOGS permission is not granted to 3rd party applications in Jelly Bean (api 16)

2012-07-10 Thread Ievgenii Nazaruk
Hi all,

I've been working on an application for developers that uses 
DropBoxManager. The DropBoxManager requires READ_LOGS permission to be 
granted in order to query information from it. 

Today I've tested my application on newest (api 16) emulator before 
releasing it to Google Play. It turned out that Android now refuses to 
grant this permission to 3rd party applications. This is weird because I've 
looked through all Jelly Bean's documented changes and couldn't find 
anything that mentions READ_LOGS permission. 

So basically my questions: 

   - Did anyone see this change documented? 
   - Can someone confirm this behavior on Galaxy Nexus with Jelly Bean on 
   it (the one released to attendees of Google I/O)?
   
And questions to someone from Android team: 

   - Why this breaking change wasn't described in documentations like 
   
READ_EXTERNAL_STORAGEhttp://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGEwas?
 
   
   - What should developers and testers do in order to use those handy 
   utility applications that require READ_LOGS to be useful? Is there any way 
   to allow READ_LOGS to 3rd party applications without making custom build 
   (i.e. something in Developer Options that I could've missed)? 
   

-- 
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] Bluetooth pairing

2012-07-10 Thread hari shankar
hi

I have scan the Bluetooth device and add in list View. I want to pair the
device by android code.
pl help me

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: Intent filter to catch links from SMS doesn't work

2012-07-10 Thread Zdenek Hr
I have the same problem, have you solved it?


Dne úterý, 25. ledna 2011 14:13:02 UTC+1 Vincent napsal(a):

 Hi all, 

 I actually already asked this question on StackOverflow but I didn't 
 get any answer that could help me solve the problem. 
 Here is the thing. 

 What I want to do is to define a URI like myapp://some_data in a 
 intent filter. And when this kind of URI is met in a SMS or email, 
 clicking on it would open myapp. 
 I found on StackOverflow the way to do it. Here is my code: 

 intent-filter 
 action android:name=android.intent.action.VIEW/action 
 category android:name=android.intent.category.DEFAULT/ 
 category 
 category android:name=android.intent.category.BROWSABLE/ 
 category 
 data android:scheme=myapp/data 
 /intent-filter 

 However it does not work. Actually, if I have such a link in a SMS, it 
 is not clickable...so of course clicking on it does nothing. 
 If instead of android:scheme=myapp I am using android:scheme=http 
 it does work. When I click on the link, Android asks the user whether 
 to open it with Browser or myapp and it simply works because the link 
 is clickable (http web adress is always clickable). 

 What should I do to make my link myapp://some_data clickable in a SMS/ 
 email ? As the intent filter works with http, I guess it can work with 
 myapp as a scheme. 

 Thanks a lot. 

 Vincent

-- 
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] Opinions on using large static arrays

2012-07-10 Thread Hydde
Hi,

I'm quite new to Android and Java programming.  I'm currently designing an 
app which is supposed to utilize a medium-size database (6-7MB).  This 
database is static meaning there won't be any updates/deletes or inserts to 
it. It's basically a bulk of data.

I've been googling around and don't seem to find a solid way of integrating 
a premade DB into an app.  Most guides seem to start from an empty DB which 
builds up as the app runs.  I've only found a single solid guide on how to 
implement a premade database into an app and it basically causes the DB to 
double in size.

So now I'm thinking of just loading the data completely into the memory as 
 multiple sorted static array strings and querying those arrays through 
java logic. (Note that reading speed of the data is absolutely vital).  But 
knowing that memory available to apps is limited I'm in doubt.

Are there any other advantages/disadvantages to this approach?

-- 
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] Create shortcut on app install

2012-07-10 Thread iv_s
Hi! I'm interesting in Home Screen shortcuts. Some apps, installed 
from GooglePlay, create Home Screen shortcuts automatically.
I can create shortcut programmatically with intent, but only on app's first 
run. How to do it just after install?

I've also noticed Auto-add shortcuts option into GooglePlay settings, but 
I can't find any developer docs about it...

-- 
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] PN544 user manual or eeprom instructions set

2012-07-10 Thread Grégoire Sage
Hello,

With the pn512, it was possible to manual fine tuning the internal receiver 
through eeprom settings (cf user manual 
http://www.nxp.com/documents/data_sheet/PN512.pdf), and in particular, 
automatic parity generation could be switched off using the ManualRCVReg 
register’s ParityDisable bit.
With the pn53x, it was possible too by writing 0x10 at the eeprom address 
0x630D (http://www.nxp.com/documents/user_manual/157830_PN533_um080103.pdf)

It was also possible to switch off the automatic CRC generation.

With the PN544, I saw that the chip is also tuned through its eeprom but I 
can't find if the parity/CRC tuning is still possible... Where can I find 
the PN544 user manual with all the eeprom instructions set ?

Tahnk you in advance

Grégoire

-- 
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] SMS duplicated as calls on galaxy s II(ICS)

2012-07-10 Thread mighter
Ok, guys, here's my code for getting SMS:

Cursor cursor = getContentResolver().query(Uri.parse(uri),
null, CallLog.Calls.DATE ++ lastSmsTime, null,
CallLog.Calls.DATE +  ASC);

Where type is:

content://sms/inbox
content://sms/sent

And for calls:

String[] projection = new String[] { CallLog.Calls.NUMBER,
CallLog.Calls.TYPE, CallLog.Calls.DURATION, CallLog.Calls.DATE };
Cursor managedCursor = getContentResolver().query(
CallLog.Calls.CONTENT_URI, projection,
CallLog.Calls.DATE ++ lastCallTime, null,
CallLog.Calls.DATE +  ASC);

First of all, I know that this is undocumented provider(as you see, I use 
column constants from different one). 

Funny thing is that this is working ok on several 2.3.x devices. But now I 
tried this on Galaxy S II(ICS 4.0.3). Now all SMS *are duplicated* in calls 
provider.

Has anyone come across this issue?

-- 
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] write sms by voice

2012-07-10 Thread HARISH KUMAR
hi,

i want to develop a app like  write sms by voice  but id on't know
how to write a app plz help me any one.

its urgent for me..

   sorry for my poor english

thanks  regards
harish

-- 
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] Reg.android

2012-07-10 Thread king
i want to know about the android codecs details for android versions
2.1 and 2.3...
please reply me as soon as possible.i am waiting for your valuable
reply.

Thank u.

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


  1   2   3   4   >