[android-developers] Re: SQLite and store dates

2012-04-03 Thread Michael Kuethe
Dear SgAlmeida,
everthing in SQlite is stored as a string. Even the Field wihch are marked 
as integer or numeric.
When it's possible you should Cast your Date Value to a Long Value (Unix 
Date) and store that long value in an integer Field of the sqlite database.

regards

Michael



Am Mittwoch, 28. März 2012 16:17:38 UTC+2 schrieb sgalmeida:

 Hello you all :) 

 please let me ask one question about SQLite and Android, more 
 specifically the use of dates stored on tables in SQLite. 

 I'm developing a simple app to keep to dos and task on android mobile 
 phone using SQLite to store the data. My table is quite simple: has a 
 field ID, a field Task and a field DueDate. 

 How can I store and retrieve using JAVA the task's due date on SQLite? 
 There is no cursor.GetDate :( Anyone can please help me? 

 Thank you very much! 

 Almeida

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

[android-developers] Re: Android DateTimePicker to save in database

2012-04-03 Thread Michael Kuethe
Dear Kirupa,
cast the date and time to a unix date (Java.util.date), extract the long 
representation (.getTime()) and store this value in an integer field of the 
database


regards

Michael

Am Montag, 2. April 2012 10:16:22 UTC+2 schrieb Kirupa:

 How to save time and date into database when selected from date and 
 time picker in android

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

[android-developers] game desginning

2012-04-03 Thread Ahmed Bakir
hello with physics box2d and andengine how do you make games

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Will we ever be allowed to make custom widget pickers?

2012-04-03 Thread Kevin TeslaCoil Software


 Currently there is no way to avoid using the built in widget selection 
 UI (the list of widgets you get in gingerbread when you add a widget). 
 This kind of sucks because it means you can't have anything like the 
 ICS launcher's widget page. 


Also the system widget picker in ICS doesn't even use the Holo theme. 
Definitely a pain for third party launchers.

At least there's root...
-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: Who can explain it for me ? What is the problem ? ANR in android.process.acore

2012-04-03 Thread Ali Chousein
Probably you are blocking the main thread, doing computations which
take time. Consider creating a thread which is going to do the
computations which are currently done in the main thread.

This is an important link to read and understand:
http://developer.android.com/guide/practices/design/responsiveness.html

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: ANDROID NET - Create a new parallel and open source network via mobile device for data and voice communication

2012-04-03 Thread romdroid
Seems like an interesting and high sophisticated project - if I get
you right, you want to have a connection to 2 different networks at
the same time? Isn't there a problem that you can't have 2 connections
at the same time running on a single device? Or do you want to have
something like an ad-hoc network where each Android device would act
as a node and you could decide on your device which network you want
to use right now?

On 2 Apr., 10:30, jacopo.tolja jacopo.to...@gmail.com wrote:
 In every dual-core phone, there’s a ROUTER trying to get out.

 Here the Idea, I was out in the sea about 5 miles from the coast and I
 could connect to the internet without problem.
 I have in my hand a phone that is able to transmit and receive data
 from that distance. (no advertising but is a galaxy s first generation
 about 2 year old).
 Android OS in the phone is designed to connect ONLY to the backbone
 grid. WHAT IF THE BACKBONE GRID IS MADE BY CELLPHONES IN A DYNAMIC
 WAY?
 Al Android phones should have a dual connecting feature, to the
 carrier backbone and to the ANDROID NET backbone.
 Device to device to device that will becomes node on the net.
 If the internet could be supported in a parallel way by a wireless
 device based network then it will be FREE and OPEN and could not be
 shut down.

 This could not fix completely the problem, think about the
 intercontinental underwater cable or satellite. But can change the way
 we connect on a daily basis in cities and country side.

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

2012-04-03 Thread Ali Chousein
Reading your code I understand that you need to grasp better how
AlarmManager works. I would advice you to study the AlarmManager
samples which come with the SDK installation. Search in them for
AlarmManager and you'll find examples showing how to set alarms
properly.

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-03 Thread Put_tiMe
Screen-on can be done in two ways:
 
1. User pressing the power (or home button)
2. Through code: by using power manager - wake lock - with screen-on flag.
 
Either ways, I get a 'Intent.ACTION_SCREEN_ON' intent.
Is there anyway I can distinguish between the two intents?
 
 
 
 

 

**
**

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

2012-04-03 Thread Ali Chousein
Android documentation makes very good suggestions on this:
http://developer.android.com/resources/faq/framework.html#3

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: After sent SMS successful, hope my activity will receive the sent message

2012-04-03 Thread Ali Chousein
And why you don't consider using SMSManager? If you don't, your code
won't be notified that the SMS was sent and delivered. I advice you to
reconsider your decision for not using SMSManager. Someone wrote an
excellent tutorial on this: 
http://mobiforge.com/developing/story/sms-messaging-android

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: SMS URI trigger Application

2012-04-03 Thread Ali Chousein
http://stackoverflow.com/questions/2372248/launch-sms-application-with-an-intent

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: HI, I am a game designer form HK and have done a game by UNITY

2012-04-03 Thread Ali Chousein
Have you gone through the steps explained in the following link? I
think you are trying to publish your debug APK.
http://developer.android.com/guide/publishing/publishing.html

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: passing data to android vnc viewer...

2012-04-03 Thread Ali Chousein
Consider using the putExtra method on Intent:
http://developer.android.com/reference/android/content/Intent.html#putExtra%28java.lang.String,%20android.os.Bundle%29

-
Ali Chousein
http://socialnav.blogspot.com | http://twitter.com/socialnav1
http://weatherbuddy.blogspot.com | http://twitter.com/weather_buddy
http://www.codeproject.com/KB/android/PayGol-Android.aspx
http://geo-filtered-assistant.blogspot.com

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


[android-developers] Re: developing a trivia game

2012-04-03 Thread Ali Chousein
 how is it possibleplease explain

You forgot to ask his hourly rate!

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

2012-04-03 Thread Ali Chousein
 And then if you still have
 problems, contact them:http://developer.linkedin.com/rest

Or contact me. My hourly rate is 120 Euros.

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

2012-04-03 Thread cybice
It looks like i found workaround. In all my apps error  
waitForCondition(LockCondition) timed 
out  disappeared.
The workaround is next.
I preload two copy of each texture into GPU -  texture1 and texture1copy,
and in onDrawFrame  one call i use first texture copy, next call i use 
second texture copy and so on

code sample:

int _seed=0;
public void onDrawFrame(GL10 gl) {
  if(_seed%2==0)
  {
 GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture1  );
  }else
  {
   GLES20.glBindTexture(GLES20.GL_TEXTURE_2D,  texture1copy);
  }
  _seed++;
}

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

2012-04-03 Thread Zsolt Vasvari
By reading the documentation and learning how to program.

On Tuesday, April 3, 2012 2:53:38 PM UTC+8, Ahmed Bakir wrote:

 hello with physics box2d and andengine how do you make games


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

2012-04-03 Thread TreKing
On Fri, Mar 30, 2012 at 11:39 AM, Vinaya Godbole vinayag1...@gmail.comwrote:

 how is it possibleplease explain


You write code to execute the logic you just described. This is called
programming, or software development.

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

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

Re: [android-developers] Re: developing a trivia game

2012-04-03 Thread Shoaib Malgave
tnxs


On 4/3/12, Ali Chousein ali.chous...@gmail.com wrote:
 how is it possibleplease explain

 You forgot to ask his hourly rate!

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

2012-04-03 Thread TreKing
On Mon, Apr 2, 2012 at 3:54 AM, Ankur-Ra rathore.an...@gmail.com wrote:

 I have developed an Android app and want to know how to use the
 Hierarchy Viewer tool for Optimizing the User Interface,what are the
 meaning of the various indications that this tool displays?


http://developer.android.com/guide/developing/debugging/debugging-ui.html

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

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

Re: [android-developers] Problem with multiple redraw of overlayitem

2012-04-03 Thread TreKing
On Wed, Mar 28, 2012 at 7:16 PM, Linoxps p12li...@gmail.com wrote:

 Does anyone have any idea on how to redrawn a drawable marker over and
 over again without affecting the transparency or shadows that might
 have?


What does your draw method look like?

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

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

Re: [android-developers] Project contains Errors - for new created file

2012-04-03 Thread TreKing
On Thu, Mar 29, 2012 at 9:48 AM, Marcus Maximus marcus.pres...@gmail.comwrote:

 I am trying to create my first android project and when I want to
 compile the newly created file, eclipse gives me an error message.


Do a Google search of the exact error you get.

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

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

Re: [android-developers] InputConnection becomes inactive after launching Activity from IME

2012-04-03 Thread Shoaib Malgave
tnxs


On 4/3/12, tsukishiro tsukishir...@gmail.com wrote:
 Hello guys,

 I launched a translucent Activity that contains custom views from my IME
 (so that I can have a full-screen IME whose layout I can control
 relatively). My problem is when I tried to call commitText of the
 InputConnection that I passed from my IME to the translucent Activity,
 nothing happens. No output is displayed on the EditText or input field in
 the background Activity (this is the Activity that launched my IME). Does
 anyone know how to re-activate my InputConnection with the Activity behind
 my translucent Activity?

 Thanks and best regards,
 - tsukishiro

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

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


Re: [android-developers] android market limitations question

2012-04-03 Thread TreKing
On Thu, Mar 29, 2012 at 3:36 PM, gsk gys...@gmail.com wrote:

 Hi, I have two questions about publishing apps in android market.


http://support.google.com/googleplay/android-developer/bin/answer.py?hl=enanswer=136601

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

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

Re: [android-developers] Difference between user-induced screen on and programmatically induced screen on.

2012-04-03 Thread TreKing
On Tue, Apr 3, 2012 at 2:29 AM, Put_tiMe putt...@gmail.com wrote:

 Is there anyway I can distinguish between the two intents?


If you explain why you need to distinguish, maybe you'll get a hand in
employing a solution to the actual problem you're having.

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

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

[android-developers] CSV android api with formatter for google contacts?

2012-04-03 Thread Abalufaske
Hi there i was just wondering if there is an API of csv wich makes your 
file compatible with csv importer of android contacts

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

2012-04-03 Thread Kostya Vasilyev
Ok, understood.

fill_parent refers to the parent's width. Perhaps the text view's parent
changes its width?

An easy way to find out is to temporarily assign bright, solid, distinct
background colors to views in your hierarchy.

-- K

3 апреля 2012 г. 4:24 пользователь adev enric...@gmail.com написал:

 I understand what you are saying, but I am saying that it does not
 work.
 For the textview:
 layout_width=fill_parent
 gravity=right|center_vertical

 It still does not work.
 It looks fine until the ad loads.



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

2012-04-03 Thread Put_tiMe
I have registered for SCREEN_ON intent.
 
In the alarm-manager, I grab a wake_lock with 

*FULL_WAKE_LOCK* flag and that switches on the screen.
 
This sends a SCREEN_ON intent.
 
In the meanwhile, the user could also have switched on the screen.
 
I want to handle this intent in different ways, depending on where it 
originated from.
 
 

On Tuesday, April 3, 2012 2:02:57 PM UTC+5:30, TreKing wrote:

 On Tue, Apr 3, 2012 at 2:29 AM, Put_tiMe putt...@gmail.com wrote:

 Is there anyway I can distinguish between the two intents?


 If you explain why you need to distinguish, maybe you'll get a hand in 
 employing a solution to the actual problem you're having.


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



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

[android-developers] Re: Detect SMS sending limitation

2012-04-03 Thread Jawwad Farooq
Any further comments?

Thanks

On Mar 29, 6:32 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Thu, Mar 29, 2012 at 3:33 AM, Jawwad Farooq jawwad.far...@gmail.com 
 wrote:
  Is there still a limitation on sendingSMSin Android 2.2+ versions?
  In Android 2.2, an App can't send more than 100 messages in an hour.

 AFAIK, yes.

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

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

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


[android-developers] physics box 2d andengine game

2012-04-03 Thread Ahmed Bakir
beginner in developing anything so can someone please give me some help here

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

2012-04-03 Thread Daniel Drozdzewski
right away:

I suggest learn something first, then spend decent amount of time
grafting, before asking for any help, and when asking, please ask
precise and specific questions, as it is an impossible task to give
you *some help here* in developing *anything*.

There must be a reason, why there aren't any books or courses titled:
'Developing $hit hot games/apps/*anything* for dummies' just like
there are no books titled 'Teach yourself neurosurgery in a weekend'.




On 3 April 2012 10:41, Ahmed Bakir bkr3...@gmail.com wrote:
 beginner in developing anything so can someone please give me some help here

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



-- 
Daniel Drozdzewski

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

2012-04-03 Thread yogendra G
Hi All,
Hope all are doing good.

I need a help as mentioned in subject i.e. I have got requirement to
display a Ruler with some values say like 1,2,3... and based on setting of
ruler value i need to get. So please give me with some ideas how to do it
possible with few samples for the same.


Thanks  Regards,
Yogendra G

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

[android-developers] eclipse can't connect the debugger

2012-04-03 Thread karan hans
hi,
iam a newbie so please help me out.
 
I'am running the eclipse in debuggable mode. i have entered the debuggable 
mode in AndroidManifest.xml as true.
 
However eclipse hangs while running in debuggable mode.
 
i get the following message in the console window.
 

[2012-04-03 15:10:43 - Droid1] --

[2012-04-03 15:10:43 - Droid1] Android Launch!

[2012-04-03 15:10:43 - Droid1] adb is running normally.

[2012-04-03 15:10:43 - Droid1] Performing 
com.androidbook.droid1.Droid1Activity activity launch

[2012-04-03 15:10:43 - Droid1] Automatic Target Mode: Preferred AVD 'AVD' 
is not available. Launching new emulator.

[2012-04-03 15:10:43 - Droid1] Launching a new emulator with Virtual Device 
'AVD'

[2012-04-03 15:10:50 - Emulator] emulator: WARNING: Unable to create 
sensors port: Unknown error

[2012-04-03 15:10:50 - Droid1] New emulator found: emulator-5554

[2012-04-03 15:10:50 - Droid1] Waiting for HOME ('android.process.acore') 
to be launched...

[2012-04-03 15:11:50 - Droid1] HOME is up on device 'emulator-5554'

[2012-04-03 15:11:50 - Droid1] Uploading Droid1.apk onto device 
'emulator-5554'

[2012-04-03 15:11:53 - Droid1] Installing Droid1.apk...

[2012-04-03 15:12:44 - Droid1] Success!

[2012-04-03 15:12:44 - Droid1] Starting activity 
com.androidbook.droid1.Droid1Activity on device emulator-5554

[2012-04-03 15:12:46 - Droid1] ActivityManager: Starting: Intent { 
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 
cmp=com.androidbook.droid1/.Droid1Activity }

[2012-04-03 15:12:47 - Droid1] Attempting to connect debugger to 
'com.androidbook.droid1' on port 8631

 

 

As you can see eclipse hangs and is unable to connect the debugger

What could be wrong?

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

2012-04-03 Thread Mark Murphy
On Tue, Apr 3, 2012 at 5:28 AM, Jawwad Farooq jawwad.far...@gmail.com wrote:
 Any further comments?

No.

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

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

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


Re: [android-developers] physics box 2d andengine game

2012-04-03 Thread David Olsson
You can also stop asking the same question over and over again. Read the
answers you already have and learn how to code. Or pay someone to do it for
you.

On Tue, Apr 3, 2012 at 11:58 AM, Daniel Drozdzewski 
daniel.drozdzew...@gmail.com wrote:

 right away:

 I suggest learn something first, then spend decent amount of time
 grafting, before asking for any help, and when asking, please ask
 precise and specific questions, as it is an impossible task to give
 you *some help here* in developing *anything*.

 There must be a reason, why there aren't any books or courses titled:
 'Developing $hit hot games/apps/*anything* for dummies' just like
 there are no books titled 'Teach yourself neurosurgery in a weekend'.




 On 3 April 2012 10:41, Ahmed Bakir bkr3...@gmail.com wrote:
  beginner in developing anything so can someone please give me some help
 here
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en



 --
 Daniel Drozdzewski

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

2012-04-03 Thread adev
the parent is a tablerow, then a tablelayout, then linear layout
(relative)
so I have width set to fill_parent set to all.

I actually do have it colored already inorder to have a border
the size does not seem to change.

I think the strange part is that this does not happen til after the
adview loads.
at first, I thought it was due to the height changing, but I tried
fixing the height of the adview and that did not change anything.

On Apr 3, 5:05 am, Kostya Vasilyev kmans...@gmail.com wrote:
 Ok, understood.

 fill_parent refers to the parent's width. Perhaps the text view's parent
 changes its width?

 An easy way to find out is to temporarily assign bright, solid, distinct
 background colors to views in your hierarchy.

 -- K

 3 апреля 2012 г. 4:24 пользователь adev enric...@gmail.com написал:







  I understand what you are saying, but I am saying that it does not
  work.
  For the textview:
  layout_width=fill_parent
  gravity=right|center_vertical

  It still does not work.
  It looks fine until the ad loads.

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

2012-04-03 Thread Chris Ruskai
Is this project still going on?

On Thu, Dec 1, 2011 at 3:50 AM, Sushant Ratnaparkhi 
sushant.ratnapar...@gmail.com wrote:

 hey Alexander,

 I am an engineer in comp sci.
 I have good programming experience in JAVA and C++,  and some exp in
 android SDK (have developed one app, didn't publish).
 and I am between the jobs, so i would like to work with you.
 email me if you are interested.

 Regards,
 Sushant R




 On Thu, Dec 1, 2011 at 2:16 PM, Alexander Turda 
 gamingpione...@gmail.comwrote:

 Ok I'm working on a great app,and I really need someone to code with me.

 It's simple,if you are interested,you contact me,I give you a little
 test,if you pass it we are a team and I give you the source code.

 The app which I'm working on is finished 90%.

 If you are asking yourself about the money,yes you will be paid,but ONLY
 after the launch,and keep in mind that if you pass the test i will give you
 the source code to a unrealeased 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


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

2012-04-03 Thread Giuseppe
During the chronometer counting, if the user rotate the screen, the counter 
return to 00.00 and stop !!! how do solve it?

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

[android-developers] Re: Chronometer save state

2012-04-03 Thread lbendlin
Per default the Android OS restarts your activity when the screen 
orientation changes.  You can either tell the OS not to do that, or you can 
hook into the event and preserve/re-seed your timer.

On Tuesday, April 3, 2012 10:09:11 AM UTC-4, Giuseppe wrote:

 During the chronometer counting, if the user rotate the screen, the 
 counter return to 00.00 and stop !!! how do solve it?

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

[android-developers] Re: Chronometer save state

2012-04-03 Thread Giuseppe
Yes I know how to tell the system to not do that 
with android:configChanges=orientation|keyboardHidden, but this is not 
useful for our app as this don't change the layout to the different view.
Could you help with save state ?

Il giorno martedì 3 aprile 2012 16:31:41 UTC+2, lbendlin ha scritto:

 Per default the Android OS restarts your activity when the screen 
 orientation changes.  You can either tell the OS not to do that, or you can 
 hook into the event and preserve/re-seed your timer.

 On Tuesday, April 3, 2012 10:09:11 AM UTC-4, Giuseppe wrote:

 During the chronometer counting, if the user rotate the screen, the 
 counter return to 00.00 and stop !!! how do solve it?



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

[android-developers] Re: Chronometer save state

2012-04-03 Thread Giuseppe
Yes I know how to tell the system to not do that 
with android:configChanges=orientation|keyboardHidden, but this is not 
useful for our app as this don't change the layout to the different view.
Could you help with save state ?

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

2012-04-03 Thread Nikolay Elenkov
On Tue, Apr 3, 2012 at 11:39 PM, Giuseppe porcelli.giuse...@gmail.com wrote:
 Yes I know how to tell the system to not do that
 with android:configChanges=orientation|keyboardHidden, but this is not
 useful for our app as this don't change the layout to the different view.
 Could you help with save state ?

Save and restore the base time. Then start/stop as necessary.

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

2012-04-03 Thread Justin Anderson

 Could you help with save state ?

http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState%28android.os.Bundle%29


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


On Tue, Apr 3, 2012 at 8:42 AM, Nikolay Elenkov
nikolay.elen...@gmail.comwrote:

 On Tue, Apr 3, 2012 at 11:39 PM, Giuseppe porcelli.giuse...@gmail.com
 wrote:
  Yes I know how to tell the system to not do that
  with android:configChanges=orientation|keyboardHidden, but this is not
  useful for our app as this don't change the layout to the different view.
  Could you help with save state ?

 Save and restore the base time. Then start/stop as necessary.

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

2012-04-03 Thread sangram
Hi all,
We are planning to write openipmp DRM plugin for android. Our target
will be ICS version on OMAP4 board(Blaze).
Has anybody done similar kind of work in the past? Just wanted to know
how should one go about it?
Is there any other alternative for openipmp?
thanks,
Sangram

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

2012-04-03 Thread RDX 2104
Actually i want to develop an application which  read the content in the
password protected zip files

Actually my aim is to provide security to video files. When anyone access
that files without that app then that files cannot to accessible to that
person.

On Tue, Apr 3, 2012 at 4:02 AM, Justin Anderson magouyaw...@gmail.comwrote:

 Can any one give me an example for how to unzip password protected zip
 files

 And what, exactly, does this have to do with Android?

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


 On Sun, Apr 1, 2012 at 12:13 PM, RDX 2104 rdx2...@gmail.com wrote:

 Hi,

  Can any one give me an example for how to unzip password protected
 zip files

 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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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: Display Rotated/vertical Text in a webview

2012-04-03 Thread Manish Dubey
I also want to know how to display rotated text like that of ticker in
Facebook, in android?

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


Re: [android-developers] Re: Display Rotated/vertical Text in a webview

2012-04-03 Thread Kostya Vasilyev
Have you tried CSS (for WebView)? Or Canvas.rotate?

3 апреля 2012 г. 19:59 пользователь Manish Dubey manishja...@gmail.comнаписал:

 I also want to know how to display rotated text like that of ticker in
 Facebook, in android?

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


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

2012-04-03 Thread Justin Anderson

 Actually i want to develop an application which  read the content in the
 password protected zip files

 Actually my aim is to provide security to video files. When anyone access
 that files without that app then that files cannot to accessible to that
 person.

And my question remains the same... What, specifically, does this have to
do with Android SDK development?  Zip file manipulation is not
android-specific.  Do a google search and try to find some zip tutorials in
java.

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


On Tue, Apr 3, 2012 at 9:52 AM, RDX 2104 rdx2...@gmail.com wrote:

 Actually i want to develop an application which  read the content in the
 password protected zip files

 Actually my aim is to provide security to video files. When anyone access
 that files without that app then that files cannot to accessible to that
 person.


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

[android-developers] Re: ANDROID NET - Create a new parallel and open source network via mobile device for data and voice communication

2012-04-03 Thread Chris Stratton
On Monday, April 2, 2012 4:30:48 AM UTC-4, jacopo.tolja wrote:

 Here the Idea, I was out in the sea about 5 miles from the coast and I 

could connect to the internet without problem. 

 

 Android OS in the phone is designed to connect ONLY to the backbone 
 grid. WHAT IF THE BACKBONE GRID IS MADE BY CELLPHONES IN A DYNAMIC 
 WAY? 

Al Android phones should have a dual connecting feature, to the 
 carrier backbone and to the ANDROID NET backbone. 


The mobile radio in android devices is just about entirely separate from 
android - it's done with the radio firmware running on the radio processor, 
mostly out of sight/detail control from android.

If you wanted to do something in the way of a peer-to-peer mesh, you could 
look at what was tried with the wifi on the OLPC machines.  My impression 
is it did not work as well as hoped.  One major issue would be battery life 
- you are spending your battery to move someone else's traffic.  Granted 
wifi isn't designed to be as careful of power as cellular radios are, but 
it's an area where you can probably make the changes to get some 
functionality with merely a rooted device, instead of hacking undocumented 
radio firmware.

To really build this system, you'll probably have better luck with 
specialized hardware - perhaps some of the long range zigbee stuff, or get 
an amateur radio license (not hard these days) and either do something 
really custom, or extend existing ideas.

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

[android-developers] Re: Gallery app... bitmaps exceed memory in listView

2012-04-03 Thread Streets Of Boston
Don't load your images in full (100%) size. Load them no larger (or maybe 
slightly larger) than the size of the screen (in pixels).
Take a look at this link:
http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html
 
and look at the 'inSampleSize' parameter: Set this to any value larger than 
1 (preferably powers of 2) to load smaller images.


On Monday, April 2, 2012 7:46:19 PM UTC-4, Farhan wrote:

 Hello everyone,

 I populate a list of image urls and pass it to a listAdapter. The getView 
 gets the 3 successive urls (from the list) for the position in list it is 
 called for, and downloads them, and adds it to a row of the list. The list 
 works fine. But when I click on a picture to fire an intent and show a 
 bigger picture (by modifying the url passed as intent extra), my 
 application crashes, saying that bitmap exceed memory. 

 I am pretty sure that an image can not be that big in size to take all 
 space from heap! Any suggestions on how to go about the issue? I need to 
 keep the images from the listView, so I can't remove them from the 
 imageViews when I go to the next activity. For the same reason, I can not 
 finish() my list activity too, when an image is clicked. I feel I am stuck 
 here. Any help is much appreciated


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

Re: [android-developers] Re: Hello everyone, what i have done so far regarding passing a ListView from one activity to another

2012-04-03 Thread tarun sablok
  Firstly to make tts  work in your current activity use   init()  function
which initializes the tts engine for  you in the current  activity .

 secondly you can include the speak function in the onListItenClick()   ,
in which you can get the exat position where it was  cllicked  and get the
text from the array list by passing the position as the index.

Cheers

Tarun


On Mon, Apr 2, 2012 at 9:11 PM, Soyer mblack...@gmail.com wrote:

 thanks a lot mate. that worked, i have to resolve the TTS issue now,
 do have any idea about the second part of my thread(Regarding the
 TTS)? i think the tts doesn't accept list view, so i thought of making
 use of a loop to go through the different elements in the listso
 in this way i can manipulate these elements as well for a better
 result...

 for(int i=0; i=fLat.lastIndexOf(fLat);i++){

  System.out.println(=38+flat[i]);
  }


 so i tried the above loop to print out the elements separately (Just
 to see this works) but as we know the syntax of flat[] is for an array
 whilst flat is an arraylist

 any ideas about this matter ?

 On Apr 2, 5:36 pm, tarun sablok tarun.sab...@gmail.com wrote:
  You have to use  * flat  = getIntent().
  getStringArrayListExtra(fromLat);  * to get the  arraylist which has
 been
  passed  and not  create a new  Intent object to get the list.
  *
  *
  *Cheers *
  *Tarun*
  *
  *
  *
  *
 
 
 
 
 
 
 
  On Mon, Apr 2, 2012 at 3:43 PM, Soyer mblack...@gmail.com wrote:
   Sorry i don't know if i am getting you properly, but this one is
   different then the other, i found the method how to pass a list from
   one activity to another but still for some reason it's not being
   passed and it's returning null.
 
   Don't be so hasty to comment before understanding the thread
   properly !!!
 
   On Apr 2, 12:03 pm, Zsolt Vasvari zvasv...@gmail.com wrote:
Why spam the list with a new thread?  Your previous one is just
 below.
If
you do this, NOBODY is going to help you.
 
On Monday, April 2, 2012 5:52:35 AM UTC+8, Soyer wrote:
 
 Hello everyone,
 
 i posted a question about passing a listview from one activity to
 another and this is what i did so far..
 
 the first activity is this:
 
   Bundle bundle = new Bundle(1);
 
 bundle.putStringArrayList(fromLat, fromLat);
 
 Intent intent1=new
 Intent(piecesActivity.this,ttsActivity.class);
 
 intent1.putStringArrayListExtra(fromLat,
 fromLat);
 
 startActivity(intent1);
startActivityForResult(intent1, 2);
 
 in The Second Activity is:
 
  ArrayList StringfLat = new ArrayListString ();
 
 Intent intent=new Intent();
  fLat=intent.getStringArrayListExtra(fromLat);
 
 System.out.println(=38+fLat);
 
 and in the second activity i am trying to make the list as a
 text_to_speach:
 
 @Override
 public void onClick(View v) {
 
   if (fLat!=null  ((CharSequence)
   fLat).length()0)
 {
Toast.makeText(ttsActivity.this, Saying:  +
 fLat,
 Toast.LENGTH_LONG).show();
tts.speak(fLat, TextToSpeech.QUEUE_ADD, null);
   }
 
 i don't know why the second activity is giving me
 NullPointerException
 (the fLat is returning Null) and the .speak method is not
 accepting a
 list view... :S
 
 I really need an advice...any Idea will be very appreciated.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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] Latency of onPreviewFrame callback when using setPreviewCallbackWithBuffer()

2012-04-03 Thread Qianqian Fang
hi developers

I am working on an android program to control an external hardware
and process camera images in the real time. The hardware interface
is an IOIO (http://www.sparkfun.com/products/10585). It controls an
LED array to turn on and off. The software captures images from the
camera
using setPreviewCallbackWithBuffer() and store a few image frames
per LED state. The camera thread and IOIO thread communicate
by wait/notify.

Unfortunately, I found that the saved camera frames are not
synchronized
with the IOIO pin status; I can only get synchronized images when
I insert a Thread.sleep(delay250) between toggling the IOIO pins
and signaling camera to start saving data.

At first, I suspected that this was caused by the communication
latency on the IOIO side. But per IOIO's author, Ytai Ben-Tsvi,
this is way too long compared to the expected latency (1~4ms), see

http://groups.google.com/group/ioio-users/browse_thread/thread/f81f057bda73c525?hl=en

If IOIO is ruled out, I now start questioning if there is
a delay when the onPreviewFrame() is triggered.

Is there a way to quantify the latency of the onPreviewFrame
callbacks?
The surfaceview seems to get updated very quickly, but I don't know
how fast a displayed frame can be passed to onPreviewFrame() for
processing.

Any android documents discuss about this?

Qianqian

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


[android-developers] (e-)books on Android XML Layouts: suggestions?

2012-04-03 Thread Jim Graham
Working on my current project, one thing I am really missing is a good,
solid, and *complete* reference covering Android XML layouts, widgets
(from the XML side), etc., from beginner to advanced, with explanations,
(maybe with examples, maybe not), and so on.

A full book/e-book would be nice.  I would strongly prefer to have a
print copy (or, again, e-book) where I could just look at the contents
and/or index, find what I need, and read for the solutions rather than
have to ask here so much.

Suggestions, anyone?

Thanks,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)|  There it was, right in the title bar:
spooky1...@gmail.com|   Microsoft Operations POS.
 Running FreeBSD 7.0  | 
ICBM / Hurricane:   | Never before has a TLA been so appropriately
   30.44406N 86.59909W  |  mis-parsed. (alt.sysadmin.recovery)

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

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


[android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Hi,

I have a hashmap with key, value pairs example :-

(msisdn,value)

43664xxx,2
43665xxx,3

now I want to display this information in a ListView but I don't know
how to feed the data to an ArrayAdapter.

HERE IS MY ADAPTER, note I want to replace myList with data from the
Hashmap a concatentated key+value.

1. Pass the above hashmap as an adapter, replacing myList with the
hashmap

adapter=new
ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

Note this is what I have without using the hashmap

THANKS IN ADVANCE


package listmodified.org;

import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.app.ListActivity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemLongClickListener;
import android.view.GestureDetector.OnGestureListener;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.widget.Toast;




public class listmodified extends ListActivity implements
OnGestureListener {
public ArrayListString myList = new
ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected or
not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};









@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

OnItemLongClickListener itemDelListener = new
OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent, View arg1,
int position, long arg3) {
// TODO Auto-generated method stub

itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is: + 
position,
Toast.LENGTH_SHORT).show();
myList.remove(this);  //remove the current object , 
position throws
an exception
adapter.notifyDataSetChanged();


return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIE  TO ARRAYLIST myList WHICH CONTAINS STRINGS
adapter=new
ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list items
gestureScanner = new GestureDetector(this);
getListView().setOnTouchListener(new View.OnTouchListener() {
  @Override
public boolean onTouch(View v, MotionEvent event) {
return gestureScanner.onTouchEvent(event);
}
});

//UPDATE VIEW DELETE WHEN ONLONG CLICK IS PRESSED
getListView().setOnItemLongClickListener(itemDelListener);

}


//LIST ITEM PRESS CHECKING
public void onListItemClick(ListView parent, View v,
int position, long id){
selection.setText(myList.get(position));
//check to see if LONGCLICK IS PRESSED
if (longClickedItem != -1) {
 Toast.makeText(listmodified.this, A short click detected,
Toast.LENGTH_SHORT).show();

}
longClickedItem=0;
}

//IMPLEMENTED BY GESTURE
@Override
public boolean onDown(MotionEvent arg0) {
// TODO Auto-generated method stub
return false;
}


@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
float velocityY) {
// TODO Auto-generated method stub
return false;
}


//CHECKS ONLONGPRESS EVENTS SET LONG PRESS TO -1,
//COOL I CAN USE THIS TO SEE IF A LONG CLICK WAS SELECTED LATER ON

@Override
 

[android-developers] Video

2012-04-03 Thread Goutom
Hi

I want to record video using default camera app in the phone.
I tried using code from android training.It dose  not work.
It dose not return video output in the activity result.
I want a simple project which takes video and works perfectly.

Take care.

Regards
RiskyCoder

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

2012-04-03 Thread Justin Anderson
Keep in mind that HashMap does not have an order...  ArrayAdapter does
everything based on a position value, which indicates an ordered collection
of some sort.

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


On Tue, Apr 3, 2012 at 1:16 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 Hi,

 I have a hashmap with key, value pairs example :-

 (msisdn,value)

 43664xxx,2
 43665xxx,3

 now I want to display this information in a ListView but I don't know
 how to feed the data to an ArrayAdapter.

 HERE IS MY ADAPTER, note I want to replace myList with data from the
 Hashmap a concatentated key+value.

 1. Pass the above hashmap as an adapter, replacing myList with the
 hashmap

 adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

 Note this is what I have without using the hashmap

 THANKS IN ADVANCE


 package listmodified.org;

 import java.util.Arrays;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;

 import android.app.ListActivity;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemLongClickListener;
 import android.view.GestureDetector.OnGestureListener;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.widget.Toast;




 public class listmodified extends ListActivity implements
 OnGestureListener {
public ArrayListString myList = new
 ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected or
 not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};









@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

OnItemLongClickListener itemDelListener = new
 OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent, View
 arg1,
int position, long arg3) {
// TODO Auto-generated method stub

  itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is: +
 position,
 Toast.LENGTH_SHORT).show();
myList.remove(this);  //remove the current object ,
 position throws
 an exception
adapter.notifyDataSetChanged();


return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIE  TO ARRAYLIST myList WHICH CONTAINS STRINGS
adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list
 items
gestureScanner = new GestureDetector(this);
getListView().setOnTouchListener(new View.OnTouchListener() {
  @Override
public boolean onTouch(View v, MotionEvent event) {
return gestureScanner.onTouchEvent(event);
}
});

//UPDATE VIEW DELETE WHEN ONLONG CLICK IS PRESSED
getListView().setOnItemLongClickListener(itemDelListener);

}


 //LIST ITEM PRESS CHECKING
public void onListItemClick(ListView parent, View v,
int position, long id){
selection.setText(myList.get(position));
//check to see if LONGCLICK IS PRESSED
if (longClickedItem != -1) {
 Toast.makeText(listmodified.this, A short click
 detected,
 Toast.LENGTH_SHORT).show();

}
longClickedItem=0;
}

 //IMPLEMENTED BY GESTURE
@Override
public boolean onDown(MotionEvent arg0) {
// TODO Auto-generated method stub
return false;
}


@Override
 

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Thanks Justin,

Order is not important, as my end goal is to present to the user a simple
list of values + keys. When the user longclicks on an item it will be
deleted from the hash.

What would you suggest?

graham




On Tue, Apr 3, 2012 at 9:24 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Keep in mind that HashMap does not have an order...  ArrayAdapter does
 everything based on a position value, which indicates an ordered collection
 of some sort.

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


 On Tue, Apr 3, 2012 at 1:16 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 Hi,

 I have a hashmap with key, value pairs example :-

 (msisdn,value)

 43664xxx,2
 43665xxx,3

 now I want to display this information in a ListView but I don't know
 how to feed the data to an ArrayAdapter.

 HERE IS MY ADAPTER, note I want to replace myList with data from the
 Hashmap a concatentated key+value.

 1. Pass the above hashmap as an adapter, replacing myList with the
 hashmap

 adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

 Note this is what I have without using the hashmap

 THANKS IN ADVANCE


 package listmodified.org;

 import java.util.Arrays;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;

 import android.app.ListActivity;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemLongClickListener;
 import android.view.GestureDetector.OnGestureListener;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.widget.Toast;




 public class listmodified extends ListActivity implements
 OnGestureListener {
public ArrayListString myList = new
 ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected
 or
 not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};









@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

OnItemLongClickListener itemDelListener = new
 OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent, View
 arg1,
int position, long arg3) {
// TODO Auto-generated method stub

  itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is: +
 position,
 Toast.LENGTH_SHORT).show();
myList.remove(this);  //remove the current object
 , position throws
 an exception
adapter.notifyDataSetChanged();


return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIE  TO ARRAYLIST myList WHICH CONTAINS
 STRINGS
adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list
 items
gestureScanner = new GestureDetector(this);
getListView().setOnTouchListener(new View.OnTouchListener() {
  @Override
public boolean onTouch(View v, MotionEvent event) {
return gestureScanner.onTouchEvent(event);
}
});

//UPDATE VIEW DELETE WHEN ONLONG CLICK IS PRESSED
getListView().setOnItemLongClickListener(itemDelListener);

}


 //LIST ITEM PRESS CHECKING
public void onListItemClick(ListView parent, View v,
int position, long id){
selection.setText(myList.get(position));
//check to see if LONGCLICK IS PRESSED
if (longClickedItem != -1) {
 Toast.makeText(listmodified.this, A short click
 

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Justin Anderson
When you need to update the adapter, iterate over your hash map and insert
all the data into a list.  Maybe do something like this:

1) Create a DataPairs class:

public class DataPairs
{
 public String _key;
 public String _value;

 public DataPairs(String key, String val)
 {
  _key = key;
 _value = val;
 }
}

2) Create a new list of DataPairs objects, iterate over your hash map, and
insert the data into your list
3) Update your adapter with the new list of data and call
notifyDataSetChanged()

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


On Tue, Apr 3, 2012 at 1:46 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 Thanks Justin,

 Order is not important, as my end goal is to present to the user a simple
 list of values + keys. When the user longclicks on an item it will be
 deleted from the hash.

 What would you suggest?

 graham




 On Tue, Apr 3, 2012 at 9:24 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Keep in mind that HashMap does not have an order...  ArrayAdapter does
 everything based on a position value, which indicates an ordered collection
 of some sort.

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


 On Tue, Apr 3, 2012 at 1:16 PM, Graham Bright 
 gbwienmobil...@gmail.comwrote:

 Hi,

 I have a hashmap with key, value pairs example :-

 (msisdn,value)

 43664xxx,2
 43665xxx,3

 now I want to display this information in a ListView but I don't know
 how to feed the data to an ArrayAdapter.

 HERE IS MY ADAPTER, note I want to replace myList with data from the
 Hashmap a concatentated key+value.

 1. Pass the above hashmap as an adapter, replacing myList with the
 hashmap

 adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

 Note this is what I have without using the hashmap

 THANKS IN ADVANCE


 package listmodified.org;

 import java.util.Arrays;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;

 import android.app.ListActivity;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemLongClickListener;
 import android.view.GestureDetector.OnGestureListener;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.widget.Toast;




 public class listmodified extends ListActivity implements
 OnGestureListener {
public ArrayListString myList = new
 ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is selected
 or
 not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};









@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

OnItemLongClickListener itemDelListener = new
 OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent,
 View arg1,
int position, long arg3) {
// TODO Auto-generated method stub

  itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is:
 + position,
 Toast.LENGTH_SHORT).show();
myList.remove(this);  //remove the current object
 , position throws
 an exception
adapter.notifyDataSetChanged();


return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIE  TO ARRAYLIST myList WHICH CONTAINS
 STRINGS
adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF LONG CLICK SELECTED CODE
// CALLS IMPLEMENTED METHODS - detect gestures checking my list
 items
gestureScanner = new 

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Thanks Justin,

I'll give that a go.

graham

On Tue, Apr 3, 2012 at 9:56 PM, Justin Anderson magouyaw...@gmail.comwrote:

 When you need to update the adapter, iterate over your hash map and insert
 all the data into a list.  Maybe do something like this:

 1) Create a DataPairs class:

 public class DataPairs
 {
  public String _key;
  public String _value;

  public DataPairs(String key, String val)
  {
   _key = key;
  _value = val;
  }
 }

 2) Create a new list of DataPairs objects, iterate over your hash map, and
 insert the data into your list
 3) Update your adapter with the new list of data and call
 notifyDataSetChanged()


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


 On Tue, Apr 3, 2012 at 1:46 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 Thanks Justin,

 Order is not important, as my end goal is to present to the user a simple
 list of values + keys. When the user longclicks on an item it will be
 deleted from the hash.

 What would you suggest?

 graham




 On Tue, Apr 3, 2012 at 9:24 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Keep in mind that HashMap does not have an order...  ArrayAdapter does
 everything based on a position value, which indicates an ordered collection
 of some sort.

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


 On Tue, Apr 3, 2012 at 1:16 PM, Graham Bright 
 gbwienmobil...@gmail.comwrote:

 Hi,

 I have a hashmap with key, value pairs example :-

 (msisdn,value)

 43664xxx,2
 43665xxx,3

 now I want to display this information in a ListView but I don't know
 how to feed the data to an ArrayAdapter.

 HERE IS MY ADAPTER, note I want to replace myList with data from the
 Hashmap a concatentated key+value.

 1. Pass the above hashmap as an adapter, replacing myList with the
 hashmap

 adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

 Note this is what I have without using the hashmap

 THANKS IN ADVANCE


 package listmodified.org;

 import java.util.Arrays;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;

 import android.app.ListActivity;
 import android.os.Bundle;
 import android.os.Handler;
 import android.os.Message;
 import android.view.View;
 import android.widget.AdapterView;
 import android.widget.ArrayAdapter;
 import android.widget.ListView;
 import android.widget.TextView;
 import android.widget.AdapterView.OnItemLongClickListener;
 import android.view.GestureDetector.OnGestureListener;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.widget.Toast;




 public class listmodified extends ListActivity implements
 OnGestureListener {
public ArrayListString myList = new
 ArrayListString(Arrays.asList(items));
private TextView selection;  //  MAIN.xml
public ArrayAdapterString adapter; // my adapter
public OnItemLongClickListener itemDelListener;
private GestureDetector gestureScanner;
public int longClickedItem = 0;  //check if longClick is
 selected or
 not
private String itemSelected; // for delete function
private static final byte UPDATE_LIST = 100;
public AdapterView? parent; //used by OnLitemLongClickListener
public int position;

//tie items to an array list called myList
public static  String[] items={lorem, ipsum, dolor,
sit, amet,
consectetuer, adipiscing, elit, morbi, vel,
ligula, vitae, arcu, aliquet, mollis,
etiam, vel, erat, placerat, ante,
porttitor, sodales, pellentesque, augue, purus};









@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

OnItemLongClickListener itemDelListener = new
 OnItemLongClickListener(){

//@Override
public boolean onItemLongClick(AdapterView? parent,
 View arg1,
int position, long arg3) {
// TODO Auto-generated method stub

  itemSelected=parent.getItemAtPosition(position).toString();
adapter.remove(itemSelected);
Toast.makeText(listmodified.this, position is:
 + position,
 Toast.LENGTH_SHORT).show();
myList.remove(this);  //remove the current
 object , position throws
 an exception
adapter.notifyDataSetChanged();


return false;
}};

setContentView(R.layout.main);


//DEFINE MY OWN VIEW TIE  TO ARRAYLIST myList WHICH CONTAINS
 STRINGS
adapter=new
 ArrayAdapterString(this,android.R.layout.simple_list_item_1,myList);
setListAdapter(adapter);

//A VIEW OF THE LIST NECESSARY FOR DELETION

selection=(TextView)findViewById(R.id.selection);


// PART OF 

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
One more question when I declare a test HashMap it seems only to work as
static private static final MapInteger, String myHashMap = new
HashMapInteger, String(); static { myHashMap.put(1, one);
myHashMap.put(2, two); } and I am unable to access the HashMap outside of
the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
MyHashMap cannot be resolved ... ?

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

2012-04-03 Thread Justin Anderson

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

What?

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


On Tue, Apr 3, 2012 at 2:37 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

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

2012-04-03 Thread Justin Anderson
Can you provide some actual snippets of code... like more than just how you
are declaring your HashMap?

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


On Tue, Apr 3, 2012 at 2:42 PM, Justin Anderson magouyaw...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

 What?


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


 On Tue, Apr 3, 2012 at 2:37 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

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

2012-04-03 Thread Graham Bright
private static final MapInteger, String myHashMap = new HashMapInteger,
String();
static {
 myHashMap.put(1, one);
 myHashMap.put(2, two);
}

Sorry I found the problem

thanks

graham


On Tue, Apr 3, 2012 at 10:42 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Can you provide some actual snippets of code... like more than just how
 you are declaring your HashMap?


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


 On Tue, Apr 3, 2012 at 2:42 PM, Justin Anderson magouyaw...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

 What?


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


 On Tue, Apr 3, 2012 at 2:37 PM, Graham Bright 
 gbwienmobil...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

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

Re: [android-developers] CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Justin Anderson
Why are you making it static?

Just do this:
public class MyClass
{
 private MapInteger, String myHashMap;

 public MyClass()
 {
  myHashMap = new HashMapInteger, String();
  myHashMap.put(1, one);
  myHashMap.put(2, two);
 }
}

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


On Tue, Apr 3, 2012 at 2:48 PM, Graham Bright gbwienmobil...@gmail.comwrote:




 private static final MapInteger, String myHashMap = new HashMapInteger,
 String();
 static {
  myHashMap.put(1, one);
  myHashMap.put(2, two);
 }

 Sorry I found the problem

 thanks

 graham


 On Tue, Apr 3, 2012 at 10:42 PM, Justin Anderson magouyaw...@gmail.comwrote:

 Can you provide some actual snippets of code... like more than just how
 you are declaring your HashMap?


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


 On Tue, Apr 3, 2012 at 2:42 PM, Justin Anderson magouyaw...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work as
 static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

 What?


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


 On Tue, Apr 3, 2012 at 2:37 PM, Graham Bright 
 gbwienmobil...@gmail.comwrote:

 One more question when I declare a test HashMap it seems only to work
 as static private static final MapInteger, String myHashMap = new
 HashMapInteger, String(); static { myHashMap.put(1, one);
 myHashMap.put(2, two); } and I am unable to access the HashMap outside of
 the brackets. So new ArrayListString(MyHashMap.KeySet()) fails as
 MyHashMap cannot be resolved ... ?

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


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

2012-04-03 Thread Lew
mpd wrote:

 Well I have not done any Windows installs but this is the correct link. 
 You can try using http instead of https, however this sounds more like 
 something is missing from the site. Did you use the correct choice for 
 windows?

 On another related issue similar to this is my last attempt to load the 
 correct version of Java version 6 for Ubuntu Linux. The Sun site does not 
 have this available anymore, since some time last month. The first week of 
 the month it was available and now is gone, since I last attempted on 
 Friday. I was going to next attempt to download bins instead of using 
 apt-get, however none were exact matches to the original version 6 I got 
 last time.

 
Didn't jdk-6u31-linux-x64.bin from 
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
work for you? (Or the matching 32-bit version if that's what you need?) 

-- 
Lew

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

[android-developers] Re: CAN SOMEONE PLEASE HELP with hashmaps thank you

2012-04-03 Thread Graham Bright
Thanks,

That worked fine fine, I'm new to this stuff :)




maybe I could use the following to feed the data to an ArrayAdapter
from the Hashmap which is declared outside of MyClass not sure if that
would work

new ArrayListString(myHashMap.keySet()), assuming myHashMap is a
HashMapString, Something.


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

2012-04-03 Thread Justin Anderson

 maybe I could use the following to feed the data to an ArrayAdapter
 from the Hashmap which is declared outside of MyClass not sure if that
 would work

 new ArrayListString(myHashMap. keySet()), assuming myHashMap is a
 HashMapString, Something.

Then your ArrayList would only have half the needed data It seemed like
you needed both the key and the value in the adapter.

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


On Tue, Apr 3, 2012 at 3:01 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 maybe I could use the following to feed the data to an ArrayAdapter
 from the Hashmap which is declared outside of MyClass not sure if that
 would work

 new ArrayListString(myHashMap.keySet()), assuming myHashMap is a
 HashMapString, Something.


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

2012-04-03 Thread mike digioia
Yes this is the link I was referring. So I assume someone has used this one
and no issues discovered,

On Tue, Apr 3, 2012 at 1:54 PM, Lew lewbl...@gmail.com wrote:

 mpd wrote:

 Well I have not done any Windows installs but this is the correct link.
 You can try using http instead of https, however this sounds more like
 something is missing from the site. Did you use the correct choice for
 windows?

 On another related issue similar to this is my last attempt to load the
 correct version of Java version 6 for Ubuntu Linux. The Sun site does not
 have this available anymore, since some time last month. The first week of
 the month it was available and now is gone, since I last attempted on
 Friday. I was going to next attempt to download bins instead of using
 apt-get, however none were exact matches to the original version 6 I got
 last time.


 Didn't jdk-6u31-linux-x64.bin from
 
 http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html
 
 work for you? (Or the matching 32-bit version if that's what you need?)

 --
 Lew

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

2012-04-03 Thread Graham Bright
Hi,

So I have something like this now

*

public class listmodified extends ListActivity implements OnGestureListener
{
 //public ArrayListString myList = new
ArrayListString(Arrays.asList(items));


  public MapInteger, String myHashMap;

  {

  String Result=;
  myHashMap = new HashMapInteger, String();
   myHashMap.put(1, one);
   myHashMap.put(2, two);

   myHashMap.keySet().toArray();
   myHashMap.values().toArray();


   Result = : + myHashMap.keySet().toArray() +
myHashMap.values().toArray();

  }

I probably need to iterate  over the hashmap and populate items with
Result. Items could be declared outside of the brackets as

public static String[] items={};
*

**

On Tue, Apr 3, 2012 at 11:04 PM, Justin Anderson magouyaw...@gmail.comwrote:

 maybe I could use the following to feed the data to an ArrayAdapter
 from the Hashmap which is declared outside of MyClass not sure if that
 would work

 new ArrayListString(myHashMap. keySet()), assuming myHashMap is a
 HashMapString, Something.

 Then your ArrayList would only have half the needed data It seemed
 like you needed both the key and the value in the adapter.

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


 On Tue, Apr 3, 2012 at 3:01 PM, Graham Bright gbwienmobil...@gmail.comwrote:

 maybe I could use the following to feed the data to an ArrayAdapter
 from the Hashmap which is declared outside of MyClass not sure if that
 would work

 new ArrayListString(myHashMap.keySet()), assuming myHashMap is a
 HashMapString, Something.


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

2012-04-03 Thread Justin Anderson

 *myHashMap.keySet().toArray();*
 *myHashMap.values().toArray();*


These lines of code aren't doing anything...



 *Result = : + myHashMap.keySet().toArray() +
 myHashMap.values().toArray();*

Other than for debugging, I can't see any possible use for this  What
are you wanting to do with your map?

*

 I probably need to iterate  over the hashmap and populate items with
 Result. Items could be declared outside of the brackets as

 public static String[] items={};
 *

What?  What are you trying to do here? Why the static modifier?

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


On Tue, Apr 3, 2012 at 3:22 PM, Graham Bright gbwienmobil...@gmail.comwrote:

Result = : + myHashMap.keySet().toArray() +
 myHashMap.values().toArray();

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

2012-04-03 Thread Michael Chan
Hi,

'new
Intent(com.siitne.candelaria.notificationSystem.AvisoReceiver.class)'
is not valid Intent unless
com.siitne.candelaria.notificationSystem.AvisoReceiver.class is
valid action. Can you try sending the intent from onClick() and make
sure that works first?

Thanks,
Mike

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


Re: [android-developers] what are all the details return by the card reader to the phone

2012-04-03 Thread Todd Grigsby
That depends on the hardware.  Some MSRs return track data, some, like
IDTechs audio plug devices, can hand back an encrypted block.  if you're
doing EFT processing yourself, you want to handle the data directly, but if
you're communicating with an EFT processor you need to talk to the
processor about their interface, whether they require that you use devices
they have injected for DUKPT encryption, etc.
On Apr 2, 2012 1:27 PM, vijaydroid vijaysh...@gmail.com wrote:

 I need to develop an app for credit card reader like squareup
 (www.squareup.com) in android. I just want to know what are all the
 details return by the card reader to the phone.
 also is there any API available for this?
 tutorial sites links are welcome.
 thx in advance.

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

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

[android-developers] Receive Data SMS on Android ICS

2012-04-03 Thread Shatazone
My application has a static broadcast receiver that listens to
specific data sms on port 50011 to wake up the application and run.

I tested the app on a wide range of android devices (android 2.1 -
android 2.3.4) and it is working perfectly. However, I am trying it
now on Samsung Galaxy Nexus running Android 4.0.2 and it is failing to
receive the binary sms. The OS doesn't seem to consume that SMS as it
is not showing any relevant messages in logcat.

Is anyone familiar with that issue? It's very urgent :S

Thanks

Here is the receiver part that I wrote in the manifest.

receiver
android:name=.SmsListener
intent-filter android:priority=10 
action
android:name=android.intent.action.DATA_SMS_RECEIVED /
data android:scheme=sms /
data android:host=localhost /
data android:port=50011 /
/intent-filter
/receiver

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


[android-developers] Is it possible to ... ?

2012-04-03 Thread Martin
Hi everybody,

I would like to ask you something.
Is it possible to launch for example 2 execs on a Android device (as far I 
know, for the moment, that's possible ^^ ), but each one will have to 
display something on the screen, 1 layer/exec, and both of them are visible 
??
So ... is it possible ?? :)

Thank you very much

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

2012-04-03 Thread Spencer
Have you found a solution to this problem?  I'm looking to do the same 
thing, and emil10001's reply doesn't really address what you're asking for.

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

[android-developers] speech recognition problem

2012-04-03 Thread louic
Hello,
I am new here, when I test any application voice recognition on the
emulator android SDK in eclipse I get the following message:
'speech recognition is not this device is avaibabel Will not this app
work as Intended'.

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] help in using android USB host mode

2012-04-03 Thread ashish sharma
Hello,

I am working with Lenovo tablet (Android 3.1) and I want to fetch data from 
Telosb sensor. The sensor has following interface and endpoint

Interface 0
Endpoint 0: Inbound, type- bulk, max packet size- 64
Endpoint 1: Outbound, type- bulk, max packet size- 64

I want to read the data from sensor and I used UsbDeviceConnection and 
bulkTransfer(endpoint, buffer, length, timeout) method to get the data. The 
byte[] buffer field in the method must have the data from the sensor at 
endpoint 0 is what I understand from the documentation. When I read in this 
way, only 2 bytes (length= 64) are read and rest are zeros. Can anyone 
explain what might be the cause for this? Also, how do I set the baud rate? 
How do I read data from the sensor continuously?

Thanks,
Ashish.

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

[android-developers] How to set Live Wallpaper automatically everyday in Android.

2012-04-03 Thread Hemu
Hi All,

I want to ask one question how can we set Live Wallpaper Automatically
everyday in Android, as we can set normal wallpaper successfully in
this way by using the following code.
 final WallpaperManager wallpaperManager =
WallpaperManager.getInstance(this);
final Drawable wallpaperDrawable =
wallpaperManager.getDrawable();
final ImageView imageView = (ImageView)
findViewById(R.id.imageview);
imageView.setDrawingCacheEnabled(true);
imageView.setImageDrawable(wallpaperDrawable);

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

2012-04-03 Thread qingtaop...@yahoo.com.cn
用Android SDK and AVD Manager安装Google API 插件出问题,说不能装载包,连接超时,另外,在Android
SDK and AVD Manager不能显示未安装的包,因此,在Android SDK and AVD Manager没有显示Google
API 插件,是什么原因?求帮助。

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

[android-developers] how can i call web service

2012-04-03 Thread arun
HAI PLZ HELP ANY ONE,
how can i call Web service in android send a simple code with xml also,

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


[android-developers] simple picture loading from sdcard

2012-04-03 Thread royi shtainberg
hi all,
im a new developer here so...
i am trying to change an imagview to a picture from the phones sd card. as 
simple as that.
i managed to get to the phones gallery and select a picture.  but i dont 
seem to manage to retrive the picture and change the current imagview to 
the new one.

thats what im doing to get to the gallery:
public void onClick(View v) 
{
Intent intent = new Intent(Intent.ACTION_PICK, 
MediaStore.Images.Media.INTERNAL_CONTENT_URI);
startActivityForResult(intent, 0); 
}

retriving the image:
public void onActivityResult(int requestCode, int resultCode, Intent data)
{
 super.onActivityResult(requestCode, resultCode, data);
 Bitmap bm = (Bitmap) data.getExtras().get(data);
 iv_picture.setImageBitmap(bm); 
}

when i press on a picture in the gallery it crushes  the logcat says:
Failure delivering result ResultInfo{who=null, request=0, result=-1, 
data=Intent { dat=content://media/external/images/media/2 }} to activity 
{shtainberg.royi/shtainberg.royi.edit}: java.lang.NullPointerException

thak you all!!  you are great.



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

[android-developers] How to read pdf/ppt/doc file in android offline?

2012-04-03 Thread bhagyashri vaikos
Hi all,

I am doing a project in which i want my application should read pdf/ms-
office file in offline mode. I know that by using googledocs  webview
we can read these file online but i want to do this offline. One more
thing that i know is one can use the related application if its
install on device to read these file or can flag error that file not
supported by device by using Intents. But i don't want to relay on
this to check any app availability to read these files.
I want a way sothat my app will read  display these files to user?
does any API available? or any public 3rd party API to serve mu
pupose.
Plz help...

thanks in advance
bhagyashri

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


[android-developers] setting Wallpaper in Android using button

2012-04-03 Thread baturanija1
Peopple...i have a problem that is killing my head.Every forum
show a result but my applications is not working.How can make one
simple f button ,when i click on it change wallpapeor on my screen
on desktop od my android device.I trued many codes and did not
suiccesed..Please, send me some of your codes to see if it will
work.Thanke you very much

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


[android-developers] Reasoning Engine in Android

2012-04-03 Thread Ivan
Wonder any information about reasoning engines inside Android System,
just as Jena and Jess for Java?

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

2012-04-03 Thread govindarao annigeri
Hi,

I would like to remove/disable TSBs from my ICS phone. i have set activity
theme as full screen , only the status bar is getting removed , please help.

-- 
-Thanks,
Govindarao
91-9900512210

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

2012-04-03 Thread Alhad Mairal
Hi All,
  i am observing a issue related to JNI warning when i try to
run the gunbros game on ICS .
I observed that it is working on Samsung Nexus (may be because checkjni is
disabled on commercial phones). I wanted to disable the checkjni by
performing following steps :-

pull /system/build.prop through adb shell and modify the
ro.kernel.android.checkjni=0 and make it 0.

or

adb shell setprop debug.checkjni 0


but none of these are working and i am seeing the JNI warning as follows in
the logs :-


W/dalvikvm(  621): JNI WARNING: 0x957ce610 is not a valid JNI reference



W/dalvikvm(  621):  in
Lcom/glu/platform/android/GluPlatformActivityJNI;.onDrawFrame (IJZ)V
(CallStaticObjectMethodV)



I/dalvikvm(  621): pool-2-thread-1 prio=5 tid=9 RUNNABLE



I/dalvikvm(  621):   | group=main sCount=0 dsCount=0 obj=0x406e7bc0
self=0x238648



I/dalvikvm(  621):   | sysTid=635 nice=0 sched=0/0 cgrp=default
handle=2328448



I/dalvikvm(  621):   at
com.glu.platform.android.GluPlatformActivityJNI.onDrawFrame(Native Method)



I/dalvikvm(  621):   at
com.glu.platform.android.GluPlatformActivity.onDrawFrame((null):-1)



I/dalvikvm(  621):   at
com.glu.platform.android.GluMainView$TickTask.run((null):-1)



I/dalvikvm(  621):   at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:444)



I/dalvikvm(  621):   at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:323)



I/dalvikvm(  621):   at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)



I/dalvikvm(  621):   at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:153)







Can anyone please help me in resolving this issue?



Thanks and Regards,

Alhad

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

2012-04-03 Thread kaptan komando
Hi,

I have a question about Mapview.  I have an image which is a map of
small area (Link: http://goo.gl/bvn80 ).

Can i use this image in mapview? if it is possible can i use overlays
on it? I can add different images for different zoom levels.

If there is no way to do this with Google Maps, is there any way to do
this?

Thanks.

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


[android-developers] Get instance of background service on boot complete

2012-04-03 Thread Oleksandr Ekzarov
I have a background service, which was bound and started from main
activity:

Intent intent = new Intent(MyService.class.getName());
startService(intent);
bindService(intent, serviceConnection, 0);

When activity started, service has benn created(Service onCreate is
called). When user click back,
and executes application again, activity get`s bounded to service
again (but this time, whithout calling onCreate method. Why??? I mean,
how android knows, that service don`t need to be created?)

That`s behaviour is ok for me.

I create:
public class BootReceiver extends BroadcastReceiver

which start service on mobile boot completed:

Intent serviceIntent = new Intent(MyService.class.getName());
context.startService(serviceIntent);

Method MyService.onCreate is called. Service is started.
BUT, when user executed application MyService.onCreate is called
again. And I assume, that I have 2 instances of one service. How can I
manage this situation? Thank you.

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


[android-developers] Re: How to debug - Unsupported devices due to your manifest settings

2012-04-03 Thread David Montiel
Same problem here, same device too

permissions...

uses-permission android:name=android.permission.CAMERA /

uses-permission android:name=android.permission.INTERNET /

uses-permission android:name=android.permission.READ_CONTACTS /

uses-permission android:name=android.permission.WRITE_CONTACTS /

uses-permission android:name=android.permission.VIBRATE /

uses-permission android:name=android.permission.ACCESS_NETWORK_STATE 
/

uses-permission android:name=
android.permission.ACCESS_COARSE_LOCATION /

uses-permission android:name=android.permission.ACCESS_FINE_LOCATION 
/

uses-permission android:name=android.permission.AUTHENTICATE_ACCOUNTS 
/

uses-permission android:name=android.permission.GET_ACCOUNTS /

uses-permission android:name=android.permission.MANAGE_ACCOUNTS /

uses-permission android:name=android.permission.READ_SYNC_SETTINGS /

uses-permission android:name=android.permission.WRITE_SYNC_SETTINGS 
/


On Wednesday, December 7, 2011 5:54:13 PM UTC+1, Dimitry wrote:

 I see more people having problems how to solve Unsupported devices
 due to your manifest settings but no solutions.
 For testing I use a Galaxy Y (GT-S5360) with Gingerbread that works
 fine with my app.
 But on the market I get This app is incompatible with your T-Mobile
 Samsung GT-S5360.


 http://developer.android.com/guide/topics/manifest/uses-feature-element.html
 tells me how to determine how Android Market will filter my
 application, see aapt output below.

 But how do I find which feature/permission conflicts with my device,
 is there some tool that can simulate the market?
 Or any tips to solve this problem, without going into an trial and
 error process by change some stuff and submitting it to the market.

 aapt dum badging myapp.apk
 package: name='com..android' versionCode='2' versionName='1.0.1'
 uses-permission:'android.permission.ACCESS_NETWORK_STATE'
 uses-permission:'android.permission.RECEIVE_BOOT_COMPLETED'
 uses-permission:'android.permission.READ_PHONE_STATE'
 uses-permission:'android.permission.VIBRATE'
 uses-permission:'android.permission.WRITE_EXTERNAL_STORAGE'
 uses-permission:'com..android.permission.C2D_MESSAGE'
 uses-permission:'com.google.android.c2dm.permission.RECEIVE'
 uses-permission:'android.permission.INTERNET'
 uses-permission:'android.permission.ACCESS_COARSE_LOCATION'
 uses-permission:'android.permission.ACCESS_FINE_LOCATION'
 uses-permission:'android.permission.READ_CONTACTS'
 uses-permission:'android.permission.CAMERA'
 uses-feature:'android.hardware.camera'
 application-label:'...'
 application-label-de:'...'
 application-label-fr:'...'
 application-icon-120:'res/drawable-ldpi/icon.png'
 application-icon-160:'res/drawable-mdpi/icon.png'
 application-icon-240:'res/drawable-hdpi/icon.png'
 application: label='...' icon='res/drawable-mdpi/icon.png'
 launchable-activity: name='com.android'  label='...' icon='res/
 drawable-mdpi/icon.png'
 uses-library:'com.google.android.maps'
 sdkVersion:'7'
 targetSdkVersion:'8'
 uses-feature:'android.hardware.location'
 uses-feature:'android.hardware.location.gps'
 uses-feature:'android.hardware.location.network'
 uses-feature:'android.hardware.touchscreen'
 uses-feature:'android.hardware.screen.portrait'
 main
 other-activities
 other-receivers
 other-services
 supports-screens: 'small' 'normal' 'large'
 supports-any-density: 'true'
 locales: '--_--' 'de' 'fr'
 densities: '120' '160' '240'



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

2012-04-03 Thread jadranko bodiroga
what do you whant to know?

Bodiroga CG

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Avoiding FAILED BINDER TRANSACTION error when updating lots of widget bitmaps

2012-04-03 Thread Michael Lamers
 
Hi,
 
I have the same problem using setImageURI. The problem seems to be worse 
than just a scaling issue.
It seems that some vendors have fixed this bug for some of their devices.
I have a HTC Sensation that doesn't scale the image set through 
setImageURI. All other devices I know do.
For me the only workaround for this is to measure the applied scaling by 
instantiating an ImageView that consumes a sample image from my 
ContentProvider. The extra scaling for the images that has to be applied 
can be calculated by comparing the ImageViews size to the original size of 
the sample image.
 
Fixing this bug wouldn't change anything for the next 2 years as most of us 
developers want to support not only the last generation of Android devices 
;)
 
Greetings
 
Michael

Am Freitag, 17. Februar 2012 21:56:40 UTC+1 schrieb Yuvi:

 Hi, 

 sorry to resurrect this post...but I got into a similar problem. And as 
 the OP did, I'm using RemoteViews.setImageViewUri() to set my image on the 
 appwidget. However I noticed that my image is being scaled according to the 
 screen density.

 So, for example, on an XHDPI screen, if I have a bitmap which is 100x100 
 and I set it using setImageViewBitmap() I get the image to look as 100x100. 
 However, if I store that bitmap into a png on disk, and then use 
 setImageViewUri() my bitmap is displayed as 50x50.

 Do you know if there is a way to change this behavior? (i.e. if my image 
 is 100x100 I'd like it to remain 100x100 also after it is decoded).
 Maybe there is a way to force some density on the ImageView itself?

 My only workaround (which sucks..) is to scale-up the bitmap before 
 storing on disk so that when it is being decoded I get back my original 
 size. But in this way I use more memory to save the image and I also loose 
 image quality..:(

 I hope someone can help me!
 Thanks,
 Yuvi

 On Mon, Aug 1, 2011 at 8:05 PM, Ash McConnell  wrote:

 Thanks Kostya and Dianne, setUri works as expected.  I had to create the 
 files using context.openFileOutput.  Unfortunately that means I loose the 
 ability to use directories.  I can't see a Java way to set permission on 
 files, it can be done with native methods, but that seems like overkill. 
  I'll do some more googling. 

 Thanks again for the help, I was worried that this problem might have 
 been a show-stopper.
 Ash
   
 -- 
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 -- 
 YuviDroid 
 Check out Launch-X http://android.yuvalsharon.net/launchx.php (a widget 
 to quickly access your favorite apps and contacts!)
 http://android.yuvalsharon.net



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

[android-developers] Question

2012-04-03 Thread sahar
Dear  all,



I am Sahar. and I try the totorial the Augmented Reality
http://www.devx.com/wireless/article/42482/1954 but it is dosn't work
with me.

and I change a lot of thing after that it was work.



question:

in my program I have camera view full screen and I have sensor value
in my program and I want from this value appear on the screen

on the top of camera. and when the sensor value update on the
background I want it update on the screen. can I send the code for you
to tell me what can I do? (it is small code just to try)



I will use the handler and send massage but I am confuse I don't know
were I but it to see the value.



I atached my code with the email

and if there any expert on android to help me to ask him qustion
online or by mobile please tell me becuase I have one month to finsh
this project and I nead expert to help me when I ask Q.



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] branding existing app

2012-04-03 Thread Mark
Hi,

I have an existing app and we're in the process of branding it.  We'd
like to keep the source as one project.  I think this means I'll
need separate resources and a separate R class.  How would i go about
switching the resources and the R class?

Are there other ideas on how to properly brand an application?

For instance my HideAwayHillsCabinRental app has color scheme and
icons for Hide Away Hills Cabin Rental, but I'd like to extend the
exact same app to other smaller cabin rental companies.

Thanks!
-mark-

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


[android-developers] Wait screen on buffering video

2012-04-03 Thread Luis Domingues
Hello, I have a question. 

In my app, I can see a video from Internet and I want a wait Progress 
dialog when the video is buffering.

Here is my code:

private void loadView(String cam) {
progressDialog = ProgressDialog.show(WebCamVideo.this, ,
getString(R.string.loading), true, true, new OnCancelListener() {
//Lors du retour lors du chargement, ferme l'activité.
  @Override
  public void onCancel(DialogInterface dialog) {
WebCamVideo.this.finish();
  }
});
Uri uri = Uri.parse(cam);
videoView.setVideoURI(uri);
videoView.requestFocus();
progressDialog.setProgress(50);
videoView.setOnPreparedListener(new OnPreparedListener() {
  public void onPrepared(MediaPlayer arg0) {
videoView.start();
progressDialog.dismiss();
  }
});
  }


It work on an HTC One X, a Samsung Galaxy S2 with 4.0.3 and 2.3.

But in my Galaxy Nexus with 4.0.4 the onPrepared method is called before 
the end of buffering.

It is a bug or I need to do somthing different?

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

2012-04-03 Thread Görsel Kıraş
Hi Rajesh.

You can check my post to connect a webservice provided from SAP.

http://www.gkyazilim.com/wp/2012/02/10/android-ksoap2-web-service/



On 9 Şubat, 20:12, RGudipati rajesh.gudip...@gmail.com wrote:
 Hi All,

 I am new to the Android Development. I am building an app which
 connects to SAP MII by consuming the webservices exposed by SAP MII.
 But the problem is I dont know how to connect a webservice that is
 Generated by SAP MII. Could some one please help?

 Webservice: http://ServerName:Port/XMII/WSDLGen/TransactionName

 WSDL:

 ?xml version=1.0 encoding=UTF-8?definitions xmlns=http://
 schemas.xmlsoap.org/wsdl/ xmlns:http=http://schemas.xmlsoap.org/wsdl/
 http/ xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/;
 xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:s0=http://www.sap.com/xMII; 
 xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
 targetNamespace=http://www.sap.com/xMII;
     !-- Types --
     types
         s:schema elementFormDefault=qualified
 targetNamespace=http://www.sap.com/xMII;
             s:complexType name=InputParams
                 s:sequence id=InputSequence

                 s:element maxOccurs=1 minOccurs=0
 name=BinNumber type=s:string/s:element maxOccurs=1
 minOccurs=0 name=BlendId type=s:string/s:element maxOccurs=1
 minOccurs=0 name=DateTime type=s:string/s:element
 maxOccurs=1 minOccurs=0 name=Operator type=s:string/s:element 
 maxOccurs=1 minOccurs=0 name=PFlag type=s:string/
 s:element maxOccurs=1 minOccurs=0 name=Weight type=s:string/
 /s:sequence

             /s:complexType
             s:element name=XacuteRequest
                 s:complexType
                     s:sequence
                         s:element maxOccurs=1 minOccurs=0
 name=LoginName type=s:string/
                         s:element maxOccurs=1 minOccurs=0
 name=LoginPassword type=s:string/
                         s:element maxOccurs=1 minOccurs=0
 name=InputParams type=s0:InputParams/
                     /s:sequence
                 /s:complexType
             /s:element
             s:complexType name=Rowset
                 s:sequence
                     s:element maxOccurs=unbounded minOccurs=0
 name=Row type=s0:Row/
                 /s:sequence
                 s:attribute name=Message type=s:string/
             /s:complexType
             s:complexType name=Row
                 s:sequence id=RowSequence

                 s:element maxOccurs=1 minOccurs=1 name=Result
 type=s:string//s:sequence
             /s:complexType
             s:element name=XacuteResponse
                 s:complexType
                     s:sequence
                         s:element maxOccurs=1 minOccurs=0
 name=Rowset type=s0:Rowset/
                     /s:sequence
                 /s:complexType
             /s:element
         /s:schema
     /types
     !-- Messages --
     message name=XacuteSoapIn
         part element=s0:XacuteRequest name=parameters/
     /message
     message name=XacuteSoapOut
         part element=s0:XacuteResponse name=parameters/
     /message
     !-- Ports --
     portType name=XacuteWSSoap
         operation name=Xacute
             input message=s0:XacuteSoapIn/
             output message=s0:XacuteSoapOut/
         /operation
     /portType
     !-- Bindings --
     binding name=XacuteWSSoap type=s0:XacuteWSSoap
         soap:binding style=document transport=http://
 schemas.xmlsoap.org/soap/http/
         operation name=Xacute
             soap:operation soapAction=http://www.sap.com/xMII;
 style=document/
             input
                 soap:body use=literal/
             /input
             output
                 soap:body use=literal/
             /output
         /operation
     /binding
     !-- Service mapping --
     service name=XacuteWS
         port binding=s0:XacuteWSSoap name=XacuteWSSoap
             soap:address location=http://servername:port/XMII/
 SOAPRunner/transaction name/
         /port
     /service
 /definitions

 Regards,
 Rajesh.

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


[android-developers] Replacing a Fragment/Tab in a Viewpager

2012-04-03 Thread Blobby
 

I am currently trying to make framework for my future apps. I really like 
the ActionBar and the ViewPager, but miss a feature. I need to replace a 
Fragment/Tab in runtime.

Using the offical 
examplehttp://developer.android.com/reference/android/support/v4/view/ViewPager.html,
 
I would love to see something like a replaceTab(), but the Fragment itself 
isn't updated, no matter what I do.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email 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 eclipse 存取excel資料問題??

2012-04-03 Thread hsiaoplanet
我有google到jxl和poi等操作excel的方法,但用eclipse使用時卻碰到很多瓶頸,找了很多書卻找不到例子,是否有那些疏忽環節,還
是須轉換成sqlite,請各位前輩指點迷津~~thanks

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


[android-developers] Re: Anchor tags in android “WebKit” browser

2012-04-03 Thread Geo Baj
I've noticed the same thing...  I've used anchor tags for analytics 
tracking (works on non-smartphones), seems android strips off the 
anchors...  Ideas?

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

[android-developers] Re: What is the purpose of android zygote process?

2012-04-03 Thread Antony Deepak
Think about Zygote in its biological significance The first cell formed 
when an organism is produced..

So, when an application is launched , the core process for the application 
is forked from Zygote. Zygote has all the core libraries and hence all 
applications share these libraries from Zygote.

On Tuesday, April 7, 2009 4:16:19 PM UTC-5, Lucius Fox wrote:

 Hi,

 Can someone please help me understanding what is the android zygote 
 process?
 From, it appears listen commands on a socket and spawn a thread for
 that? Is that true?
 if yes, what are examples of those commands? Under what situation that
 android zygote process will be used?

 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] how to connect with sql server 2005

2012-04-03 Thread Mahmoud Mortada
i need to know how can i connect with sql server and retrieve  from it

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

  1   2   >