[android-developers] SMS Table

2012-02-21 Thread Deepa M
Dear All


can any one help me to create a sms database table as sms table in
android to store all iin that created database incoming messages ...

-- 
Thanks& Regards
Deepa M

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Image upload is Crashing in htc

2012-02-21 Thread Ratheesh Valamchuzhy
Hi
I am developing an app to upload image to a php server from the android
phone , it is working fine on all device except the htc and galaxy s2 , in
both of these phone we are trying to upload more than 2 photos the app will
forcely close , please give any solution for this .


-- 
-- 
ωιтн яєgαя∂ѕ
Ratheesh * *...

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Re : Save output data as XML

2012-02-21 Thread Seshu
Hi Vivek,
Used Shared Preferences so that the output data will be saved in xml
format only.

https://github.com/junal/Android-SharedPreferences/tree/master/SharedPreferences

http://www.tutorials-android.com/learn/How_to_store_and_retrieve_preferences_in_an_Android_app.rhtml

Thanks and  Regards,
S.Seshu

On Feb 22, 9:55 am, vivek elangovan  wrote:
> Hi members,
>                      I want to develope an application  where after
> entering the required input fields i want to save the output data as
> XML in my local (eg : memory card) . Is there any sample available ?

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


[android-developers] Re: Regarding an android phone acting as server and client

2012-02-21 Thread moktarul anam
Yes u can run server on android phone

Moktarul

On Feb 21, 10:24 pm, sahiti  wrote:
> Hi,
>
> Can any one suggest me whether an android phone could act both as a
> server and a client in a program?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] judgment of currency for In-app-billing

2012-02-21 Thread Zsolt Vasvari
I don't think he wants to use the Market, just wants to build something 
LIKE the Market.  
 
I would just maintain an internal table that maps from the users Locale to 
the currency.  Should be correct for 99.9% of users.   That's what I do in 
my app.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Getting force Close when trying to run app

2012-02-21 Thread moktarul anam
Can you send me your  log messages
Moktarul anam

On Feb 22, 1:17 am, Pram  wrote:
> Here is what my Android.xml file looks like.
> I am getting a force close when I am trying to run my app. I am trying
> to get input from the user in number form, but I do not know the right
> import or code to use to get the input.
>
> package com.global.genname;
>
> import android.app.Activity;
> import android.os.Bundle;
> import java.util.Scanner;
>
> public class GenNameActivity extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>
>      Scanner GetInput = new Scanner(System.in);
>      int valueTypedIn = GetInput.nextInt();
>
>      switch (valueTypedIn) {
>
>      case 1:
>          System.out.println("That is 1l");
>          break;
>      case 2:
>          System.out.println("That is 2");
>          break;
>      default:
>          System.out.println("That number is not recognized.");
>
>      }
>     }
>
>
>
>
>
>
>
> }

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


[android-developers] Re: Help connect Bluetooth printer

2012-02-21 Thread Thusitha Fernando
any sample codes for blutooth printer connect in Android

On Wed, Feb 22, 2012 at 11:53 AM, Thusitha Fernando
wrote:

> Dear All,
> Can any one help to connect blue tooth printer .
> This is very argent for me Please help
>
>
>


-- 
තුසිත අසන්ත ප්‍රනාන්දු

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

Re: [android-developers] judgment of currency for In-app-billing

2012-02-21 Thread SeungYong Shin
Thanks Nikolay.
Your answers were very helpful.

2012/2/22 Nikolay Elenkov :
> On Wed, Feb 22, 2012 at 4:02 PM, SeungYong Shin  wrote:
>
>> For example, App displayed 1 dollar for the item, but Market displayed
>> 10 dollars. It's strange.
>> I want to know the rule of judgment to display the currency when users
>> click purchase-button.
>
> Generally, if the device has a SIM, the operator code is used to
> determine the country. So if the device has a Japanese SIM,
> it will assume you are in Japan, and display the Japanese
> price (shouldn't that be in yen?). How exactly the Market
> works is AFAIK undocumented, you might want to contact
> Market support for details.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


[android-developers] Re: listview populate from external url

2012-02-21 Thread moktarul anam
Hi Abu,

http://ofertaweb.ro/android/sleepandlovemusic/list_files.php  api
output is one string
u can do this way ,
1. get the content of that url in string format
String output =
"Crickets_near_a_River:::Waterfall:::rainforest_sound:::Quick_Rain:::Atlantic_Ocean..";

2. string split of ":::" and put into ArrayList
3. Display ArrayList in listview

Enjoy
Moktarul

On Feb 21, 2:11 am, Abu Hamzah  wrote:
> i have posted my question here
> (http://stackoverflow.com/questions/9355617/android-mediaplayer-
> streaming-music) but no avail, can anybody look at the question let me
> know what i am missing?
> i am trying a way to populate listview items from this 
> urlhttp://ofertaweb.ro/android/sleepandlovemusic/list_files.php
>
> anybody 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


Re: [android-developers] judgment of currency for In-app-billing

2012-02-21 Thread Nikolay Elenkov
On Wed, Feb 22, 2012 at 4:02 PM, SeungYong Shin  wrote:

> For example, App displayed 1 dollar for the item, but Market displayed
> 10 dollars. It's strange.
> I want to know the rule of judgment to display the currency when users
> click purchase-button.

Generally, if the device has a SIM, the operator code is used to
determine the country. So if the device has a Japanese SIM,
it will assume you are in Japan, and display the Japanese
price (shouldn't that be in yen?). How exactly the Market
works is AFAIK undocumented, you might want to contact
Market support for details.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] judgment of currency for In-app-billing

2012-02-21 Thread SeungYong Shin
Thank you. Nicolay.

We would like to display prices for users on the app.
We can set prices differently for each countries on the developer console
Displayed price in the App need to match with Market.
On the developer console ,we set 1 dollar for America and set 10
dollars for Japan.
For example, App displayed 1 dollar for the item, but Market displayed
10 dollars. It's strange.
I want to know the rule of judgment to display the currency when users
click purchase-button.
In addition, item information is maintained on the our server.


2012/2/22 Nikolay Elenkov :
> On Wed, Feb 22, 2012 at 9:54 AM, SeungYong Shin  wrote:
>> Hi.
>>
>> I am in the process of creating an in-app-billing service. I want to
>> set prices differently for different countries.
>>
>> When the purchase page is displayed, how can I decide which currency i
>> should use for an In-app-billing item?
>> Do I use the local currency? Or the Android Market Account currency?
>
> The Android Market displays the local currency automatically, if available.
> You can set the prices in the developer console, but you cannot control
> how they are displayed on the device directly.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: How to take photo and crop with Android 3.x

2012-02-21 Thread Nikolay Elenkov
On Wed, Feb 22, 2012 at 3:56 PM, Yaniv  wrote:
> Thanks Nikolay,
>
> But I think I found the line was missing in my code.
> I had to add the intent the component name that should run the crop:
> intent.setComponent(new ComponentName("com.android.gallery3d",
> "com.android.gallery3d.app.CropImage"));

Again, this is not part of the public API, it internal to the Gallery 3D app.
If a device doesn't have it, it won't work. HTC Sense, etc. customized
Android versions most probably have their own gallery app. You should
at least test if the 'com.android.gallery3d' package exits, and handle
this somehow.

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


[android-developers] Re: How to take photo and crop with Android 3.x

2012-02-21 Thread Yaniv
Thanks Nikolay,

But I think I found the line was missing in my code.
I had to add the intent the component name that should run the crop:
intent.setComponent(new ComponentName("com.android.gallery3d",
"com.android.gallery3d.app.CropImage"));




On Feb 21, 11:14 am, Yaniv  wrote:
> Hi,
>
> I've trying to develop an activity on Android 3.x with a button that a
> user will be able to take a photo and right after that to crop this
> photo.
> The photo is taken fine and saved but when I send the intent to crop
> it I get the following excpetion:

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 post jsonarray at the end of requeseted url?

2012-02-21 Thread Mulsaniya Bhadresh
http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTable&InstanceId=1&CustomerId=1&TableID=23&quantityAndItemID=[{
"commej":"","id":1,"Quantity":5}]



In the above url i got the error like that:: java.net.URISyntaxException:
Illegal character in query at index 129:
http://192.168.1.4:55106/Waiter_json.aspx?MethodName=InsertOrderForTable&InstanceId=1&CustomerId=1&TableID=23&quantityAndItemID=[{
"commej":"","id":1,"Quantity":5}]



means error at starting square bracket.


How can i solve this problem ?
can anyone 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] Re: The service restart but not retaining socket

2012-02-21 Thread Nitin Gaikwad
HI Gene,

Thanks for reply

As i read the post and blog i think after the restart the service on
the memory low warning service not goes in the destroy function.But
still also  i added the Destroy(); function where i close all the
socket . But still i am not able to retain the Socket.

Also one point about my service is it have broadcast receiver where i
have write the code for the onboot so is there any option to add the
low memory restart service option

Thanks
 NItin Gaikwad

On Feb 21, 5:30 am, Gene  wrote:
> I am not an expert on this, but am pretty sure you will have to
> implement onDestroy() and do an orderly close on the sockets you are
> using.
>
> On Feb 18, 2:30 am, Nitin Gaikwad  wrote:
>
>
>
> > Hi Friends,
> > 1 I am developing one application where i write one service using
> > broadcast receiver.
> > 2 In this service i use the socket programing where i communicate with
> > client.
> > 3 the application works like after the device boot the service will
> > start and listen the port to get the data.
> > 4 this will work normally but problem come when the service restart
> > means when there the memory low (multiple application open that time)
> > service will restart automatically.
> > 5 Here when service again goes to try to connect to socket this not
> > working
>
> > so is there any thing missing or should i need to do anything in code
> > please let me know.
>
> > thanks
> > Nitin Gaikwad

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] tabwidget not present in 3.2 ?

2012-02-21 Thread Jags
hi all, i am trying to do a tabbed view in android 3.2

i get following runtime error

02-22 11:31:26.487: W/dalvikvm(561): threadid=1: thread exiting with
uncaught exception (group=0x40014760)
02-22 11:31:26.647: E/AndroidRuntime(561): FATAL EXCEPTION: main
02-22 11:31:26.647: E/AndroidRuntime(561): java.lang.RuntimeException:
Unable to start activity ComponentInfo{com.codrezheaven/
com.codrezheaven.tabbar}: android.view.InflateException: Binary XML
file line #2: Error inflating class TABHOST
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1815)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1831)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread.access$500(ActivityThread.java:122)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.os.Handler.dispatchMessage(Handler.java:99)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.os.Looper.loop(Looper.java:132)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread.main(ActivityThread.java:4123)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
java.lang.reflect.Method.invokeNative(Native Method)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
java.lang.reflect.Method.invoke(Method.java:491)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
dalvik.system.NativeStart.main(Native Method)
02-22 11:31:26.647: E/AndroidRuntime(561): Caused by:
android.view.InflateException: Binary XML file line #2: Error
inflating class TABHOST
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:682)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:457)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:391)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.inflate(LayoutInflater.java:347)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:
223)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.Activity.setContentView(Activity.java:1786)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
com.codrezheaven.tabbar.onCreate(tabbar.java:14)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.Activity.performCreate(Activity.java:4397)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1048)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1779)
02-22 11:31:26.647: E/AndroidRuntime(561):  ... 11 more
02-22 11:31:26.647: E/AndroidRuntime(561): Caused by:
java.lang.ClassNotFoundException: android.view.TABHOST in loader
dalvik.system.PathClassLoader[/data/app/com.codrezheaven-1.apk]
02-22 11:31:26.647: E/AndroidRuntime(561):  at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:540)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
java.lang.ClassLoader.loadClass(ClassLoader.java:500)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.createView(LayoutInflater.java:542)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.onCreateView(LayoutInflater.java:627)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:
66)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.onCreateView(LayoutInflater.java:644)
02-22 11:31:26.647: E/AndroidRuntime(561):  at
android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669)


possible causes ?

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


Re: [android-developers] How to find Bluetooth discoverability time left?

2012-02-21 Thread Shashidhar
Thanks kris, for the detailed information.


On Tue, Feb 21, 2012 at 7:25 PM, Kristopher Micinski  wrote:

> I don't believe this is available.  I suspected that it was not, and
> then I double checked (even through the bluecove api) this morning. I
> would suspect that this is something that varies so much that it
> cannot be accurately be estimated by your software (I mean surely
> somewhere down in hardware there's some timer, but at the Android
> system, and perhaps even linux system level, you don't have access to
> this information, and it will vary quite a bit from chipset to
> chipset.)
>
> kris
>
> On Tue, Feb 21, 2012 at 8:50 AM, Shashidhar 
> wrote:
> > Hi,
> >
> >In my activity, I need to show a counter which represents,  how much
> time
> > still left for bluetooth to be in discoverable mode.
> > If bluetooth is not already in discoverable mode,  I am starting an
> intent
> > to make it discoverable and since I know for how much time I am making it
> > discoverable, I am able to show the proper time left and update it every
> > second.
> >
> > But, if the bluetooth is already in discoverable mode when my activity
> gets
> > started, is there a way by which I can get the time still left for
> bluetooth
> > to be in discoverable mode?
> >
> > Thanks,
> > Shashidhar
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] giving Advertisement in android application

2012-02-21 Thread Narendra Singh Rathore
Hi all Android Developers,
I am having *requirement of giving ads* in my android application.
I will be thankful if anyone suggest me step by step method for achieving
that.

With Regards,
NSR.

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

[android-developers] Getting problem in adding GSON Jar library

2012-02-21 Thread Passion Android
I'm trying to use GSON in my project, but my application is crashing,
with logcat saying that com.google.gson.Gson cannot be found. I've put
import com.google.gson.Gson on my class files, I have gson in my
package explorer, and added it by Right click -> build path -> add
libraries. It also shows up in Project->properties->java build path-
>libraries tab->gson. What have I done wrong?
Rickky
San Jose

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Children Height in Expandable List View

2012-02-21 Thread Shashidhar
On Wed, Feb 22, 2012 at 11:29 AM, Shashidhar wrote:

> You must have given fixed width to the view that displays address. Make it
> to "wrap_content" and that should do.


Same is the case with height also.


>
> -Shashi
>
>
> On Wed, Feb 22, 2012 at 4:55 AM, TreKing  wrote:
>
>> On Tue, Feb 21, 2012 at 2:42 PM, Naren  wrote:
>>
>>> Where can i change the height of children in an expandable list view.
>>>
>>
>> In the layout for the view you're using for the child, if you are
>> inflating it from an XML file. Otherwise directly on the View if you're
>> creating it dynamically.
>>
>>
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

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

Re: [android-developers] Children Height in Expandable List View

2012-02-21 Thread Shashidhar
You must have given fixed width to the view that displays address. Make it
to "wrap_content" and that should do.

-Shashi

On Wed, Feb 22, 2012 at 4:55 AM, TreKing  wrote:

> On Tue, Feb 21, 2012 at 2:42 PM, Naren  wrote:
>
>> Where can i change the height of children in an expandable list view.
>>
>
> In the layout for the view you're using for the child, if you are
> inflating it from an XML file. Otherwise directly on the View if you're
> creating it dynamically.
>
>
> -
> TreKing  - Chicago
> transit tracking app for Android-powered devices
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

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

2012-02-21 Thread bluestar
Dear Sir:

I use "screencap" to get and it works well, but change
"screenshot" to fail

I study source code of "screencap", and it uses
"ScreenshotClient" class
that passing through SurfaceFlinger to work well, but
"screenshot" that
using "/dev/graphics/fb0" can't work

How do I recognize the GPUs can work when using "screenshot"?

Thank you!

BR,
Alan


On 2月15日, 上午5時39分, Dianne Hackborn  wrote:
> This has never been guaranteed to work, because GPUs may not be able to
> give access to the frame buffer like that.  Even in the cases when it did
> work, it could be corrupted since there was no control over the state of
> the frame buffer when reading it.
>
> This is why there is a shell command to do this, which DDMS uses, and is
> updated appropriately for the platform.  Use the shell command.
>
> If you are running on 3.0+ and writing system code (which means you are
> posting to the wrong group anyway) you can use the mechanisms for that...
>  but put this discussion in an appropriate group like android-porting.
>
>
>
>
>
> On Tue, Feb 14, 2012 at 1:40 AM, bluestar  wrote:
> > Dear Sir:
>
> > I use the source code from frameworks\base\cmds\screencap
> > to do screen capture
>
> > If using ScreenshotClient method, it is ok to get correct result
> > If using to open fb0, some phones will fail to get
>
> > Nexus S with Android 4.0.3 is OK
> > Samsung Galaxy S2 with Android 2.3.5 is OK
> > Galaxy Nexus S with Android 4.0.2 is failure
>
> > Do you give me some suggestion or hint for how to get right
> > result
> > by using to open fb0 for all phones?
>
> > Thank you!
>
> > BR,
> > Alan
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 connect Bluetooth printer

2012-02-21 Thread Thusitha Fernando
Dear All,
Can any one help to connect blue tooth printer .
This is very argent for me Please help

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

RE: [android-developers] Re : Save output data as XML

2012-02-21 Thread Tommy Hartz
Just write to a file and save it as XML.


http://stackoverflow.com/questions/1239026/how-to-create-a-file-in-android

-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of vivek elangovan
Sent: Tuesday, February 21, 2012 11:56 PM
To: Android Developers
Subject: [android-developers] Re : Save output data as XML

Hi members,
 I want to develope an application  where after entering
the required input fields i want to save the output data as XML in my local
(eg : memory card) . Is there any sample available ?

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

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


[android-developers] Re: adb logclear?

2012-02-21 Thread moktarul anam
better u use adb logcat -s

use in ur code: Log.v("DEMO" , "some message..");
then use adb logcat -s "DEMO"
then u will get DEMO related message


Moktarul


On Feb 21, 9:33 am, bob  wrote:
> What is the adb command to tell a device to clear its log?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 : Save output data as XML

2012-02-21 Thread vivek elangovan
Hi members,
 I want to develope an application  where after
entering the required input fields i want to save the output data as
XML in my local (eg : memory card) . Is there any sample 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] How to Launch Fragments; getActivity() & getView() in Fragment is Null; When does the Activity attach to the Fragment?

2012-02-21 Thread duadinam
Hello...

I guess that subject was pretty loaded.  But I've had this problem
that I haven't been able to solve all day.  (I'm new at Android and
this is driving me a little crazy).

I have an application utilizing fragments.  The application is broken
down into two two fragments, a ListFragment and an ImageFragment.
Both Fragments are defined in the layout.xml file.

For smartphones, items in the list a launch a new FragmentActivity,
with a custom made ImageFragment.

When I try to add the ImageFragment and initiliaze its children; (it
has both a TextView and ImageView in it); I can't access any of the
resources.  getActivity() and getView() are both null.

It seems that the Activity is attached to the Fragment when
onCreateView is called...which happens when you add something to the
View. (I don't really understand how to use the ActivityLifeCylce &
Listener activities in general).

I was able to set the Activity through a setter method, but getView
doesn't work.  Also I think there might be a problem earlier in my
code.

Here is the logcat error: 02-21 22:08:28.178: E/AndroidRuntime(898):
at android.app.ActivityThread.main(ActivityThread.java:4424)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
java.lang.reflect.Method.invoke(Method.java:511)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
dalvik.system.NativeStart.main(Native Method)
02-21 22:08:28.178: E/AndroidRuntime(898): Caused by:
java.lang.NullPointerException
02-21 22:08:28.178: E/AndroidRuntime(898):  at
ca.mobicartel.ImageActivity.init(ImageActivity.java:36)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
ca.mobicartel.ImageActivity.onCreate(ImageActivity.java:29)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.Activity.performCreate(Activity.java:4465)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1049)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1920)
02-21 22:08:28.178: E/AndroidRuntime(898):  ... 11 more


Here is my code:
==

package ca.mobicartel;


import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;

public class ImageActivity extends FragmentActivity {

private int position;
private ImageView image;

public void onCreate(Bundle savedStateInstance) {
super.onCreate(savedStateInstance);
//setContentView(R.layout.one_pane_layout);

position = getIntent().getExtras().getInt("image_index");

if (getResources().getBoolean(R.bool.has_two_panes)) {
finish();
return;
}

init();

}

private void init() {
ImageFragment image_frag =
(ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment);
Resources r = image_frag.getResources();
FragmentManager fm = getSupportFragmentManager();
fm.beginTransaction().attach(image_frag).commit();
image_frag.setPosition(position);
//  image_frag.setActivity(this);

// Place an ArticleFragment as our content pane
//ImageFragment image_frag = (ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment_a);
//image_frag = (ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment);

//What is android.R.id.content, and what does this do? Why not 
just
get the Fragment like above, and where will this go
//on the layout?
//onAttachFragment(image_frag);
image_frag.displayImage();


//setContentView(R.layout.one_pane_image);
}

public void onAttachFragment(Fragment fragment) {
Log.i("ImageActivity", "Fragment has been attached from
ImageActivity end");
}

}





==
package ca.mobicartel;



import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.support.v

[android-developers] How to Launch Fragments; getActivity() & getView() in Fragment is Null; When does the Activity attach to the Fragment?

2012-02-21 Thread duadinam
Hello...

I guess that subject was pretty loaded.  But I've had this problem
that I haven't been able to solve all day.  (I'm new at Android and
this is driving me a little crazy).

I have an application utilizing fragments.  The application is broken
down into two two fragments, a ListFragment and an ImageFragment.
Both Fragments are defined in the layout.xml file.

For smartphones, items in the list a launch a new FragmentActivity,
with a custom made ImageFragment.

When I try to add the ImageFragment and initiliaze its children; (it
has both a TextView and ImageView in it); I can't access any of the
resources.  getActivity() and getView() are both null.

It seems that the Activity is attached to the Fragment when
onCreateView is called...which happens when you add something to the
View. (I don't really understand how to use the ActivityLifeCylce &
Listener activities in general).

I was able to set the Activity through a setter method, but getView
doesn't work.  Also I think there might be a problem earlier in my
code.

Here is the logcat error: 02-21 22:08:28.178: E/AndroidRuntime(898):
at android.app.ActivityThread.main(ActivityThread.java:4424)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
java.lang.reflect.Method.invoke(Method.java:511)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
dalvik.system.NativeStart.main(Native Method)
02-21 22:08:28.178: E/AndroidRuntime(898): Caused by:
java.lang.NullPointerException
02-21 22:08:28.178: E/AndroidRuntime(898):  at
ca.mobicartel.ImageActivity.init(ImageActivity.java:36)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
ca.mobicartel.ImageActivity.onCreate(ImageActivity.java:29)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.Activity.performCreate(Activity.java:4465)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1049)
02-21 22:08:28.178: E/AndroidRuntime(898):  at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1920)
02-21 22:08:28.178: E/AndroidRuntime(898):  ... 11 more


Here is my code:
==

package ca.mobicartel;


import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.util.Log;
import android.widget.ImageView;
import android.widget.TextView;

public class ImageActivity extends FragmentActivity {

private int position;
private ImageView image;

public void onCreate(Bundle savedStateInstance) {
super.onCreate(savedStateInstance);
//setContentView(R.layout.one_pane_layout);

position = getIntent().getExtras().getInt("image_index");

if (getResources().getBoolean(R.bool.has_two_panes)) {
finish();
return;
}

init();

}

private void init() {
ImageFragment image_frag =
(ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment);
Resources r = image_frag.getResources();
FragmentManager fm = getSupportFragmentManager();
fm.beginTransaction().attach(image_frag).commit();
image_frag.setPosition(position);
//  image_frag.setActivity(this);

// Place an ArticleFragment as our content pane
//ImageFragment image_frag = (ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment_a);
//image_frag = (ImageFragment)
getSupportFragmentManager().findFragmentById(R.id.image_fragment);

//What is android.R.id.content, and what does this do? Why not 
just
get the Fragment like above, and where will this go
//on the layout?
//onAttachFragment(image_frag);
image_frag.displayImage();


//setContentView(R.layout.one_pane_image);
}

public void onAttachFragment(Fragment fragment) {
Log.i("ImageActivity", "Fragment has been attached from
ImageActivity end");
}

}





==
package ca.mobicartel;



import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.support.v

Re: [android-developers] Re: Image Button Onclik view

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 8:00 PM, adig  wrote:

> I'll send an email to you


Uh, no. Please reply to this thread and the whole group.

-
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] AccountManager add account fails to launch my AuthenticatorActivity

2012-02-21 Thread OldSkoolMark
I can launch my AuthenticatorActivity from my application (activity)
through the AccountManager via

final AccountManager am = AccountManager.get(this);
am.addAccount(AuthenticatorActivity.ACCOUNT_TYPE,
AuthenticatorActivity.AUTHTOKEN_TYPE, null, null, this, null, null);

However, when I try to create an account via Accounts and Settings, or
the dev tools Account Tester, my AuthenticatorActivity's onCreate() is
never entered. My account type appears, in the list of account types,
and I can select it for new account creation.

>From my debug trace output, I can see that my AuthenticationService's
addAccount() method is being invoked in either case, and that the
result bundle has  a KEY_INTENT with my AuthenticatorActivity
specified as the target component. The intent also has the
KEY_ACCOUNT_AUTHENTICATOR_RESPONSE, and my auth token type.

I am following the SampleSyncAdapter example closely, but am at a loss
to explain this behavior.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Mismatch in runtime layout selection based upon size/density

2012-02-21 Thread William Ferguson
I am trying to work out why a device (in this case an AVD) that is
800*400 and mdpi is selecting a layout that is large-hdpi.

There are only 2 layout options for the app, the default and large-
hdpi.
I can conceivably see how the device could be considered large
- large screens are at least 640dp x 480dp (from
http://developer.android.com/guide/practices/screens_support.html#range)
even though it's not quite there is one dimension.

But it's only 160dpi, so certainly not hdpi (ie approx 240dpi).

I had always thought that in order to match a resource qualifier
(including layout) you need to at least match all items. So I expected
this to fail to match based on density. Is my understanding incorrect?
Is it actually trying to do a nearest match or best fit and is
determining that large-hdpi is the closest fit for large-mdpi?

It's almost like it has ignored density altogether when choosing the
layout.

Is there a way to programatically determine which resource selectors
have been used to choose layout?

William

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] judgment of currency for In-app-billing

2012-02-21 Thread Nikolay Elenkov
On Wed, Feb 22, 2012 at 9:54 AM, SeungYong Shin  wrote:
> Hi.
>
> I am in the process of creating an in-app-billing service. I want to
> set prices differently for different countries.
>
> When the purchase page is displayed, how can I decide which currency i
> should use for an In-app-billing item?
> Do I use the local currency? Or the Android Market Account currency?

The Android Market displays the local currency automatically, if available.
You can set the prices in the developer console, but you cannot control
how they are displayed on the device directly.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Image Button Onclik view

2012-02-21 Thread adig
hi




I'll send an email to you and I will include pictures that can explain
the intent of my question. . hopefully help




thank you

On 22 Feb, 06:17, TreKing  wrote:
> On Tue, Feb 21, 2012 at 6:33 AM, kholif adig  wrote:
> > please give me a solution
>
> Please give a better question. What you posted is very confusing and makes
> little sense (at least to me).
>
> --- 
> --
> 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] judgment of currency for In-app-billing

2012-02-21 Thread SeungYong Shin
Hi.

I am in the process of creating an in-app-billing service. I want to
set prices differently for different countries.

When the purchase page is displayed, how can I decide which currency i
should use for an In-app-billing item?
Do I use the local currency? Or the Android Market Account currency?

I could not find any documentation about this.
I want to know the rule of judgment to display the correct currency.

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] Why doesn't this delete method work to vacuum the Database?

2012-02-21 Thread lbendlin
delete is pretty much the nemesis of vacuum. 

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


[android-developers] Re: how to create Pdf files from some data

2012-02-21 Thread Zsolt Vasvari
PDDJet has been available for a long time, I've used it for over a
year.  But the link to the free version is kind of buried,
so you may have missed it.

I believe it's the only option for a free library that is licensed to
be used in a commercial closed source project.  I would fork out for
the license, but it doesn't really offer much over the free version
that I would use.  Namely, I think you still cannot mix proportional
and fixed width fonts.



On Feb 20, 3:25 pm, Kristopher Micinski 
wrote:
> On Mon, Feb 20, 2012 at 2:19 AM, Zsolt Vasvari  wrote:
> > No, you can use PDFJet.  It's free.
>
> Zsolt,
>
> PDFJet's main license is for evaluation only, and that's the one I'd
> previously seen.
>
> However, I see that there is now (recently?) an open source version!
>
> Anyway, it's good to know there's an open source alternative now, I
> felt like I might had heard of it before, and it looks like it
> incorporates a fair amount of good stuff.
>
> Thanks for the heads up, and sorry for the misleading reference Ankur,
>
> kris

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


Re: [android-developers] Children Height in Expandable List View

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 2:42 PM, Naren  wrote:

> Where can i change the height of children in an expandable list view.
>

In the layout for the view you're using for the child, if you are inflating
it from an XML file. Otherwise directly on the View if you're creating it
dynamically.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Google ADT plugin to Eclipse

2012-02-21 Thread Tor Norbye
It looks for lastSdkPath= in ~/.android/ddms.cfg.

-- Tor

On Tue, Feb 21, 2012 at 2:12 PM, sbq  wrote:

> Greetings,
>
> When I install the Google ADT (http://developer.android.com/sdk/
> eclipse-adt.html) into Eclipse, it automatically discovers the path to
> the Android SDK.
>
> How does it do this?
>
> -Sam
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Image Button Onclik view

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 6:33 AM, kholif adig  wrote:

> please give me a solution


Please give a better question. What you posted is very confusing and makes
little sense (at least to me).

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Getting force Close when trying to run app

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 2:17 PM, Pram  wrote:

> I am getting a force close when I am trying to run my app.


http://developer.android.com/guide/developing/debugging/index.html

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Using Google Checkout Info

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 4:50 PM, Jared Rummler  wrote:

> I am just wondering if this is a legal use of the info obtained through
> checkout.
>

Questions of legality are usually best directed at a lawyer, not the
internet at large.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Move Button

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 8:52 AM, Rami Makhamreh  wrote:

> i want to ask how to move a button in path like in animation


http://developer.android.com/search.html#q=animation&t=0

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: How to manually dispatch key event for power button in android

2012-02-21 Thread Mark Murphy
On Mon, Feb 20, 2012 at 5:51 AM, Chris  wrote:
> It's possible. Download the Toddler Lock App.

That would qualify as "easily defeated".

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

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 attain Browser Activity handle from webkit code in Frameworks/base?

2012-02-21 Thread JoeyZee
I am modifying the Android Browser - I'd like to access & set
properties on the Browser Activity from within the WebKit code in
frameworks/base. Specifically, WebView.java - see frameworks/base/core/
java/android/webkit.

There is a context in WebView.java, but it is an Application Context
and not an Activity Context, so I cannot set UI properties on it. Any
ideas on the best approach to attain a handle to the container
activity (Browser Activity in this case) from WebView.java or any
other classes within frameworks/base ?

Note:
I did see that BrowserFrame.java calls into CallbackProxy.java to set
certain Activity properties (e.g. - setTitle, setProgress, etc) where
those methods are implemented in the Browser's Tab.java page (e.g. -
onReceivedTitle, onProgressChanged). But, I was not able to figure out
how/where callbackProxy made the call into the Browser's Tab.java
page. That could potentially give me a clue into how to approach 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] Using Google Checkout Info

2012-02-21 Thread Jared Rummler
I am considering using the emails obtained through Google Checkout to
let users know about a sale to one of my apps. I am just wondering if
this is a legal use of the info obtained through checkout. The only
info I found was here: https://checkout.google.com/seller/policies.html

In 1A it says that is legal if the user consented to receive marketing
emails. Does that even apply to the Android Market purchase? I would
of course have an unsubscribe option in the email to satisfy 1B.
Please let me know if there are any developers that have done this
before or if anyone has advice.

Thanks,

Jared

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


[android-developers] Getting force Close when trying to run app

2012-02-21 Thread Pram
Here is what my Android.xml file looks like.
I am getting a force close when I am trying to run my app. I am trying
to get input from the user in number form, but I do not know the right
import or code to use to get the input.

package com.global.genname;

import android.app.Activity;
import android.os.Bundle;
import java.util.Scanner;


public class GenNameActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

 Scanner GetInput = new Scanner(System.in);
 int valueTypedIn = GetInput.nextInt();

 switch (valueTypedIn) {

 case 1:
 System.out.println("That is 1l");
 break;
 case 2:
 System.out.println("That is 2");
 break;
 default:
 System.out.println("That number is not recognized.");

 }
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] connecter mon htc à gmail par internet

2012-02-21 Thread francois
comment connecter mon htc par internet ?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RabbitMQ Android Error: Basic Publish to java file

2012-02-21 Thread Kamran
The following code gives "unable to open stack traces error" I am
trying to send data from Java Client on Android to Java File (https://
github.com/rabbitmq/rabbitmq-tutorials/blob/master/java/Recv.java)

I have also included the permissions of "write_external_storage" and
"internet". If I disable the "handler.post(send)" then it doesn't
gives the error but the job is not done.

Android Code:

TextView mOutput;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mOutput =  (TextView) findViewById(R.id.output);

Handler handler = new Handler();

Runnable send = new Runnable(){
public void run() {
// TODO Auto-generated method stub
send();
}
};
mOutput.append("/nBefore");
handler.post(send);
mOutput.append("/nAfter");
}

private void send(){
Thread thread = new Thread(){
@Override
public void run(){
ConnectionFactory factory = new ConnectionFactory();
factory.setHost("sethost");
Connection connection = null;
try {
connection = factory.newConnection();
mOutput.append("/ninstance1");
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Channel channel = null;
try {
mOutput.append("/ninstance2");
channel = connection.createChannel();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

try {
mOutput.append("/ninstance3");
channel.queueDeclare("hello", false, false, false,
null);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

String message = "Kamran Android E";
try {
mOutput.append("/ninstance4");
channel.basicPublish("logs","hello", null,
message.getBytes());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
};
thread.start();
}
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Children Height in Expandable List View

2012-02-21 Thread Naren
Hi All,
I am new to android development and i developed an app for our company
which basically searches for contacts on the companies server and
displays them on the handheld. I have a problem adjusting the height
of an expandable list view. When displaying address of the contact the
view the whole address doesn't display as the child is running out of
height. Where can i change the height of children in an expandable
list view.

Thanks
Naren

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


[android-developers] Regarding an android phone acting as server and client

2012-02-21 Thread sahiti
Hi,

Can any one suggest me whether an android phone could act both as a
server and a client in a program?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 lazarus based pascal dev on windows

2012-02-21 Thread Siva
Hi all ...

I would like to know if any of you guys have worked on app dev with
pascal ..?? Please share it here...

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] Google ADT plugin to Eclipse

2012-02-21 Thread sbq
Greetings,

When I install the Google ADT (http://developer.android.com/sdk/
eclipse-adt.html) into Eclipse, it automatically discovers the path to
the Android SDK.

How does it do this?

-Sam

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Move Button

2012-02-21 Thread Rami Makhamreh
Hi ,

i want to ask how to move a button in path like in animation or sth like
that, the idea i wan to to replac ethe button with image so when i press
the button it changes to another place while i can c it moving?

Plz help

like this X is the button

X- - - - -- - - - - - - ->

|
|
|
X

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 alpha animation not repainting during the animation

2012-02-21 Thread Sterling Walsh
I posted this on stack overflow a little over a week ago and got no
response so I will ask here.

I have an activity with a slidingdrawer that comes up as a menu. when
the activity starts the button (it is actually not a button but a
textview but that is really irrelevant) with an  is there and fades
out to allow a full screen view. when the button on top of the drawer
is clicked (it has alpha of 0 at this point) it should fade back in
and the menu popup. when clicked again the menu collapses and the
button fades back out. to do this I have the following code in the
activity.

The initial fadeout works as expected. The activity is created and the
button fades out. when I click the button to expand the menu the
button does not appear and when I click it again the button is there
and does not fade out. The odd thing is that the animation is in fact
called and if I move the scrolviews behind the drawer while the
animation after the animatin is called the animation does go on
normally as long as I keep the views in its background moving. If I
stop moving those views the animation will freeze at some alpha value.




Why does the first function normally while the others do not? How do I
fix this?

drawer = (SlidingDrawer) this.findViewById(R.id.slidingDrawer1);
drawer.setOnDrawerCloseListener(new OnDrawerCloseListener(){

public void onDrawerClosed() {
doFadeOut();
}
});
drawer.setOnDrawerOpenListener(new OnDrawerOpenListener(){

public void onDrawerOpened() {
doFadeIn();
}
});


fadeOut = AnimationUtils.loadAnimation(this, R.anim.buttonfadeout);
fadeOut.setFillAfter(true);
fadeIn = AnimationUtils.loadAnimation(this, R.anim.buttonfadein);
fadeIn.setFillAfter(true);
doFadeOut(); //this is the end of onCreate and fades when the
activity is created





and these are methods in the activity

public void doFadeOut(){
fadeOut.reset();
menuButton.clearAnimation();
menuButton.startAnimation(fadeOut);
}

public void doFadeIn(){
fadeIn.reset();
menuButton.clearAnimation();
menuButton.startAnimation(fadeIn);
}




fadein anim

http://schemas.android.com/apk/res/android";
android:duration="500"
android:fromAlpha="0.0"
android:toAlpha="1.0"
android:fillEnabled="true"
android:fillAfter="true" />

fadeout anim

http://schemas.android.com/apk/res/android";
android:duration="2000"
android:fromAlpha="1.0"
android:toAlpha="0.0"
android:fillEnabled="true"
android:fillAfter="true"/>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Install Application programmatically on Android

2012-02-21 Thread Li Qing
You can run your apps,which will generate .apk file

On Tue, Feb 21, 2012 at 8:35 PM, android developer <
android.developer4...@gmail.com> wrote:

> Hi all,
>
> How to Install APK File Programmatically, Please help me in 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Errors :Consumer closed input channel or an error occurred. events=0x8 & Channel is unrecoverably broken and will be disposed!

2012-02-21 Thread ajay

Hello,

Were you able to sort this issue out? I'm having the same trouble. I
can setVIDPID so I'm assuming the  FTDI library is installed
correctly. But calling createDeviceInfoList causes the sample program
to crash.

/dev/bus/usb, /dev/usb/* all have permissions 666.

Log file snippet follows:

D/Depth Reader(  774): Started application.
W/InputManagerService(  156): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@4091c4f8
(uid=10022 pid=234)
D/TabletStatusBar(  207): lights on
D/dalvikvm(  217): GC_FOR_ALLOC freed 6K, 3% free 8145K/8391K, paused
64ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 8.504MB for 513744-
byte allocation
D/dalvikvm(  217): GC_FOR_ALLOC freed 1K, 3% free 8646K/8903K, paused
32ms
D/dalvikvm(  217): GC_CONCURRENT freed 953K, 11% free 8519K/9543K,
paused 2ms+4ms
D/dalvikvm(  217): GC_FOR_ALLOC freed 17K, 11% free 8540K/9543K,
paused 46ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 10.066MB for 1745936-
byte allocation
I/ActivityManager(  156): Displayed com.ftdi.d2xx/.D2XXSampleActivity:
+588ms
D/PhoneWindow(  234): couldn't save which view has focus because the
focused view android.widget.TextView@407d3be0 has no id.
D/dalvikvm(  217): GC_CONCURRENT freed 0K, 10% free 10245K/11271K,
paused 2ms+3ms
D/SntpClient(  156): request time failed:
java.net.UnknownHostException: Unable to resolve host "north-
america.pool.ntp.org": No address associated with hostname
I/ftd2xx-java(  774): loading JNI library...
D/dalvikvm(  774): Trying to load lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
D/dalvikvm(  774): Added shared lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
I/ftd2xx-java(  774): JNI library loaded!
I/Depth Reader(  774): Check lib version: 65541
I/Depth Reader(  774): Retrieved VID and PID: 1027 24577
D/Depth Reader(  774): Determining number of devices
I/DEBUG   (   86): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   86): Build fingerprint: 'motorola/tervigon/wingray:3.2.1/
HTK75D/190830:user/release-keys'
I/DEBUG   (   86): pid: 774, tid: 774  >>> com.ftdi.d2xx <<<
I/DEBUG   (   86): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr deadbaad
I/DEBUG   (   86):  r0 deadbaad  r1 0001  r2 a000  r3 
I/DEBUG   (   86):  r4   r5 0027  r6 56301e44  r7 b000
I/DEBUG   (   86):  r8   r9   10 56301da0  fp be9f949c
I/DEBUG   (   86):  ip   sp be9f9380  lr afe8f4ad  pc
afe8bc1c  cpsr 6030
I/DEBUG   (   86):  d0  8000  d1  8000
I/DEBUG   (   86):  d2    d3  3ff0
I/DEBUG   (   86):  d4    d5  
I/DEBUG   (   86):  d6  c1c8  d7  
I/DEBUG   (   86):  d8    d9  
I/DEBUG   (   86):  d10   d11 
I/DEBUG   (   86):  d12   d13 
I/DEBUG   (   86):  d14   d15 
I/DEBUG   (   86):  scr 8012
I/DEBUG   (   86):
I/DEBUG   (   86):  #00  pc 00015c1c  /system/lib/libc.so
I/DEBUG   (   86):  #01  pc 00013efe  /system/lib/libc.so
(dlfree)
I/DEBUG   (   86):  #02  pc 0001445c  /system/lib/libc.so
(free)
I/DEBUG   (   86):  #03  pc 00012034  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #04  pc 000120a2  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #05  pc 000120c8  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (libusb_free_config_descriptor)
I/DEBUG   (   86):  #06  pc d9ee  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (GetDeviceCount)
I/DEBUG   (   86):  #07  pc da36  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_ListDevices)
I/DEBUG   (   86):  #08  pc da9e  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_CreateDeviceInfoList)
I/DEBUG   (   86):  #09  pc 889c  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
(Java_com_ftdi_D2xx_createDeviceInfoList)
I/DEBUG   (   86):
I/DEBUG   (   86): libc base address: afe76000
I/DEBUG   (   86):
I/DEBUG   (   86): code around pc:
I/DEBUG   (   86): afe8bbfc 4623b15c 2c006824 e026d1fb b12368db
I/DEBUG   (   86): afe8bc0c 21014a17 6011447a 48124798 24002527
I/DEBUG   (   86): afe8bc1c f7f57005 2106eb8a ec18f7f6 460aa901
I/DEBUG   (   86): afe8bc2c f04f2006 94015380 94029303 efe2f7f5
I/DEBUG   (   86): afe8bc3c 4622a905 f7f52002 f7f5efec 2106eb76
I/DEBUG   (   86):
I/DEBUG   (   86): code around lr:
I/DEBUG   (   86): afe8f48c 41f0e92d 46804c0c 447c2600 68a56824
I/DEBUG   (   86): afe8f49c e0076867 300cf9b5 dd022b00 47c04628
I/DEBUG   (   86): afe8f4ac 35544306 37fff117 6824d5f4 d1ee2c00
I/DEBUG   (   86): afe8f4bc e8bd4630 bf0081f0 0002802e 41f0e92d
I/DEBUG   (   86): afe8f4cc fb01b086 9004f602 461f4815 4615460c
I/DEBUG   (   

[android-developers] Image Button Onclik view

2012-02-21 Thread kholif adig
hi

I have some problems in image button

I have some image button that when clicked on the button will display
the same image.

the problem is if the image double click the botton on the button will
display the same image on the first and second positions.

please give me a solution

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] FTDI USB issue

2012-02-21 Thread ajay
Hello Everyone,

I'm trying to usb an FTDI USB chip on Android following the
instructions at:

http://www.ftdichip.com/Android.htm
http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf

I can setVIDPID so I'm assuming the  FTDI library is installed
correctly. But calling createDeviceInfoList causes the sample program
to crash.

/dev/bus/usb, /dev/usb/* all have permissions of 777 (I know that 666
is all that is needed)

Log file snippet follows:

D/Depth Reader(  774): Started application.
W/InputManagerService(  156): Starting input on non-focused client
com.android.internal.view.IInputMethodClient$Stub$Proxy@4091c4f8
(uid=10022 pid=234)
D/TabletStatusBar(  207): lights on
D/dalvikvm(  217): GC_FOR_ALLOC freed 6K, 3% free 8145K/8391K, paused
64ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 8.504MB for 513744-
byte allocation
D/dalvikvm(  217): GC_FOR_ALLOC freed 1K, 3% free 8646K/8903K, paused
32ms
D/dalvikvm(  217): GC_CONCURRENT freed 953K, 11% free 8519K/9543K,
paused 2ms+4ms
D/dalvikvm(  217): GC_FOR_ALLOC freed 17K, 11% free 8540K/9543K,
paused 46ms
I/dalvikvm-heap(  217): Grow heap (frag case) to 10.066MB for 1745936-
byte allocation
I/ActivityManager(  156): Displayed com.ftdi.d2xx/.D2XXSampleActivity:
+588ms
D/PhoneWindow(  234): couldn't save which view has focus because the
focused view android.widget.TextView@407d3be0 has no id.
D/dalvikvm(  217): GC_CONCURRENT freed 0K, 10% free 10245K/11271K,
paused 2ms+3ms
D/SntpClient(  156): request time failed:
java.net.UnknownHostException: Unable to resolve host "north-
america.pool.ntp.org": No address associated with hostname
I/ftd2xx-java(  774): loading JNI library...
D/dalvikvm(  774): Trying to load lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
D/dalvikvm(  774): Added shared lib /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so 0x407da418
I/ftd2xx-java(  774): JNI library loaded!
I/Depth Reader(  774): Check lib version: 65541
I/Depth Reader(  774): Retrieved VID and PID: 1027 24577
D/Depth Reader(  774): Determining number of devices
I/DEBUG   (   86): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG   (   86): Build fingerprint: 'motorola/tervigon/wingray:3.2.1/
HTK75D/190830:user/release-keys'
I/DEBUG   (   86): pid: 774, tid: 774  >>> com.ftdi.d2xx <<<
I/DEBUG   (   86): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault
addr deadbaad
I/DEBUG   (   86):  r0 deadbaad  r1 0001  r2 a000  r3 
I/DEBUG   (   86):  r4   r5 0027  r6 56301e44  r7 b000
I/DEBUG   (   86):  r8   r9   10 56301da0  fp be9f949c
I/DEBUG   (   86):  ip   sp be9f9380  lr afe8f4ad  pc
afe8bc1c  cpsr 6030
I/DEBUG   (   86):  d0  8000  d1  8000
I/DEBUG   (   86):  d2    d3  3ff0
I/DEBUG   (   86):  d4    d5  
I/DEBUG   (   86):  d6  c1c8  d7  
I/DEBUG   (   86):  d8    d9  
I/DEBUG   (   86):  d10   d11 
I/DEBUG   (   86):  d12   d13 
I/DEBUG   (   86):  d14   d15 
I/DEBUG   (   86):  scr 8012
I/DEBUG   (   86):
I/DEBUG   (   86):  #00  pc 00015c1c  /system/lib/libc.so
I/DEBUG   (   86):  #01  pc 00013efe  /system/lib/libc.so
(dlfree)
I/DEBUG   (   86):  #02  pc 0001445c  /system/lib/libc.so
(free)
I/DEBUG   (   86):  #03  pc 00012034  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #04  pc 000120a2  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
I/DEBUG   (   86):  #05  pc 000120c8  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (libusb_free_config_descriptor)
I/DEBUG   (   86):  #06  pc d9ee  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (GetDeviceCount)
I/DEBUG   (   86):  #07  pc da36  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_ListDevices)
I/DEBUG   (   86):  #08  pc da9e  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so (FT_CreateDeviceInfoList)
I/DEBUG   (   86):  #09  pc 889c  /mnt/sdcard/Android/data/
com.ftdi.d2xx/libftd2xx-jni.so
(Java_com_ftdi_D2xx_createDeviceInfoList)
I/DEBUG   (   86):
I/DEBUG   (   86): libc base address: afe76000
I/DEBUG   (   86):
I/DEBUG   (   86): code around pc:
I/DEBUG   (   86): afe8bbfc 4623b15c 2c006824 e026d1fb b12368db
I/DEBUG   (   86): afe8bc0c 21014a17 6011447a 48124798 24002527
I/DEBUG   (   86): afe8bc1c f7f57005 2106eb8a ec18f7f6 460aa901
I/DEBUG   (   86): afe8bc2c f04f2006 94015380 94029303 efe2f7f5
I/DEBUG   (   86): afe8bc3c 4622a905 f7f52002 f7f5efec 2106eb76
I/DEBUG   (   86):
I/DEBUG   (   86): code around lr:
I/DEBUG   (   86): afe8f48c 41f0e92d 46804c0c 447c2600 68a56824
I/DEBUG   (   86): afe8f49c e0076867 300cf9b5 dd022b00 47c04628
I/DEBUG   (   8

[android-developers] topic:data streaming - platform:Android 2.2 - tools:Eclipse Helios

2012-02-21 Thread soul-virus
I've tried a bunch of different methods for data streaming but
somewhere i run into something that just doesn't work and i have to go
and find a new reference page to try a different method to accomplish
my goal. I always end up finding a variable or interface that is
mentioned in the reference pages, that doesn't seem to exist in my
SDK(thus causing build errors)

Here is what I want to do

>Get the phone's IP address on the 3G network(or 4G for some people, but i 
>don't have that)
>On the other phone's client, use this IP address to open a connection between 
>the two phones
>Send data packets containing numbers(decimals and integers) from one phone to 
>the other

Also, when might the IP address of the phone change? So that I know
when to update the connection with the new IP address

My main concern is opening a data stream though, because that's the
point where I'm stuck.
Could someone lead me in the right direction?

Thx a bunch :)

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


[android-developers] Does a device have Wi-Fi or not?

2012-02-21 Thread RLScott
I may have found a problem in using the Wi-Fi Mac Address as a unique
device id.  If the Wi-Fi is turned off, I can detect that OK and ask
the user to turn it on, provided I know that the device has Wi-Fi.  I
have been using
PackageManager.hasSystemFeatures(PackageManager.FEATURE_WIFI) to
determine this, and then resort to an inferior backup scheme in the
rare cases where the devices does not have Wi-Fi capability.  However
I have evidence that some devices are returning FALSE even though they
have Wi-Fi, if that Wi-Fi happens to be turned off.  This evidence is
only circumstantial based on the number of times my app has had to
fall back to the inferior backup scheme for device id.

Can anyone confirm whether this is really true?  If you boot up your
device with Wi-Fi off, does
PackageManager.hasSystemFeatures(PackageManager.FEATURE_WIFI) return
FALSE?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SOAP on Android

2012-02-21 Thread Tommy Hartz

I used KSOAP2 http://code.google.com/p/ksoap2-android/ it is pretty good. If
you have the ability to go RESTful I would go that way. I converted all my
services from SOAP to RESTful and it is noticeable more responsive.
-Original Message-
From: android-developers@googlegroups.com
[mailto:android-developers@googlegroups.com] On Behalf Of bob
Sent: Tuesday, February 21, 2012 3:40 PM
To: Android Developers
Subject: [android-developers] SOAP on Android

Can someone point me towards a good example of how to use SOAP on Android?

Thanks.

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

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


Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-21 Thread Ted Scott

On 2/21/2012 3:02 PM, Thomas wrote:

The compile error:
* PiesOfCodActivity cannot be resolved to a type

The error essentially is that the RxBcast cannot be aware of an
external app that exists on an Android somewhere.  The
PiesOfCodActivity is a retitled "helloworld" that works just fine on
my Android.
Perhaps there is some sort of intent construction where the app-to-be-
is a string that represents future runtime intentions.
Thanks for all of your good thoughts and help.
Of course not you put it in a different application. That's not what I 
thought you asked about, I thought you wanted an app that would launch 
at boot. Did you get it working with the receiver in the same package?


To launch another activity outside your package you need different 
information in the intent. One way is to specify the package of the 
other app:
Intent si = new 
Intent(Intent.ACTION_MAIN).setPackage("com.hootinholler.PiesOfCod");


The other app needs to have an action MAIN defined in its manifest and 
it also needs a category DEFAULT



I've tested this here with one application that only has the 
PiesOfCodActivity in the PiesOfCod package and another app that only has 
the RxBcast in a Pies package and constructs the intent as above.


Really this didn't take that much to solve given a little reading and 
experimentation. I agree with Tre that you should probably read up on 
Intents and how they get created and resolved.


Also I don't think it will be a good idea to have an app with no 
launchable activity as it could make it hard for users to uninstall


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ICS - OpenGLRenderer is out of memory! on Launcher application (Fonts are broken)

2012-02-21 Thread sparky
Hi Johnnie,

Is your widget using very big fonts?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Hello Everyone, i just have a quick question:

2012-02-21 Thread Mohamed Gougam
Hello  moktarul,

Thanks alot, i will do that, and let you know :)

On Tue, Feb 21, 2012 at 12:10 PM, moktarul anam  wrote:

> sorry, its Activity Intent filter not internt filter
> Moktarul
>
> On Feb 21, 12:42 pm, moktarul anam  wrote:
> > Hi Soyer,
> > All your activity class has to be there in your Manifest.xml file
> >
> > if you call your activity class from other activity then that class
> > has to be main( internt filter main) Please check these two point and
> > i think this will solve ur problem.
> > I am sure some problem in ur Manifest.xml file
> >
> > Moktarul
> >
> > On Feb 20, 11:24 pm, Mohamed Gougam  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi Moktarul, What is in the the manifest file, you mean i have to
> remove
> > > the "." ? i don't think that's it, the "." has to be there.
> >
> > > Thanks guys for the help, Kris is it wrong if somebody try to learn
> > > something different, out of his field !! Thanks for the help though i
> > > really appreciate it.
> >
> > > On Mon, Feb 20, 2012 at 3:44 PM, moktarul anam 
> wrote:
> > > > Hi
> > > > BTDdetecetwithV7Activity in ur android  Manifest file
> > > > \
> >
> > > > Enjoy
> > > > moktarul
> >
> > > > On Feb 20, 12:26 am, Soyer  wrote:
> > > > > Hello everyone, Can anyone explain to me what this following error
> > > > > means? have anyone faced the same?
> >
> > > > > ERROR:
> >
> > > > > 02-19 18:10:41.321: E/AndroidRuntime(319):
> java.lang.RuntimeException:
> > > > > Unable to start activity ComponentInfo{android.mgo.helloandroid/
> > > > > android.mgo.helloandroid.BTDdetecetwithV7Activity}:
> > > > > java.lang.NullPointerException
> >
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to
> android-developers@googlegroups.com
> > > > To unsubscribe from this group, 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADB with docking station

2012-02-21 Thread momo
I hadn't heard of it until your reply - I googled it and found an app
for it - installed but when I tried to run it, said my phone must be
rooted.  Is there a way to do what you're describing without the
above?

On Feb 21, 1:29 pm, Chrystian Vieyra  wrote:
> Have you tried wireless adb?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] SOAP on Android

2012-02-21 Thread bob
Can someone point me towards a good example of how to use SOAP on
Android?

Thanks.

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


Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 2:02 PM, Thomas  wrote:

> Perhaps there is some sort of intent construction where the app-to-be- is
> a string that represents future runtime intentions.
>

You should read the Intent documentation thoroughly.
Then see this:
http://developer.android.com/reference/android/content/Intent.html#setComponent(android.content.ComponentName)


However, if you think need to specify the target activity by name, you are
almost assuredly doing something wrong.

-
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] Android Browser Plugin

2012-02-21 Thread Tancho
Hi google developers,
I am researching a possible solution for one of my projects, and found
the need for a WebKit plugin, meaning,
I would like to build a plugin using the existing npapi plugin
architecture for the native browser on android,
however I am reading some stuff on the net that "since adobe is no
longer developing flash the plugin infrastructure will be abandoned"
so my question is, will the plugin architecture continue to exist in
the coming android versions, since if we develop it now and in a
future release it is closed, it will be work that has gone in vain.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Custom Permission and installation order

2012-02-21 Thread Dianne Hackborn
Sorry, no this is a current limitation of permissions, they need to be
known at install time to be granted.

On Tue, Feb 21, 2012 at 11:52 AM, Kevin TeslaCoil Software <
ke...@teslacoilsw.com> wrote:

> I'm trying to implement a custom permission to be used between two of
> my apps.
> In AppA I declare:
>
>
>
> And in AppB I declare:
>android:label="TeslaCoil Test"
>android:protectionLevel="normal" />
> ...
>android:exported="true"
>android:permission="com.teslacoilsw.TEST_PERMISSION"
>/>
>
> If I install AppB and then install AppA, it work as expected (AppA can
> bind to AppB's service). However if I install AppA and then install
> AppB, I get a SecurityException when trying to bind to the service as
> the permission is not granted. (Tested on Android 4.0.3)
>
> I've investigated adding the  declaration to both
> manifests and this does seem to work, I assume because the permission
> now always exists at install time. However this feels wrong to me.
>
> Is there a correct way for an app to declare a permission in an
> environment like the Market where installation order is not
> guaranteed?
>
> Thanks,
> -Kevin
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: start at boot app gives instantiationException:

2012-02-21 Thread Thomas
The program is this:

package com.needham.RxBcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class RxBcast extends BroadcastReceiver {

private static final String TAG = "RxBcast";
private static final int NOTE_ID = 1;

@Override
public void onReceive(Context c, Intent i) {
// check and handle registerable actions
String act = i.getAction();
Log.d(TAG, "Rxd "+ act );
if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
Intent si = new Intent(c, PiesOfCodActivity.class );  *** see error
below
si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
c.startActivity(si);
}
} // onReceive

}


The compile error:
* PiesOfCodActivity cannot be resolved to a type

The error essentially is that the RxBcast cannot be aware of an
external app that exists on an Android somewhere.  The
PiesOfCodActivity is a retitled "helloworld" that works just fine on
my Android.
Perhaps there is some sort of intent construction where the app-to-be-
is a string that represents future runtime intentions.
Thanks for all of your good thoughts and help.

Tom B




On Feb 21, 10:52 am, Ted Scott  wrote:
> Did you follow the steps I outlined? What intent are you speaking of
> that can't find the app? Speaking of the app, you're talking about the
> hello world or pies of cod app, right? What do you mean by an external app?
>
> Tell us exactly what you are doing and maybe we can help.
>
> On 2/21/2012 9:11 AM, Thomas wrote:
>
>
>
>
>
>
>
> > Thanks to all who have contributed answers to my questions.  The last
> > problem is that the intent cannot find the called app.  Perhaps it's a
> > misspelling or perhaps the fact it's an external app and I need some
> > slightly different intent format, or maybe lots of things.  I'll keep
> > at this and when I get the syntax correct, I'll post the answer.
> > Google searching turns up lot of commentary on the subject but all of
> > the snippets have proven not to work.
> > Best,
> > Tom B
>
> > On Feb 20, 6:46 pm, Ted Scott  wrote:
> >> On 2/20/2012 2:26 PM, Thomas wrote:
>
> >>> I'll make another request then.  Please post the code and manifest for
> >>> a simple something that will start the "helloworld" app at bootup.
> >>> The helloworld app is just a test case to see if things are working at
> >>> bootup. I have a far more complicated embedded application to test
> >>> after that.
> >>> Best,
> >>> Tom B
> >> You know I explained where to get the information you were missing is
> >> at, I even explained what you were confused about.  If indeed you have a
> >> far more complicated embedded app to test, judging by the level of your
> >> questions and failure to understand or even explore the material given
> >> to you, I predict you will be bricking that device.
>
> >> Nonetheless for the comedic value I give you Pies Of Cod, or at least
> >> the parts you asked for. Yes this code executes and launches the app
> >> Pies Of Cod when it is in a proper app environment. It took me about
> >> half an hour to cobble together. Of course you'll want to adjust the
> >> imports and packages to fit your environment so I omitted them. The view
> >> is the main.xml you get from an eclipse generated hello world app.
>
> >> First make a new android app named PiesOfCod in your workspace. Launch
> >> it and make sure it runs.
>
> >> Then you need to create a receiver class:
> >> public class RxBcast extends BroadcastReceiver {
>
> >>       private static final String TAG = "RxBcast";
> >>       private static final int NOTE_ID = 1;
>
> >>       @Override
> >>       public void onReceive(Context c, Intent i) {
> >>           // check and handle registerable actions
> >>           String act = i.getAction();
> >>           Log.d(TAG, "Rxd "+ act );
> >>           if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
> >>               Intent si = new Intent(c, PiesOfCodActivity.class);
> >>               si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> >>               c.startActivity(si);
> >>           }
> >>       } // onReceive
>
> >> }
>
> >> Then change the strings:
>
> >> 
> >> 
> >> Pies Of Cod!
> >> PiesOfCod
> >> 
>
> >> Then adjust the manifest, yes you will have to use your package names,
> >> etc. mine won't work for you:
>
> >> 
> >>  >> />
>
> >>  >>           android:icon="@drawable/ic_launcher"
> >>           android:label="@string/app_name">
> >>  >>               android:name=".PiesOfCodActivity"
> >>               android:label="@string/app_name">
> >> 
> >> 
>
> >> 
> >> 
> >> 
>
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
>
> >> 
>
> >> Build it, launch it, then restart the AVD that you have it installed on
> >> and it should be open when you unlock the AVD.
>
> >> Good luck with your very complicated embedded application, and please
> >> keep us informed on how that is going.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to andr

[android-developers] Custom Permission and installation order

2012-02-21 Thread Kevin TeslaCoil Software
I'm trying to implement a custom permission to be used between two of
my apps.
In AppA I declare:



And in AppB I declare:

...


If I install AppB and then install AppA, it work as expected (AppA can
bind to AppB's service). However if I install AppA and then install
AppB, I get a SecurityException when trying to bind to the service as
the permission is not granted. (Tested on Android 4.0.3)

I've investigated adding the  declaration to both
manifests and this does seem to work, I assume because the permission
now always exists at install time. However this feels wrong to me.

Is there a correct way for an app to declare a permission in an
environment like the Market where installation order is not
guaranteed?

Thanks,
-Kevin

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: ADB with docking station

2012-02-21 Thread Chrystian Vieyra
Have you tried wireless adb?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Notification status bar custom layout, guide lines are wrong?!? (primary color)

2012-02-21 Thread Maurizio
Daniele Segato  gmail.com> writes:

> 
> On 12/08/2011 09:49 AM, Daniele Segato wrote:
> > On 12/06/2011 01:41 PM, kilaka wrote:
> >> Does NOT work for me as well. The text is white and looks bad on a
> >> bright background.
> >
> > I ended up using the guidelines for Android 2.3 and greater and set up
> > my custom colors for Android 2.2 and lower..
> >
> > This is not the first time I found the Android documentation lacking or
> > wrong.
> >
> > But the thing that most annoy me is the fact that lot of bugs are
> > completely ignored by Google even if lot of people vote for them.
> > But that's OT in this thread.
> 
> I opened a bug, if anyone interested to follow, hopefully google will 
> give us feedback:
> http://code.google.com/p/android/issues/detail?id=22692
> 


I've found a very simple solution directly changing the name of the attribute
provided by Android.

As you can see in this tutorial:
http://www.framentos.com/android-tutorial/2012/02/20/how-to-create-a-custom-notification-on-android/

You only need to use a different attribute:

?android:attr/textColorPrimaryInverse

Hope this can help 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] ADB with docking station

2012-02-21 Thread momo
I would like to debug on my device while it's attached to a docking
station, but ADB does not recognize the device when connected that
way.  ADB works fine when the device is connected directly to my
computer.

Is there a workaround?

TYIA.

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


Re: [android-developers] How to create a list of icons with animation on android

2012-02-21 Thread TreKing
On Mon, Feb 20, 2012 at 4:31 PM, Lukz'Strife  wrote:

> I'm trying to create a sort of list of clickable icons, but do not want to
> display all at once. I would for example display 5 on the screen, then
> gestured to the side would animate the icons for that 6 hide and display
> the next.
>
> Anyone have an example of how to do this?
>
I don't, but you can get started by looking for "Gesture" and "Animation"
in the Developers Guide.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: how to create Pdf files from some data

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 6:35 AM, bhaskar bommala wrote:

> Can you  please me how to create PDF file using a text file..


Try reading the posts in this very thread. Jesus Christ.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Why doesn't the ADT show me the javadoc for a class in android.jar when I have the javadoc path set for the jar?

2012-02-21 Thread Daniele Segato

On 01/02/2012 07:21 AM, David Karr wrote:

This may be completely Eclipse-specific, but perhaps not.

I find it's very inconsistent whether I can get Eclipse to show me the
Javadoc for an Android class or method, even when I appear to have valid
javadoc attached to the "android.jar" file.

For instance, right now I'm viewing a class in a sample application that
references SQLiteDatabase. There are no compile errors, so I have all of
my dependencies properly set. I hover on the class name reference and
force the javadoc to display, it prints the class name as
"android.database.sqlite.SQLiteDatabase", but it says "Note: This
element has no attached source and the Javadoc could not be found in the
attached Javadoc.".

I then went into the Project Explorer and expanded the "Android 2.3.3"
library, exposing the "android.jar" file. I right-clicked on that and
selected Properties. I clicked on "Javadoc Location". It's currently set
to "Javadoc URL" and the "Javadoc location path" was set to the path to
the "reference" directory in the android SDK. I clicked "Validate" and
it said "Location is likely valid".

Just in case, I verified that
"android/database/sqlite/SQLiteDatabase.html" exists at the root of the
javadoc tree.

So why is it not showing the javadoc for this class?


Hi,

I faced the exact same issue...

it comes down to the fact that Eclipse assume the sources will be always 
more reliable of the javadoc.


Actually I would think the opposite since the source may contain 
auto-generated content or, like in the android case, be integrated with 
additional metadata (the SDK version a function has been introduced).


Shame Eclipse for that.

I discussed a lot in the #eclipse channel on freenode (IRC).. They 
insist Google is doing something out of specification by adding data to 
the javadoc (that's the attitude they have).


I opened this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=366811

It has been closed after a short while by setting it duplicate of this one:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=178071

it's opened since 2007 (sic!) and it's currently marked as "helpwanted"

I remember opening the same issue to android bug tracker but can't find 
it anymore :/



If you happen to have some news or workaround I'll be happy to know

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 plugin

2012-02-21 Thread Rekha
when i try to install google app engine plugin for eclipse it keeps
giving below error message at about 47%

"installing software has encountered a problem. An error occured while
collecting items to be installed"
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
Unable to read repository at
http://dl.google.com/eclipse/plugin/3.7/plugins/com.google.gdt.eclipse.appsmarketplace_2.5.1.v201201120043-rel-r37.jar.
Read timed out
Unable to read repository at
http://dl.google.com/eclipse/plugin/3.7/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37.jar.
Read timed out


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: animation becomes choppy or appears to not work when placed on top of LayerDrawable

2012-02-21 Thread Aaron
I am not sure that this is the best way but what I have ended up doing
was compositing the image myself. By drawing all 8 images onto one
bitmap and applying that single bitmap to the ImageView I was able to
get my animation to perform as I wanted. Now when I want to update a
section of the composited image I have to make the change to the
constituent bitmap and apply that to my Image View.

final BitmapFactory.Options opt = new BitmapFactory.Options();
opt.inPreferredConfig = Config.ARGB_;

Bitmap bitmap = BitmapFactory.decodeResource( this.getResources(),
this.houseMatrix[0][0], opt );

final int width = bitmap.getWidth();
final int height = bitmap.getHeight();

final Bitmap result = Bitmap.createBitmap( width, height,
Config.ARGB_ );

final Paint paint = new Paint();
paint.setColorFilter( new
PorterDuffColorFilter( this.houseMatrix[0][1],
PorterDuff.Mode.MULTIPLY ) );
final Canvas canvas = new Canvas( result );
canvas.drawBitmap( bitmap, 0, 0, paint );
bitmap.recycle();

for ( int i = 1; i < 8; i++ ) {
paint.setColorFilter( new
PorterDuffColorFilter( this.houseMatrix[i][1],
PorterDuff.Mode.MULTIPLY ) );
bitmap = BitmapFactory.decodeResource( this.getResources(),
this.houseMatrix[i][0], opt );
canvas.drawBitmap( bitmap, 0, 0, paint );
bitmap.recycle();
}

this.house.setImageBitmap( result );

On Feb 21, 8:22 am, Aaron  wrote:
> I have a LayerDrawable that I am creating in code because I have to do
> some color filtering to individual components of the layered image. On
> top of the layered image I have 2 ImageViews on top of one another and
> one is set to invisible. When the visible ImageView is clicked it
> rotates to 90 and made invisible and the invisible ImageView is made
> visible and rotated from -90 to 0.
>
> My issue is when I added the LayerDrawable which is made up of 8 pngs
> to the Activity the animation didn't work as well as before. It got
> verychoppyor didn't appear to rotate at all.
>
> Does anyone have any ideas regarding this?

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


Re: [android-developers] Understanding InstanceState - Any email tutors?

2012-02-21 Thread TreKing
On Mon, Feb 20, 2012 at 6:44 PM, TopSoft  wrote:

> When I go back with the device back button from the game view, it goes
> all the way back to main instead of the menu that called it
>

This does not sound like anything to do with saving instance state. This
sounds like your logic for starting and finishing activities is messed up.
Post the smallest sample code you can to show how you're starting and
finishing your activities.


> and then crashes.
>

Use your debugger to determine the cause of the crash. At least post a
stacktrace if you want help with crashes here.

-
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: Accessing the camera from an application

2012-02-21 Thread Kookamonga
Sorry for the off-topic question (trying to piggy-back on the image
provided in OP). In the image provided in the first post, you see the
emulator screen on the left and the "controls" on the right... I seem
to have done something in my Eclipse such that when I launch the
emulator, I only see the screen and not the controls. I've searched
everywhere trying to get it back, but have failed. Does anyone know
how to get the "controls" back when launching the emulator in Eclipse?

Thanks.

On Feb 21, 11:13 am, JackN  wrote:
> I think it is working. What do you expect to see on the emulator? I
> think you can use your own sample image.
>
> On Feb 17, 9:04 am, santy  wrote:
>
>
>
>
>
>
>
> > I'm trying to access the emulator camera but the only thing I see is
> > this 
> > imagehttp://s2.subirimagenes.com/imagen/previo/thump_7449264captura-de-pan...
>
> > I've tried different codes but I always get the same result. The
> > strange thing is that I can access the default camera application and
> > make photos, but not from my own applications. I use the camera
> > permissions.
>
> > Please I need 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] Re: Accessing the camera from an application

2012-02-21 Thread JackN
I think it is working. What do you expect to see on the emulator? I
think you can use your own sample image.

On Feb 17, 9:04 am, santy  wrote:
> I'm trying to access the emulator camera but the only thing I see is
> this 
> imagehttp://s2.subirimagenes.com/imagen/previo/thump_7449264captura-de-pan...
>
> I've tried different codes but I always get the same result. The
> strange thing is that I can access the default camera application and
> make photos, but not from my own applications. I use the camera
> permissions.
>
> Please I need 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


Re: [android-developers] Re: start at boot app gives instantiationException:

2012-02-21 Thread Ted Scott
Did you follow the steps I outlined? What intent are you speaking of 
that can't find the app? Speaking of the app, you're talking about the 
hello world or pies of cod app, right? What do you mean by an external app?


Tell us exactly what you are doing and maybe we can help.

On 2/21/2012 9:11 AM, Thomas wrote:

Thanks to all who have contributed answers to my questions.  The last
problem is that the intent cannot find the called app.  Perhaps it's a
misspelling or perhaps the fact it's an external app and I need some
slightly different intent format, or maybe lots of things.  I'll keep
at this and when I get the syntax correct, I'll post the answer.
Google searching turns up lot of commentary on the subject but all of
the snippets have proven not to work.
Best,
Tom B

On Feb 20, 6:46 pm, Ted Scott  wrote:

On 2/20/2012 2:26 PM, Thomas wrote:


I'll make another request then.  Please post the code and manifest for
a simple something that will start the "helloworld" app at bootup.
The helloworld app is just a test case to see if things are working at
bootup. I have a far more complicated embedded application to test
after that.
Best,
Tom B

You know I explained where to get the information you were missing is
at, I even explained what you were confused about.  If indeed you have a
far more complicated embedded app to test, judging by the level of your
questions and failure to understand or even explore the material given
to you, I predict you will be bricking that device.

Nonetheless for the comedic value I give you Pies Of Cod, or at least
the parts you asked for. Yes this code executes and launches the app
Pies Of Cod when it is in a proper app environment. It took me about
half an hour to cobble together. Of course you'll want to adjust the
imports and packages to fit your environment so I omitted them. The view
is the main.xml you get from an eclipse generated hello world app.

First make a new android app named PiesOfCod in your workspace. Launch
it and make sure it runs.

Then you need to create a receiver class:
public class RxBcast extends BroadcastReceiver {

  private static final String TAG = "RxBcast";
  private static final int NOTE_ID = 1;

  @Override
  public void onReceive(Context c, Intent i) {
  // check and handle registerable actions
  String act = i.getAction();
  Log.d(TAG, "Rxd "+ act );
  if( act.equals(i.ACTION_BOOT_COMPLETED) ) {
  Intent si = new Intent(c, PiesOfCodActivity.class);
  si.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  c.startActivity(si);
  }
  } // onReceive

}

Then change the strings:



Pies Of Cod!
PiesOfCod


Then adjust the manifest, yes you will have to use your package names,
etc. mine won't work for you:

























Build it, launch it, then restart the AVD that you have it installed on
and it should be open when you unlock the AVD.

Good luck with your very complicated embedded application, and please
keep us informed on how that is going.


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why doesn't this delete method work to vacuum the Database?

2012-02-21 Thread Kookamonga
1) What is the error?
2) What does testCount() do?
3) Why are you enforcing that there are no gaps in the IDs after a
delete? What is your goal?

On Feb 21, 10:37 am, Jeresam515  wrote:
> bump

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: When to save settings?

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 9:37 AM, Kristopher Micinski  wrote:

> You can always inform them via notification if the settings don't sync
> properly with the server.
>

This. Save local preferences automatically, then start a Service to do the
sync in the background. A notification can let them retry if it fails. Or
use the SDK's "official" sync facilities to allow the user to enable sync
for your app, like you can do for GMail, Calendar, etc.

-
TreKing  - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Invoking web service from android.

2012-02-21 Thread James Black
You should ask on a ksoap list as this is not an android issue.
On Feb 20, 2012 11:29 PM, "indumathy raju"  wrote:

> Hi all,
> I am new to android development. I am trying to invoke webservice from
> android using Ksoap2- 2.5 version. Below is the snippet of code I'm using.
> Getting SOAP-ENV: server faultstring excception. I couldt understand this
> error. help me to fix this.
>
> *ERROR*
> SoapFault - faultcode: 'SOAP-ENV:Server' faultstring: 'Castor
> unmarshalling exception; nested exception is
> org.exolab.castor.xml.MarshalException: The namespace associated with the
> prefix 'c' could not be resolved.' faultactor: 'null' detail: null
>
> *Code Snippet*
>
> protected void getWsUsingSoap() {
>  final String NAMESPACE = "http://com/ctdc/service";;
>  final String URL =
> "
> http://10.0.2.2:8080/mySpringPro/itemservice/services/ServiceImpl.wsdl";;
>
>  final String SOAP_ACTION = "ServiceImpl";
>  final String METHOD_NAME = "message";
>
> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
>
> SoapSerializationEnvelope envelope =
> new SoapSerializationEnvelope(SoapEnvelope.VER11);
> envelope.setOutputSoapObject(request);
> HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
>
> try {
> androidHttpTransport.call(SOAP_ACTION, envelope);
>  //SoapPrimitive result =
> (SoapPrimitive)envelope.getResponse();
>  //System.out.println("res"+result.toString());
>
> //Object response= envelope.getResponse();
> Object resultsRequestSOAP = envelope.bodyIn;
> //SoapObject resultsRequest = (SoapObject) resultsRequestSOAP;
> System.out.println("Received ===:"
> +resultsRequestSOAP);
> } catch (Exception e) {
> e.printStackTrace();
> }
>
> }
>
>
> --
> Regards,
>
> INDU
>
>
>
>
>
>
> --
> Cheers,
>
> INDU
>
>
>
>
>
>
> --
> Cheers,
>
> INDU
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] Re: Why doesn't this delete method work to vacuum the Database?

2012-02-21 Thread Nikolay Elenkov
On Wed, Feb 22, 2012 at 12:37 AM, Jeresam515  wrote:
> bump
>

Instead of bumping, you should try to explain what the problem is.
What are you trying to do? What do you expect to happen?
What is actually happening? If an exception, provide a stacktrace.
Explain what you mean by 'vacuum', etc.

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


Re: [android-developers] Re: Setting android:layout_alignParentTop from code?

2012-02-21 Thread Marcin Orlowski
Hi,

Yep, addRule() is what I need. I already found that. Thanks anyway.

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook *,
*Google+*and
*Twitter *



On 21 February 2012 15:52, Kookamonga  wrote:

> I think I can be a bit more helpful. You basically have to use the
> addRule method of RelativeLayout.LayoutParams as shown here:
>
>
> http://android-coding.blogspot.com/2011/06/set-relativelayoutalignparenttoprelativ.html
>
> On Feb 21, 9:43 am, Kookamonga  wrote:
> > https://www.google.com/webhp?&ion=1#hl=en&output=search&sclient=psy-a...
> >
> > On Feb 21, 8:53 am, Marcin Orlowski  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I am trying to set android:layout_alignParentTop and
> > > android:layout_alignParentLeft on view I create from code but I do not
> see
> > > a way to achieve that. Am I missing something or these params can only
> be
> > > set in XML?
> >
> > > Regards,
> > > Marcin Orlowski
> >
> > > *Tray Agenda * - keep you daily schedule
> handy...
> > > *Date In Tray*  - current date at
> glance...
> > > WebnetMobile on *Facebook *,
> > > *Google+*and
> > > *Twitter *
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

[android-developers] Re: Setting android:layout_alignParentTop from code?

2012-02-21 Thread Marcin Orlowski
On 21 February 2012 14:53, Marcin Orlowski  wrote:


> I am trying to set android:layout_alignParentTop and
> android:layout_alignParentLeft on view I create from code but I do not see
> a way to achieve that. Am I missing something or these params can only be
> set in XML?
>

For archiving purposes:

LinearLayout l = new LinearLayout(this);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(50,
50);
params.addRule(RelativeLayout.ALIGN_PARENT_LEFT);
params.addRule(RelativeLayout.ALIGN_PARENT_TOP);
l.setLayoutParams( params );

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook *,
*Google+*and
*Twitter *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Why doesn't this delete method work to vacuum the Database?

2012-02-21 Thread Jeresam515
bump

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: When to save settings?

2012-02-21 Thread Kristopher Micinski
On Tue, Feb 21, 2012 at 10:35 AM, Hank  wrote:
> I forgot to note that when saving, the interests are uploaded to a web
> server. So at the very least if it fails, I should notify the user.
>

I agree with TreKing's response, there's no reason that you even has
to ask for confirmation to save preferences.  You can always inform
them via notification if the settings don't sync properly with the
server.

kris

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


[android-developers] Re: Problem with manual positioning of RelativeLayout childs

2012-02-21 Thread Marcin Orlowski
The culprit was this line:

>  MarginLayoutParams params = new ViewGroup.MarginLayoutParams(50, 50);

since my parent is RelativeLayout, it should like this:

RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(50,
50);

and it all works now. Thanks guys.

Regards,
Marcin Orlowski

*Tray Agenda * - keep you daily schedule handy...
*Date In Tray*  - current date at glance...
WebnetMobile on *Facebook *,
*Google+*and
*Twitter *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: When to save settings?

2012-02-21 Thread Hank
I forgot to note that when saving, the interests are uploaded to a web
server. So at the very least if it fails, I should notify the user.

On Feb 21, 10:00 am, TreKing  wrote:
> On Tue, Feb 21, 2012 at 8:54 AM, Hank  wrote:
> >  I am trying to decide if I should have an explicit save button or ask the
> > user if they want to save when they are leaving that activity.
>
> Why? Each of those presents an unnecessary extra step for the user. The
> standard preference screen saves changes on the fly. At minimum I'd expect
> a custom preference screen to save all of my settings once I backed out of
> the page.
>
> -
> 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: Service not available

2012-02-21 Thread ajay talreja
Did u checked the code...i think there can be problem in
the code also for reverse geocoding...please check...


On Feb 21, 7:53 pm, Mychandus Msb  wrote:
> I got this error many times, this is not because of the code, this is
> because of device not able to get proper satellite signals. if you can get
> the device into open sky you may get the required inforamtion.
>
>
>
>
>
>
>
>
>
> On Tue, Feb 21, 2012 at 7:57 PM, ajay talreja  wrote:
> > I want to retrieve the address of the location when i am passing the
> > longitude and latitude from Command line through Telnet...The
> > application do get latitude and longitude updates when i change from
> > command line..
> > im providing with the code...the code doesn't have any
> > error.but is unable to show the address of the
> > locationit shows "LocationProvider.TEMPORARILY_UNAVAILABLE
> > "If the service is not available how is it taking the values
> > from command line..?
> > i donno where i have gone wrong... :-(
> > please help..
>
> > import java.io.IOException;
> > import java.text.SimpleDateFormat;
> > import java.util.Date;
> > import java.util.List;
> > import java.util.Locale;
>
> > import android.app.Activity;
> > import android.app.AlertDialog;
> > import android.content.DialogInterface;
> > import android.location.Address;
> > import android.location.Geocoder;
> > import android.location.Location;
> > import android.location.LocationListener;
> > import android.location.LocationManager;
> > import android.location.LocationProvider;
> > import android.os.Bundle;
> > import android.widget.TextView;
> > import android.widget.Toast;
>
> > public class GPSTest extends Activity implements LocationListener {
>
> >   private TextView mInfoText;
> >   private LocationManager mLoc;
>
> >   private static final Integer MINIMUM_UPDATE_INTERVAL = 1; //
> > update every 10 seconds
> >   private static final Integer MINIMUM_UPDATE_DISTANCE = 10;    //
> > update every 10 meters
>
> >   /** Called when the activity is first created. */
> >   @Override
> >   public void onCreate(Bundle savedInstanceState) {
> >      super.onCreate(savedInstanceState);
> >      setContentView(R.layout.main);
>
> >      // get a handle to the text view to display the GPS location
> > data
> >      mInfoText = (TextView) findViewById(R.id.infotext);
>
> >      // the location manager allows access to the current location
> > and GPS status
> >      mLoc = (LocationManager) getSystemService(LOCATION_SERVICE);
> >   }
>
> >   @Override
> >   /**
> >    * onResume is is always called after onStart, even if the app
> > hasn't been paused
> >    */
> >   protected void onResume() {
> >      // add a location listener and request updates every 1ms or
> > 10m
> >      mLoc.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> > MINIMUM_UPDATE_INTERVAL,
> >            MINIMUM_UPDATE_DISTANCE, this);
> >      super.onResume();
> >   }
>
> >   @Override
> >   protected void onPause() {
> >      // GPS, as it turns out, consumes battery like crazy
> >      mLoc.removeUpdates(this);
> >      super.onPause();
> >   }
>
> >   @Override
> >   protected void onStop() {
> >      // may as well just finish since saving the state is not
> > important for this toy app
> >      finish();
> >      super.onStop();
> >   }
>
> >   public void onLocationChanged(Location loc) {
> >      // display some information based on the current position
> >      StringBuilder sb = new StringBuilder("Your current location is:\n
> > \n");
>
> >      sb.append("Longitude: ");
> >      sb.append(loc.getLongitude());
> >      sb.append('\n');
>
> >      sb.append("Latitude: ");
> >      sb.append(loc.getLatitude());
> >      sb.append('\n');
>
> >      sb.append("Altitiude: ");
> >      sb.append(loc.getAltitude());
> >      sb.append('\n');
>
> >      sb.append("Accuracy: ");
> >      sb.append(loc.getAccuracy());
> >      sb.append('\n');
>
> >      sb.append("Timestamp: ");
> >      Date timestamp = new Date(loc.getTime());
> >      sb.append(new SimpleDateFormat().format(timestamp));
>
> >      try{
> >          Geocoder gcd = new Geocoder(this, Locale.getDefault());
> >          List addresses =
> >              gcd.getFromLocation(loc.getLatitude(),
> > loc.getLongitude(),100);
> >          if (addresses.size() > 0) {
>
> >              StringBuilder result = new StringBuilder();
> >              for(int i = 0; i < addresses.size(); i++){
> >                  Address address =  addresses.get(i);
> >                  int maxIndex = address.getMaxAddressLineIndex();
> >                  for (int x = 0; x <= maxIndex; x++ ){
> >                      result.append(address.getAddressLine(x));
>
> >                      result.append(",");
> >                  }
> >                  result.append(address.getLocality());
> >                  result.append(",");
> >                  result.append(address.getPostalCode());
> >              

Re: [android-developers] When to save settings?

2012-02-21 Thread TreKing
On Tue, Feb 21, 2012 at 8:54 AM, Hank  wrote:

>  I am trying to decide if I should have an explicit save button or ask the
> user if they want to save when they are leaving that activity.
>

Why? Each of those presents an unnecessary extra step for the user. The
standard preference screen saves changes on the fly. At minimum I'd expect
a custom preference screen to save all of my settings once I backed out of
the page.

-
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: Problem with manual positioning of RelativeLayout childs

2012-02-21 Thread Pent
My code for that is:

RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(
width, height
);
lp.setMargins( x, y, 0, 0 );
child.setLayoutParams( lp );

Both child and the rel layout are dynamically created in my case,
maybe it makes a difference.

Pent

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


Re: [android-developers] Problem with manual positioning of RelativeLayout childs

2012-02-21 Thread Kostya Vasilyev
You need use a subclass of LayoutParams specific to the enclosing layout's
class.  In this case,  RelativeLayout.LayoutParams (IIRC, typing this from
a phone).

Also note: top/left alignment is the default.
21.02.2012 18:46 пользователь "Marcin Orlowski" 
написал:

> Hi,
>
> I got a relative layout to which I want to add some manually positioned
> childs. The thing I failed
> to do correctly now is the latter - enforcing certain position of the
> child. If anyone knows
> what I am doing wrong...
>
> My "parent layout":
>
>  android:id="@+id/container"
> android:layout_width="fill_parent"
> android:layout_height="110dp" >
> 
>
> the "child" empty linear layout, inflated (because I am not sure I can
> set layout_alignParentXXX from code...) from this XML (box.xml):
>
> http://schemas.android.com/apk/res/android";
> android:layout_width="50dp"
> android:layout_height="50dp"
> android:layout_alignParentTop="true"
> android:layout_alignParentLeft="true"
> >
> 
>
> My idea of placing it whenever I want is to adjust layout_marginTop and
> layout_marginLeft.
> This is what I do:
>
>RelativeLayout containerView = (RelativeLayout)findViewById(
> R.id.container );
>LinearLayout l = (LinearLayout)this.getLayoutInflater().inflate(
> R.layout.box, null);
>
>l.setBackgroundColor( getResources().getColor( R.color.red ) );
>
>MarginLayoutParams params = new ViewGroup.MarginLayoutParams(50,
> 50);
>params.setMargins(50, 70, 0, 0);
>l.setLayoutParams( params );
>
>containerView.addView( l );
>
> In result I got layout added but at left/top corner (0,0) not at (50,70).
> I also tried
>
>containerView.addView( l, params );
>
> but no effect. Ideas?
>
> Regards,
> Marcin Orlowski
>
> *Tray Agenda * - keep you daily schedule
> handy...
> *Date In Tray*  - current date at glance...
> WebnetMobile on *Facebook *, 
> *Google+*and
> *Twitter *
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] When to save settings?

2012-02-21 Thread Hank
My application has a interests page where the user can select which
interests they wanted selected. It looks like an expandable listview
with checkboxes. I am trying to decide if I should have an explicit
save button or ask the user if they want to save when they are leaving
that activity. I tried looking at the new Android Design page for some
guidance but I couldn't find anything, so I was wondering what would
be considered the "Android" convention for implementing something like
this?

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


Re: [android-developers] Service not available

2012-02-21 Thread Mychandus Msb
I got this error many times, this is not because of the code, this is
because of device not able to get proper satellite signals. if you can get
the device into open sky you may get the required inforamtion.

On Tue, Feb 21, 2012 at 7:57 PM, ajay talreja  wrote:

> I want to retrieve the address of the location when i am passing the
> longitude and latitude from Command line through Telnet...The
> application do get latitude and longitude updates when i change from
> command line..
> im providing with the code...the code doesn't have any
> error.but is unable to show the address of the
> locationit shows "LocationProvider.TEMPORARILY_UNAVAILABLE
> "If the service is not available how is it taking the values
> from command line..?
> i donno where i have gone wrong... :-(
> please help..
>
>
>
>
>
> import java.io.IOException;
> import java.text.SimpleDateFormat;
> import java.util.Date;
> import java.util.List;
> import java.util.Locale;
>
> import android.app.Activity;
> import android.app.AlertDialog;
> import android.content.DialogInterface;
> import android.location.Address;
> import android.location.Geocoder;
> import android.location.Location;
> import android.location.LocationListener;
> import android.location.LocationManager;
> import android.location.LocationProvider;
> import android.os.Bundle;
> import android.widget.TextView;
> import android.widget.Toast;
>
> public class GPSTest extends Activity implements LocationListener {
>
>   private TextView mInfoText;
>   private LocationManager mLoc;
>
>   private static final Integer MINIMUM_UPDATE_INTERVAL = 1; //
> update every 10 seconds
>   private static final Integer MINIMUM_UPDATE_DISTANCE = 10;//
> update every 10 meters
>
>   /** Called when the activity is first created. */
>   @Override
>   public void onCreate(Bundle savedInstanceState) {
>  super.onCreate(savedInstanceState);
>  setContentView(R.layout.main);
>
>  // get a handle to the text view to display the GPS location
> data
>  mInfoText = (TextView) findViewById(R.id.infotext);
>
>  // the location manager allows access to the current location
> and GPS status
>  mLoc = (LocationManager) getSystemService(LOCATION_SERVICE);
>   }
>
>   @Override
>   /**
>* onResume is is always called after onStart, even if the app
> hasn't been paused
>*/
>   protected void onResume() {
>  // add a location listener and request updates every 1ms or
> 10m
>  mLoc.requestLocationUpdates(LocationManager.GPS_PROVIDER,
> MINIMUM_UPDATE_INTERVAL,
>MINIMUM_UPDATE_DISTANCE, this);
>  super.onResume();
>   }
>
>   @Override
>   protected void onPause() {
>  // GPS, as it turns out, consumes battery like crazy
>  mLoc.removeUpdates(this);
>  super.onPause();
>   }
>
>   @Override
>   protected void onStop() {
>  // may as well just finish since saving the state is not
> important for this toy app
>  finish();
>  super.onStop();
>   }
>
>   public void onLocationChanged(Location loc) {
>  // display some information based on the current position
>  StringBuilder sb = new StringBuilder("Your current location is:\n
> \n");
>
>  sb.append("Longitude: ");
>  sb.append(loc.getLongitude());
>  sb.append('\n');
>
>  sb.append("Latitude: ");
>  sb.append(loc.getLatitude());
>  sb.append('\n');
>
>  sb.append("Altitiude: ");
>  sb.append(loc.getAltitude());
>  sb.append('\n');
>
>  sb.append("Accuracy: ");
>  sb.append(loc.getAccuracy());
>  sb.append('\n');
>
>  sb.append("Timestamp: ");
>  Date timestamp = new Date(loc.getTime());
>  sb.append(new SimpleDateFormat().format(timestamp));
>
>  try{
>  Geocoder gcd = new Geocoder(this, Locale.getDefault());
>  List addresses =
>  gcd.getFromLocation(loc.getLatitude(),
> loc.getLongitude(),100);
>  if (addresses.size() > 0) {
>
>  StringBuilder result = new StringBuilder();
>  for(int i = 0; i < addresses.size(); i++){
>  Address address =  addresses.get(i);
>  int maxIndex = address.getMaxAddressLineIndex();
>  for (int x = 0; x <= maxIndex; x++ ){
>  result.append(address.getAddressLine(x));
>
>  result.append(",");
>  }
>  result.append(address.getLocality());
>  result.append(",");
>  result.append(address.getPostalCode());
>  result.append("\n\n");
>  }
>  sb.append(result.toString());
>  }
>  }
>  catch(IOException ex){
> sb.append(ex.getMessage().toString());
>  }
>
>  mInfoText.setText(sb.toString());
>   }
>
>   public void onProviderDisabled(String provider) {
>  // called if/when the GPS is disabled in settings
>  Toast.makeText(this, "GPS disabled", Toast.

[android-developers] Re: Setting android:layout_alignParentTop from code?

2012-02-21 Thread Kookamonga
I think I can be a bit more helpful. You basically have to use the
addRule method of RelativeLayout.LayoutParams as shown here:

http://android-coding.blogspot.com/2011/06/set-relativelayoutalignparenttoprelativ.html

On Feb 21, 9:43 am, Kookamonga  wrote:
> https://www.google.com/webhp?&ion=1#hl=en&output=search&sclient=psy-a...
>
> On Feb 21, 8:53 am, Marcin Orlowski  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am trying to set android:layout_alignParentTop and
> > android:layout_alignParentLeft on view I create from code but I do not see
> > a way to achieve that. Am I missing something or these params can only be
> > set in XML?
>
> > Regards,
> > Marcin Orlowski
>
> > *Tray Agenda * - keep you daily schedule handy...
> > *Date In Tray*  - current date at glance...
> > WebnetMobile on *Facebook *,
> > *Google+*and
> > *Twitter *

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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   >