[android-developers] Re: Will we ever be allowed to make custom widget pickers?

2012-04-02 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] game desginning

2012-04-02 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: Android DateTimePicker to save in database

2012-04-02 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] Re: SQLite and store dates

2012-04-02 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] Native asset manager

2012-04-02 Thread hamlatzis
I'm trying to read directly from the .apk file my resources. In order to do 
so I've found a link ( 
http://kometbomb.net/2011/07/25/android-ndk-and-sdl_rwops/) on how to call 
natively the asset manager. I've tried it in my application and I get 
unresolved error messages regarding:  AAsset_seek, AAsset_read, 
AAssetManager_open, 
AAsset_close

Even though in my Android.mk I have 
LOCAL_LDLIBS := -landroid

I've checked and the libandroid.so is in my search lib folders, I even 
tried to declare it as a shared library
LOCAL_SHARED_LIBRARIES := android

Nothing, still getting unresolved error messages. Any idea on how to read 
the files directly from the .apk file without extracting them to the SD 
card? I want to read files such as images, sounds and other binary/text 
files I need for my application.

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

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

2012-04-02 Thread tsukishiro
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

[android-developers] NDK r7b: crtbegin_so.o: No such file

2012-04-02 Thread greno
I have this linking problem with ndk r7b:

...arm-linux-androideabi/bin/ld: crtbegin_so.o: No such file: No such
file or directory

I have not found a solution yet.  Any ideas?

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


[android-developers] Re: Sleep mode

2012-04-02 Thread Chris Stratton
On Tuesday, April 3, 2012 12:03:02 AM UTC-4, Put_tiMe wrote:
>
> So according to Dianne's post, CPU is indeed completely switched off.
> And in Android, there is no CPU under clock mode.
> And it can be woken up only by external interrupts. Got that.
>  
> But then how does Alarm-manager timers work?
> Is it some kind of delayed interrupt or something like that? i.e an 
> interrupt that will be raised after some time???
> I thought at least the alarm-manager will need the CPU running.
>

Most embedded chips, especially those intended for battery powered systems, 
have various peripherals such as timers external to the cpu core which can 
continue to operate even when the cpu core is powered down.

In the chips used in most contemporary smartphones, one of those 
"peripherals" is actually an entire additional arm processor core, charged 
with running the radio and other things such as low level audio and button 
I/O.  The power state of that processor is quite independent of the power 
state of the application arm processor which runs the Linux kernal, android 
stack, and SDK apps, so checking in with the mobile network infrastructure 
does not involve waking up the application processor.  (Depending on your 
perspective, the argument could be made that the radio processor is 
actually the heart of the system, with the application processor just being 
a fancy peripheral charged with entertaining the user...)

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

2012-04-02 Thread Ricardo Santos
Ok, I have tried a lot of things, and I found out that the best way to do
it is to create a new activity, and extend it from ListActivity and use all
the life saving methods that are already there, just waiting for us...

On Sun, Apr 1, 2012 at 8:16 PM, Ted Scott  wrote:

>  On 4/1/2012 3:19 PM, Ricardo Santos wrote:
>
> Hi Ted,
>Maybe I have understood the theory, now, but my code still do not work.
> So, my code looks like this:
>
> //This is my list view
>
> ListView charList = (ListView)findViewById(R.id.list);
>
> R.id.list needs to be the id of a ListView element...
>
>  //Setting up the from String[]
>
> String[] from = new String[]{"name"};
>
> //Setting up the to int[]
>
> int[] to = new int[]{R.id.lstCharacters};
>
>
>  //Now, I set the SimpleCursorAdapter
>
>  SimpleCursorAdapter simplCursor = new SimpleCursorAdapter(this, R.id.list,
> loadCharacterCursor, from, to);
>
>  the R.id.list should not be a ListView, it should be resource identifier
> of a layout file that defines the views for each row in the list.
>
>  //Setting the adapter do the list - here it crashes.
>
> charList.setAdapter(simplCursor);
>
>  I cant see what I'm doing wrong. Can anyone shed (some) more light to
> the subject?
>
>
> I've never used a list view outside of a class extending ListActivity.
>
>
>  Ricardo
>
>
> On Sun, Apr 1, 2012 at 12:33 AM, Ted Scott  wrote:
>
>> Hi Ricardo,
>>
>> First, I'm sure others will chime in if this is bad advice, but my
>> understanding is that it is better to use the compatibility package and
>> cursor loaders and a load manager. See
>> http://developer.android.com/reference/android/widget/SimpleCursorAdapter.htmland
>>  the base CursorAdapter.
>>
>> That said, from is simply a list of columns in the PROJECTION exposed by
>> the cursor that are of interest to the ListView ids in the to array. This
>> is in order of the two arrays such that the data from from[x] is passed to
>> the view with the id in to[x].
>>
>> Given the list view row definition:
>>
>> 
>> http://schemas.android.com/apk/res/android";
>>  android:layout_width="fill_parent"
>>  android:layout_height="34dp"
>>  android:gravity="bottom"
>>  android:orientation="horizontal">
>>
>> http://schemas.android.com/apk/res/android";
>>android:id="@+id/foo"
>>android:layout_width="100dp"
>>android:layout_height="30dp"
>>android:textSize="16dp"
>>android:gravity="center_vertical"
>>android:paddingLeft="5dip"
>>android:singleLine="true"
>>/>
>> http://schemas.android.com/apk/res/android";
>>android:id="@+id/bar"
>>android:layout_width="50dp"
>>android:layout_height="30dp"
>>android:textSize="20dp"
>>android:gravity="right|center_vertical"
>>android:paddingLeft="5dip"
>>android:singleLine="true"
>>/>
>> 
>>
>> And assuming that you have column1 and column2 in your cursor's
>> projection, and want to map the contents of column1 to the textview foo and
>> column2 to textview bar, from and to would be defined something like:
>>
>> String[] from =  new String[] { "column1" , "coulmn2"};
>> int[] to   = new int[] { R.id.foo , R.id.bar };
>>
>> Clear as mud?
>>
>> -Ted
>>
>>
>> On 3/31/2012 9:36 PM, Ricardo Santos wrote:
>>
>>>  Hello everyone!
>>>
>>>  I have in my application, I hace a list view that needs to be populated
>>> with data from a database, I have tested my database and my app is handling
>>> the data correctly, but I cant populate the list view, I have read about
>>> the SimpleCursorAdapter but I cant understand how to use the class,
>>> specially the from and to fields, does anyone know how to use it?
>>>
>>>  My class is not extending ListActivity, my list view is inside a dialog.
>>>
>>> Ricardo
>>>   --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, 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

[android-developers] Re: Sleep mode

2012-04-02 Thread Chris Stratton
On Monday, April 2, 2012 9:35:28 AM UTC-4, Dan wrote:
>
> the question is what do you do to get the device to try to go to a 
> state 
> of CPU/SCREEN/KEYBOARD all Off. 
>

You (as an application developer) don't.  You merely insure that your code 
isn't what is keeping it from doing so.   

You have no control over what other installed apps might be doing, or how 
rapidly the particular system software will descend into suspend states 
once no application is preventing it from doing so.

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

Re: [android-developers] ADT 17.0.0 wont install on Eclipse Indigo

2012-04-02 Thread mike digioia
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.

On Sat, Mar 31, 2012 at 12:48 AM, Gregory Lange
wrote:

> I just recently re-installed my windows 7 64 bit machine and was trying to
> get everything setup however i cannot get it to install using either 64 or
> 32 Eclipse and nothing i have found while googling even has a fix for this
> issue.
>
> https://dl-ssl.google.com/android/eclipse/ <-- linked used  from the dev
> site. i have tried http:// also with same error.
>
> Cannot complete the install because one or more required items could not
> be found.
>   Software being installed: Android Development Tools
> 17.0.0.v201203161636-291853 (com.android.ide.eclipse.adt.feature.group
> 17.0.0.v201203161636-291853)
>
> I downloaded the SDK zip and extracted it before i tried to do the ADT in
> Eclipseany help would be 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

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

[android-developers] Dynamic permissions in Android

2012-04-02 Thread Vicky Singh
 hi,
Dynamic permissions can be added to an app using
PackageManager.addpermision() .But apps that that use this permissions have
to be installed after permission is exposed by the first app.
My questions::: What will the use case for this kind of implementation
where installation order of application is important? has any one used this
feature? If yes under what scenarios?

Vicky

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

2012-04-02 Thread Put_tiMe
Sorry, I missed Dianne's post above.
 
So according to Dianne's post, CPU is indeed completely switched off.
And in Android, there is no CPU under clock mode.
And it can be woken up only by external interrupts. Got that.
 
But then how does Alarm-manager timers work?
Is it some kind of delayed interrupt or something like that? i.e an 
interrupt that will be raised after some time???
I thought at least the alarm-manager will need the CPU running.
 
 
 

On Tuesday, April 3, 2012 9:19:12 AM UTC+5:30, Put_tiMe wrote:

> Ok, to clear some confusion, does CPU off means that CPU is completely 
> switched off, or is it run at a low clock rate?
>  
> If CPU is completely off, then how does the AlarmManager even work, and 
> how does the phone receive an incoming call or an SMS?
>  
> I'm sure CPU will be required to run some basic OS services, right? Like 
> the phone and SMS, and the alarm-manager itself.
>  
>  
>
> On Monday, April 2, 2012 7:05:28 PM UTC+5:30, Dan wrote:
>
>>
>>
>> On Mar 30, 10:06 pm, Dianne Hackborn  wrote: 
>> > On Android "sleep mode" is the screen being off.  What do you mean by 
>> > "sleep mode"? 
>>
>> Given the nice chart of CPU/Screen/Keyboard states at: 
>>
>> http://developer.android.com/reference/android/os/PowerManager.html 
>>
>> If having PARTIAL_WAKE_LOCK held allows the screen to go off (and you 
>> want to say 'On Android "sleep mode" is the screen being off'), what 
>> do you call the state that device will go into if PARTIAL_WAKE_LOCK 
>> is not held? 
>>
>> Once we have the name agreed upon (for conversation, since it can only 
>> be reached if some form of WAKE_LOCK is not held, let's say "not 
>> awake") 
>> the question is what do you do to get the device to try to go to a 
>> state 
>> of CPU/SCREEN/KEYBOARD all Off. 
>>
>> Dan Schmitt
>
>

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

2012-04-02 Thread Put_tiMe
Ok, to clear some confusion, does CPU off means that CPU is completely 
switched off, or is it run at a low clock rate?
 
If CPU is completely off, then how does the AlarmManager even work, and how 
does the phone receive an incoming call or an SMS?
 
I'm sure CPU will be required to run some basic OS services, right? Like 
the phone and SMS, and the alarm-manager itself.
 
 

On Monday, April 2, 2012 7:05:28 PM UTC+5:30, Dan wrote:

>
>
> On Mar 30, 10:06 pm, Dianne Hackborn  wrote: 
> > On Android "sleep mode" is the screen being off.  What do you mean by 
> > "sleep mode"? 
>
> Given the nice chart of CPU/Screen/Keyboard states at: 
>
> http://developer.android.com/reference/android/os/PowerManager.html 
>
> If having PARTIAL_WAKE_LOCK held allows the screen to go off (and you 
> want to say 'On Android "sleep mode" is the screen being off'), what 
> do you call the state that device will go into if PARTIAL_WAKE_LOCK 
> is not held? 
>
> Once we have the name agreed upon (for conversation, since it can only 
> be reached if some form of WAKE_LOCK is not held, let's say "not 
> awake") 
> the question is what do you do to get the device to try to go to a 
> state 
> of CPU/SCREEN/KEYBOARD all Off. 
>
> Dan Schmitt

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

2012-04-02 Thread Zsolt Vasvari
Have you tried searching the forum?

https://groups.google.com/forum/?fromgroups#!searchin/android-developers/postdelayed/android-developers/iDiyWbSrnQo/ePZssY7e3-UJ
 



On Tuesday, April 3, 2012 9:58:22 AM UTC+8, sudeep bhowmick wrote:
>
> Is it possible that postdelayed method does not work for longer delays 
> (in hours)? I am seeing some missed events, i.e. the expected runnable 
> does not run (the thread where the handler is instantiated is running).

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

[android-developers] Handler.postDelayed not working for longer delays

2012-04-02 Thread sudeep bhowmick
Is it possible that postdelayed method does not work for longer delays
(in hours)? I am seeing some missed events, i.e. the expected runnable
does not run (the thread where the handler is instantiated is running).

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


[android-developers] Re: Listview of programmatically created Drawables

2012-04-02 Thread Gene
Thanks.  I ended up wrapping the Drawable in a custom View. It wasn't
hard and I can control the appearance with custom attributes, which is
very nice.

On Mar 25, 3:41 am, Kostya Vasilyev  wrote:
> Set them as background objects for some views that appear in your item
> layouts.
>
> Or use image views and set them as 'src' images (this way you'll have
> better control over scaling and clipping).
>  25.03.2012 5:29 пользователь "Gene"  написал:
>
> > How can you get programmed stroked Drawables (not bitmaps) to appear
> > in the lines of a ListView?
>
> > On Mar 23, 1:36 am, TreKing  wrote:
> > > On Thu, Mar 22, 2012 at 9:42 PM, Gene  wrote:
> > > > ListView seems to be the way to go, but I can't grok how to make
> > > > other-than-bitmaps appear in ListView items.  No Canvas is in sight.
>
> > > You might want to elaborate and clarify - I, for one, have no clue what
> > > you're getting at.
>
> > --- 
> > ---
> > > TreKing  - Chicago
> > > transit tracking app for Android-powered devices
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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


Re: [android-developers] Re: How can I change the active store?

2012-04-02 Thread Nikolay Elenkov
On Tue, Apr 3, 2012 at 7:05 AM, MB  wrote:
> I would like to know the answer to this too.
> Bump up!!
>
> On Mar 29, 6:59 am, evyevy  wrote:
>> I'm about to publish applications to USA and CHINA.
>>
>> I'm currently located at Israel.
>>
>> how can I change my market store to test my search position?


Root your phone and use something like this:

https://play.google.com/store/apps/details?id=com.notenking.me

Or get a bunch of SIM cards from the US and China.

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



On Apr 2, 8:49 am, Kostya Vasilyev  wrote:
> If your text view is set to wrap_content, its width will match the text it
> contains, and so, by definition, changing android:gravity will have no
> effect (this is true for single-line text, but let's keep things simple for
> the sake of discussion).
>
> What you want is one of:
>
> android:layout_width="fill_parent"
> android:gravity="right"
>
> or
>
> android:layout_width="wrap_content"
> android:layout_gravity="right"
>
> Note the use of layout_gravity in the second case, pushing the view itself
> to the right. That's for a vertical linear layout - for relative layout,
> use android:layout_alignParentRight="true".
>
> -- K
>
> 2 апреля 2012 г. 16:24 пользователь adev  написал:
>
>
>
>
>
>
>
> > It is set to wrap_content, I have tried match_parent and fill_parent
> > but there is no difference.
>
> > After the adview loads, everything APPEARS Left.
> > However, if I programmatically look at the gravity attribute of the
> > textview, the gravity is still set to right|center_vertical
>
> > On Apr 2, 5:04 am, Kostya Vasilyev  wrote:
> > > There is - layout_width="wrap_content" on the text view.
>
> > > 2 апреля 2012 г. 7:30 пользователь adev  написал:
>
> > > > I've tried dynamically changing each text view, but nothing happens
> > > > when I change it.
> > > > Is there anything thing else that would cause a text view to APPEAR to
> > > > be left justified eventhough gravity is still set to RIGHT?
>
> > > > On Apr 1, 9:54 am, adev  wrote:
> > > > > The adview and admob is all in the XML.
> > > > > I do not have any code related to it.
> > > > > So that is not dynamic.
> > > > > However, it seems that the height of the adview is not determined
> > > > > until the ad is loaded.
> > > > > When I start the app, the adview height seems to be zero, then after
> > > > > one or two seconds, it appears and the rest of the layout resizes to
> > > > > fit.
> > > > > This is when the gravity is reset.
> > > > > I couldn't figure out how to have a preset height.
>
> > > > > On Apr 1, 1:52 am, Narendra Singh Rathore 
> > > > > wrote:
>
> > > > > > On Sun, Apr 1, 2012 at 8:01 AM, adev  wrote:
> > > > > > > Sure I can reset the gravity on all of them in code, but that
> > defeats
> > > > > > > the purpose of using the XML.
>
> > > > > > No, not at all. Just reset the gravity of only the TextView in
> > code.
> > > > You
> > > > > > need not to reset the gravity of all of them, as you are facing the
> > > > problem
> > > > > > only because of TextView's gravity.
>
> > > > > > > I'd like to know the cause of the issue I'm seeing now and solve
> > it.
>
> > > > > > The cause of issue might be that, your adview is being loaded
> > > > dynamically,
> > > > > > hence you have to resolve the matter dynamically through code.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.> To post to this group, send 
> > > > email>toandroid-develop...@googlegroups.com
> > > > To unsubscribe from this group, 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 
> > toandroid-develop...@googlegroups.com
> > To unsubscribe from this group, 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] custom rules not working

2012-04-02 Thread greno
I created a file custom_rules.xml and added a  rule

But when I run ant it gives me this error:

custom_rules.xml:11: Unexpected element "{}
target" {antlib:org.apache.tools.ant}target

If I place the rule in the build.xml it works fine.

So how do I get it to work in the custom_rules.xml file which gets
imported by build.xml?

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


Re: [android-developers] Re: How to set the bitmap to Transparent

2012-04-02 Thread Perry
Hi Justin,
I success now! Thank you for your solution. 
I fault as before because I had a foolish mistake.
Thanks again!.
 
 

MagouyaWare於 2012年4月3日星期二UTC+8上午12時42分52秒寫道:

> Are you sure that it is the bitmap that has the black background?  How are 
> you using the bitmap?  Is it the background or foreground of an ImageView?
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Mon, Apr 2, 2012 at 10:33 AM, Perry  wrote:
>
>> hi,
>> thank you for help. but the background still black.
>>
>> On 4月3日, 上午12時05分, Justin Anderson  wrote:
>> > First, you should use ARGB_... ARGB_ is deprecated:
>> http://developer.android.com/reference/android/graphics/Bitmap.Config...
>> >
>> > Next, here is how to do it:
>> >
>> > temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_);
>> >
>> > //Clear the canvas
>> > Canvas canvas = new Canvas(temp);
>> >
>> > Paint transPainter = new Paint();
>> > transPainter.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR));
>> >
>> > canvas.DrawRect(0, 0, temp.Width, temp.Height, transPainter);
>> >
>> > Hope that helps...
>> >
>> > Thanks,
>> > Justin Anderson
>> > MagouyaWare Developerhttp://sites.google.com/site/magouyaware
>> >
>> >
>> >
>> > On Mon, Apr 2, 2012 at 9:54 AM, Perry  wrote:
>> > > hi,
>> >
>> > > I used following method to create a canvas.
>> >
>> > > temp = Bitmap.createBitmap(thisWidth, thisHeight, Config.ARGB_);
>> > > Canvas thisCanvas = new Canvas(temp);
>> >
>> > > I don't know why the canvas has a black background. How to create a
>> > > Transparent background for use?
>> >
>> > > Thanks a lot!
>> >
>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups "Android Developers" group.
>> > > To post to this group, send email to 
>> android-developers@googlegroups.com
>> > > To unsubscribe from this group, send email to
>> > > android-developers+unsubscr...@googlegroups.com
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/android-developers?hl=en
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, 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] Gallery app... bitmaps exceed memory in listView

2012-04-02 Thread Farhan Tariq
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: Sleep mode

2012-04-02 Thread Dianne Hackborn
If you want to talk about anything you explicitly go into as a low-power
"sleep mode" state, that would be turning off the screen.

Once you are in this state (the screen is off), then the CPU *may* no
longer need to run, but Android does not have an explicit switch to go into
a lower-power "CPU not running" mode.

Holding a wake lock tells the system that you need to keep the CPU running.
 Once no more wake locks are held, the CPU is stopped; at that point, the
only way it can be restarted is by an external interrupt such as from
incoming network data, a timer going of (typically scheduled by the
AlarmManager), certain hardware buttons being pressed, etc.

There are of course all kinds of power management levels going on within
these states -- for example CPU stepping levels depending on the amount of
work the CPU needs to do, many CPUs can go into a "power collapse" state
when there is a wake lock held but the CPU is waiting for work to do, etc.

On Mon, Apr 2, 2012 at 3:16 PM, Dan  wrote:

>
>
> On Apr 2, 9:56 am, Mark Murphy  wrote:
> > On Mon, Apr 2, 2012 at 9:50 AM, Dan  wrote:
> > >> > On screen-off, i.e. when it hits the sleep mode, are the wifi
> radios and CPU
> > >> > disabled/switched-off?
> >
> > >> The CPU stops running.
> >
> > > This is demonstrably wrong, as you can have a PARTIAL_WAKE_LOCK held
> > > and not have the screen on (or even just have ADB gathering logs even
> > > after the short/long power button press to turn the screen off.)
> >
> > The question was "when it hits the sleep mode", and a
> > PARTIAL_WAKE_LOCK prohibits the device from reaching sleep mode.
>
> Note that even without the PARTIAL_WAKE_LOCK held, on many devices
> there is a period where the CPU is still active after the screen goes
> blank (call it PARTIAL_WAKE without the lock held) which makes
> defining
> a test case to be sure that a particular device will "do the right
> thing when an alarm goes off while the CPU is not running" difficult.
>
> > That being said, I neglected to correct the OP on equating "screen
> > off" with "hits the sleep mode", and for that I apologize.
>
> Given Dianne's view of:
>
> > On Android "sleep mode" is the screen being off.  What do you mean by
> > "sleep mode"?
>
> it's easy to see how the OP might have made that assumption.  I
> apologize
> for my tone as well, I've been fighting with issues on some firmware
> where a PendingIntent fed an Intent that has had the class set with
> Intent.setClass() doesn't make it from the AlarmManager to my receiver
> and was hoping for an answer that would make how to test this sort of
> thing easy instead of "we don't acknowledge any difference between
> screen off and cpu off".
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



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

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

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

[android-developers] Re: How can I use Google Maps in Android Apps

2012-04-02 Thread lbendlin
There are libraries for OSM and even (gasp!) Bing Maps.

On Monday, April 2, 2012 5:58:02 PM UTC-4, ga...@deanblakely.com wrote:
>
> I'm an Android platform newbie looking to port some of my Windows 
> Phone 7 mapping apps over here. 
>
> I went to the Android Developers Resources center where it shows how 
> to develop an app using the Google Maps Library.  I did that and 
> noticed that the maps were over 7 years old. 
>
> I posted that issue on this forum and was told that Google had 
> apparently given up on that library.  Strange that they still feature 
> it in their developer resources site. 
>
> So, if they have given up on that library, is there another library 
> they haven't given up on?  It seems odd that Google would give up on 
> Google Maps (bad strategy). 
>
> What tools, libraries, etc. should an android developer use that wants 
> to write compelling mapping applications? 
> Thanks 
> Gary

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

[android-developers] Re: problem about show my current location in Google maps.

2012-04-02 Thread lbendlin
No need to include coarse location in the permissions when you already ask 
for fine location

Did you declare all your activities in the manifest?


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

2012-04-02 Thread Justin Anderson
Ask Facebook...

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


On Thu, Mar 29, 2012 at 5:39 AM, saida gzem  wrote:

> bonjour,
> Comment utilisé le facebook api pour créer un reader  rss/atom dans
> android???
> je vous remercie
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] Help to Fragment

2012-04-02 Thread Justin Anderson
>
> Hello guys, I need to implement two fragments, and are invoked by activity.
>
Ok then, go for it...

 The fragment of the left is a listfragment, and the fragment of the
> right is a tabhost that invokes three other fragment

Sounds like a super sweet design...

 you could help me make this activity

You're right... we could do that.  But, we won't.

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


On Fri, Mar 30, 2012 at 5:45 AM, Gennaro Rega  wrote:

> Hello guys, I need to implement two fragments, and are invoked by
> activity.
>

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

2012-04-02 Thread Justin Anderson
>
> I would like to do dynamic views but i don't know where how I can use this
> constants.
>
http://lmgtfy.com/?q=android+WRAP_CONTENT+in+code

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


On Wed, Mar 28, 2012 at 5:39 AM, Ventura  wrote:

> I would like to do dynamic views but i don't know where how I can use this
> constants.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: SQLite and store dates

2012-04-02 Thread lbendlin
Remember, everything in SQLite is actually strings.

http://www.sqlite.org/lang_datefunc.html


On Wednesday, March 28, 2012 10:17:38 AM UTC-4, sgalmeida wrote:
>
> 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

Re: [android-developers] SQLite and store dates

2012-04-02 Thread Justin Anderson
>
> please let me ask one question about SQLite and Android
>
Ok, ask...

 more specifically the use of dates stored on tables in SQLite.

This doesn't really have much to do with Android then..


> How can I store and retrieve using JAVA the task's due date on SQLite?
>
Use the Cursor class... If you want more help than that you are going to
have to give more specifics about what you are doing and what isn't
working.

There is no cursor.GetDate
>
Of course there isn't... why would there be? Have you read any sort of
tutorials about how to use a database in Android at all?

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


On Wed, Mar 28, 2012 at 8:17 AM, sgalmeida  wrote:

> 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

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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-02 Thread Justin Anderson
>
> I just want to know what are all the details return by the card reader to
> the phone.
>
Just a hunch, but I would guess that would depend on the card reader you
are using...

also is there any API available for this?
>
I would assume that would also depend on the card reader you are using...

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


On Sun, Apr 1, 2012 at 10:25 PM, vijaydroid  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

Re: [android-developers] please help me

2012-04-02 Thread Justin Anderson
http://lmgtfy.com/?q=android+pass+data+to+activity

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


On Sun, Apr 1, 2012 at 11:25 AM, RIT-MCA-2009 wrote:

>  I want a help. am doing my academic project on Android. My project
> is to develop a mobile banking application. Iam an beginner on
> Android. I like to know how can we pass an argument from one activity
> to another activity. My intention is to pass an integer data from an
> activity to next activity when we call the second activity. I hope you
> could help me.
> please mail your answer to the following id: vishnubbala...@gmail.com
> thank you..
>
> with regards
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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-02 Thread Justin Anderson
>
> 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  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

[android-developers] Re: Sleep mode

2012-04-02 Thread Dan


On Apr 2, 9:56 am, Mark Murphy  wrote:
> On Mon, Apr 2, 2012 at 9:50 AM, Dan  wrote:
> >> > On screen-off, i.e. when it hits the sleep mode, are the wifi radios and 
> >> > CPU
> >> > disabled/switched-off?
>
> >> The CPU stops running.
>
> > This is demonstrably wrong, as you can have a PARTIAL_WAKE_LOCK held
> > and not have the screen on (or even just have ADB gathering logs even
> > after the short/long power button press to turn the screen off.)
>
> The question was "when it hits the sleep mode", and a
> PARTIAL_WAKE_LOCK prohibits the device from reaching sleep mode.

Note that even without the PARTIAL_WAKE_LOCK held, on many devices
there is a period where the CPU is still active after the screen goes
blank (call it PARTIAL_WAKE without the lock held) which makes
defining
a test case to be sure that a particular device will "do the right
thing when an alarm goes off while the CPU is not running" difficult.

> That being said, I neglected to correct the OP on equating "screen
> off" with "hits the sleep mode", and for that I apologize.

Given Dianne's view of:

> On Android "sleep mode" is the screen being off.  What do you mean by
> "sleep mode"?

it's easy to see how the OP might have made that assumption.  I
apologize
for my tone as well, I've been fighting with issues on some firmware
where a PendingIntent fed an Intent that has had the class set with
Intent.setClass() doesn't make it from the AlarmManager to my receiver
and was hoping for an answer that would make how to test this sort of
thing easy instead of "we don't acknowledge any difference between
screen off and cpu off".

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

2012-04-02 Thread MB
I would like to know the answer to this too.
Bump up!!

On Mar 29, 6:59 am, evyevy  wrote:
> I'm about to publish applications to USA and CHINA.
>
> I'm currently located at Israel.
>
> how can I change my market store to test my search position?

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


Re: [android-developers] How can I use Google Maps in Android Apps

2012-04-02 Thread Mark Murphy
On Mon, Apr 2, 2012 at 5:58 PM, g...@deanblakely.com
 wrote:
> I posted that issue on this forum and was told that Google had
> apparently given up on that library.

They have not "given up on that library". They have not extended or
enhanced it, but it still works.

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

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

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


[android-developers] How can I use Google Maps in Android Apps

2012-04-02 Thread g...@deanblakely.com
I'm an Android platform newbie looking to port some of my Windows
Phone 7 mapping apps over here.

I went to the Android Developers Resources center where it shows how
to develop an app using the Google Maps Library.  I did that and
noticed that the maps were over 7 years old.

I posted that issue on this forum and was told that Google had
apparently given up on that library.  Strange that they still feature
it in their developer resources site.

So, if they have given up on that library, is there another library
they haven't given up on?  It seems odd that Google would give up on
Google Maps (bad strategy).

What tools, libraries, etc. should an android developer use that wants
to write compelling mapping applications?
Thanks
Gary

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

2012-04-02 Thread Mark Murphy
On Sun, Apr 1, 2012 at 2:02 AM, Patrick Kuckertz
 wrote:
> I want to find all apps implementing a specific intent. How can I do
> this, maybe with reflection, or is there already a sdk method?

Use PackageManager and queryIntentActivities() (or other methods,
depending on your targeted component type).

-- 
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] Android Custom Permission Issue

2012-04-02 Thread Justin Anderson
AFAIK custom permissions are not supposed to show...  I believe only
permissions defined by the OS are supposed to show up to the user.

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


On Fri, Mar 30, 2012 at 3:31 PM, AndRob  wrote:

> Hi All,
>
> I created a custom permission in my app and publised it in android
> market, but i noticed that while installing app from market custom
> permission is not shown on the install page, please suggest whats
> going wrong with it.
>
> I searched a lot for any information on it, but no success. I need it
> urgently, I will be very much obliged if you can provide some solution
> for this
>
> Thanks in Advance
> Rob
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 we use Android on embedded device without LCD?Are there any devices in the market with this option?

2012-04-02 Thread Mark Murphy
This list is for developing apps with the Android SDK. You can learn
more about the Android firmware, and more appropriate lists for your
questions, at http://source.android.com.

On Sat, Mar 31, 2012 at 5:34 PM, AndroidGuy  wrote:
> Hello Friends,
>
> Android is mainly designed for phones and Tablets. But lot of embedded
> devices doesn't have LCD display or in fact any user input device.Can
> we use Android on embedded system without LCD? If so, is there any
> such device available in the market.
> I heard about headless Android, but didn't find any commercial device
> with that option, in fact author of that article mentioned that not
> ship any device with headless option.
>
> Thanks,
> AndroidGuy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



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

_The Busy Coder's Guide to 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] Re: Get and save GPS location while i am walking

2012-04-02 Thread Kristopher Micinski
Aside from that, I'd be pretty weary of the security of any app that
was constantly tracking me for hours straight.

The *only* situation where I see this making sense is when I go out
for a day of hiking or something, and even then I don't want anything
*that* accurate, because I just don't move all that fast...  Maybe
once every twenty or thirty minutes..

Maybe there's a lot of people who want to constantly see where they
are and record it..., but I can't think of too many (besides the
obvious navigation apps.)

Kris

On Mon, Apr 2, 2012 at 5:10 PM, Sean Barbeau  wrote:
> I agree with Kristopher, GPS eats up battery energy quickly and you have to
> be careful using GPS in an app to avoid exhausting the user's battery.
>
> We've done extensive work to come up with some dynamic GPS sampling
> strategies that increase battery life because of this reason.  Check out
> slide 5 in this presentation:
> http://www.locationaware.usf.edu/wp-content/uploads/2011/11/Barbeau-GPS-Auto-Sleep-patent3.pps
>
> With a HTC Hero, sampling GPS every 4 seconds and doing nothing else (i.e.,
> Wifi, screen off) the battery is exhausted after 5 hrs.  This matches up
> with the guidance given by the MyTracks folks at Google who say you'll
> typically get less than 5 hrs of battery life when using MyTracks:
> http://support.google.com/gmm/bin/answer.py?hl=en&answer=2391538&topic=2391064&ctx=topic
>
> So, given that users depend on their phone to do other things (like make
> phone calls), you need to use GPS wisely.
>
> Sean
>
>
> On Friday, March 30, 2012 10:10:53 PM UTC-4, lbendlin wrote:
>>
>> A full battery on the phone can easily support 8 hrs of constant GPS
>> tracking, especially when the screen is off. Now go walk for 8 hrs.
>>
>> On Thursday, March 29, 2012 3:37:37 PM UTC-4, Kristopher Micinski wrote:
>>>
>>> Yes, having GPS going on a lot will be bad for your battery..., you
>>> have to live with it.
>>>
>>> You can try getting the location from a passive provider, but that's
>>> somewhat spotty, of course..., If you want to use GPS, you have to be
>>> willing to pay the price..
>>>
>>> kris
>>>
>>> On Thu, Mar 29, 2012 at 3:29 PM, Spica  wrote:
>>> > Hmm... would be expenssive on battery coz GPS would be working all
>>> > that time.
>>> >
>>> > Any different idea?
>>> >
>>> > On Mar 29, 12:59 pm, lbendlin  wrote:
>>> >> Nothing huge about it. You only get one data row per second max.
>>> >>  SQLite is
>>> >> laughing at that.
>>> >>
>>> >>
>>> >>
>>> >> On Thursday, March 29, 2012 12:22:47 PM UTC-4, Spica wrote:
>>> >>
>>> >> > Guys,
>>> >> > How i can save GPS locations while i am walking? I will be
>>> >> > displaying
>>> >> > my walking track which i will recording while walking. Where i would
>>> >> > be saving all those huge number of locations on my phone?
>>> >> > There are few apps in the market who are doing that, please share
>>> >> > your
>>> >> > ideas how and where they save this data?
>>> >>
>>> >> > Thanks,- Hide quoted text -
>>> >>
>>> >> - Show quoted text -
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Android Developers" group.
>>> > To post to this group, send email to
>>> > android-developers@googlegroups.com
>>> > To unsubscribe from this group, 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] Re: Get and save GPS location while i am walking

2012-04-02 Thread Sean Barbeau
I agree with Kristopher, GPS eats up battery energy quickly and you have to 
be careful using GPS in an app to avoid exhausting the user's battery.  

We've done extensive work to come up with some dynamic GPS sampling 
strategies that increase battery life because of this reason.  Check out 
slide 5 in this presentation:
http://www.locationaware.usf.edu/wp-content/uploads/2011/11/Barbeau-GPS-Auto-Sleep-patent3.pps

With a HTC Hero, sampling GPS every 4 seconds *and doing nothing else 
(i.e., Wifi, screen off)* the battery is exhausted after 5 hrs.  This 
matches up with the guidance given by the MyTracks folks at Google who say 
you'll typically get less than 5 hrs of battery life when using MyTracks:
http://support.google.com/gmm/bin/answer.py?hl=en&answer=2391538&topic=2391064&ctx=topic
 

So, given that users depend on their phone to do other things (like make 
phone calls), you need to use GPS wisely.

Sean

On Friday, March 30, 2012 10:10:53 PM UTC-4, lbendlin wrote:
>
> A full battery on the phone can easily support 8 hrs of constant GPS 
> tracking, especially when the screen is off. Now go walk for 8 hrs.
>
> On Thursday, March 29, 2012 3:37:37 PM UTC-4, Kristopher Micinski wrote:
>>
>> Yes, having GPS going on a lot will be bad for your battery..., you
>> have to live with it.
>>
>> You can try getting the location from a passive provider, but that's
>> somewhat spotty, of course..., If you want to use GPS, you have to be
>> willing to pay the price..
>>
>> kris
>>
>> On Thu, Mar 29, 2012 at 3:29 PM, Spica  wrote:
>> > Hmm... would be expenssive on battery coz GPS would be working all
>> > that time.
>> >
>> > Any different idea?
>> >
>> > On Mar 29, 12:59 pm, lbendlin  wrote:
>> >> Nothing huge about it. You only get one data row per second max. 
>>  SQLite is
>> >> laughing at that.
>> >>
>> >>
>> >>
>> >> On Thursday, March 29, 2012 12:22:47 PM UTC-4, Spica wrote:
>> >>
>> >> > Guys,
>> >> > How i can save GPS locations while i am walking? I will be displaying
>> >> > my walking track which i will recording while walking. Where i would
>> >> > be saving all those huge number of locations on my phone?
>> >> > There are few apps in the market who are doing that, please share 
>> your
>> >> > ideas how and where they save this data?
>> >>
>> >> > Thanks,- Hide quoted text -
>> >>
>> >> - Show quoted text -
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to 
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, 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] Linked Developer accounts risk?

2012-04-02 Thread Arshad Fendi
Hello every one.

I have had this question in mind and cant find any answer for it any where.
If it was answered before, them I'm sorry for not searching much enough.

I had a developer account before which was suspended due to multiple 
suspension violations. It was an honest mistake and I am take all the 
responsibility.
Now my question is, I have created a new developer account and everything 
seems to be fine, but I read that linked Google accounts with a suspended 
developer account(s) will also get the new account suspended. Is that true? 
(cant find anything about it on their ToS, or maybe I just had missed it).

I am keeping my new developer account clean and use only content that is 
free to use from the author (images/text/etc). Am I then still at a risk?

Thank you in advance.

Arshad Fendi

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

[android-developers] Unzipping files

2012-04-02 Thread RDX 2104
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


[android-developers] How can i enable GPRS?

2012-04-02 Thread Rocon
i am going to make a application, and i need GPRS on
But user are not going to on this GPRS.
 So i have to do this in application

Can anyone help me out.

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


[android-developers] Problem with multiple redraw of overlayitem

2012-04-02 Thread Linoxps
Hello, first sorry for my english jeje. I have an issue with an
application that i'm trying to develop. I have a seekbar over the
mapview that changes the position of a icon, and i use a class that
extends "ItemizedOverlay". Up here all fine, but when i
move the cursor bar the image is redrawn from one place to another and
have transparent areas are becoming increasingly more and more black.
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?

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


[android-developers] cannot instantiate ObjectInputStream

2012-04-02 Thread manish411
I am making an android app in which I want to transfer file from my
server pc to my android phone. The server reads the file ,
encapsulates it into a bytearray and then writes it as an object of a
class to the ObjectOutputStream.

This is the class whose object is to be send
[code]
import java.io.Serializable;
public class FileClass implements Serializable{
public byte file[];
public FileClass(byte file[])
{
  this.file = file;
}
}

[/code]
this is the function for sending the object
[code]
void sendvideoobject(String f)throws Exception
{
String filepath = f;

File file = new File(filepath);
byte[] mybytearray  = new byte[(int)file.length()];
FileInputStream fin = new FileInputStream(filepath);
fin.read(mybytearray);
FileClass myfile = new FileClass(mybytearray);
ObjectOutputStream ob = new ObjectOutputStream(out);
ob.flush();
ob.writeObject(myfile);
ob.flush();
System.out.println("Finished sending file");
}
[/code]

All the streams are initialized in a staticsocket class as static
objects at the time of connection in a separtate thread.
[code]
package com.android;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.StreamCorruptedException;
import java.net.Socket;

import android.util.Log;

public class staticsocket{
public static Socket socket;
public static OutputStream o;
public static String servername;
public static DataOutputStream dout;
public static DataInputStream din;
public static ObjectInputStream obin;
public static ObjectOutputStream obout;
public static InputStream i;
public static BufferedInputStream bi;
public static BufferedOutputStream bo;
public static void setsocket(InputStream in,OutputStream out)

{
try{
i = in;
o = out;


  dout = new DataOutputStream(o);
din = new DataInputStream(i);
bi = new BufferedInputStream(i);
bo = new BufferedOutputStream(o);
System.out.println("Finished intializing streams");

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

}

[/code]
This is the download function  which is implemented at the client side
at a separate thread running.
[code]
public void run() {
// TODO Auto-generated method stub
try
{
byte buffer[] = new byte[1024];
String filepath =null;

  System.out.println("started downloading");
  ObjectOutputStream obout = new ObjectOutputStream(staticsocket.o);
  obout.flush();
  System.out.println("Initialized objectoutputstream");


//THIS IS WHERE THE EXECUTION JUST HANGS
  ObjectInputStream obin = new ObjectInputStream(staticsocket.i);
System.out.println("Initialized objecinputstream");
 FileClass file = (FileClass)obin.readObject();
  FileOutputStream of = new FileOutputStream("/mnt/sdcard/
Raul.mp4");
  BufferedOutputStream bo = new BufferedOutputStream(of);
  bo.write(file.file);
System.out.println("Finished receiving file");

}
catch(Exception e)
{}
}
}[/code]

The execution hangs just after Initialized objectoutputStream.
I have read that objectoutputstream on the other side has to be
initialized before. But still after initializing the
objectoutputstream on the server and flushing it the application on
the client android is not able to intialize the objectinputstream.
However the same algorithms works if I run the client application as a
simple java code.

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


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

2012-04-02 Thread Alex
First, in my activity launch a Intent to send SMS.
Second, forward to SMS UI, user can add contacter, then sent SMS.
Last, I hope my activity can receive this message or broadcast this
message or listen this message, then to get address or content.

Don't consider use SmsManager to implement it, anybody can help me,
give me some idea how to deal with this situation, thanks a lot.

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


[android-developers] Solved problem

2012-04-02 Thread Florin Pop
HI!

All you have to do to solve the overriding problem is to delete the
annotations from the project. Create a new project from existing
samples and delete the annotations from it! The project will have no
errors.

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


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

2012-04-02 Thread Marcus Maximus
Hey guys,

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.

here is a picture of that:

http://www.pic-upload.de/view-13539041/Unbenannt.jpg.html

why is that and how can I fix that?

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


Re: [android-developers] Database access from another android phone.

2012-04-02 Thread Nimish John
Thanks friend.
I understud it partially
I am retrieving data from database(everywher) in this
format(cursor.getString(5) etc..
The problem i am facing is...
I have a item "stock" variable in one class which will b updated to db
frequently according to ma prgm logic
when i am retrieving this stock to another class where i need to check some
condition
it s simultaneosly changing the value.
sometimes it giving updated value sometimes it is not.am sure that am
retrieving from d exact place i want but the thing is it s always geting
interchnged...

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

[android-developers] please help me

2012-04-02 Thread RIT-MCA-2009
  I want a help. am doing my academic project on Android. My project
is to develop a mobile banking application. Iam an beginner on
Android. I like to know how can we pass an argument from one activity
to another activity. My intention is to pass an integer data from an
activity to next activity when we call the second activity. I hope you
could help me.
please mail your answer to the following id: vishnubbala...@gmail.com
thank you..

with regards

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


[android-developers] Spell checker is getting called multiple times in Landscape mode

2012-04-02 Thread krishna chaitanya
Hi,

I am currently working on spell checker in android 4.0. I have created
a new spell checker and added into android. It is working fine. But
when i change the device from portrait to landscape mode, spell
checker is getting called for each and evry word in the editor.

When i change the device from landscape to portrait mode, spell
checker is not getting called even once.

Spell checker is even getting called multiple time when i insert a
word into it.

Can anyone pls tell  why spell checker is getting called so many
times.

Thanks in advance.

Regards,
Krishna Chaitanya.

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


Re: [android-developers] Getting Acquired: Selling Apps and Games to a Business/Investor

2012-04-02 Thread Dallas Gutauckis
On Wed, Mar 28, 2012 at 9:30 AM, Rob Jackson  wrote:

> I'm working on an article about app developers selling their apps/games to
> larger companies for Phandroid.com and hoping some developers here may be
> able to offer some insight. If you have any experience, insight, stories to
> share, or people to refer, please respond here or shoot me an E-Mail at rob
> (at) phandroid (.) com
>
> Some specific questions I have:
>
>- Does Google currently facilitate the transfer of acquired apps/games
>from one developer account to another?
>
>
Yes. Go to
http://support.google.com/googleplay/android-developer/bin/request.py?contact_type=publishingand
select "Transfer applications to another account" -- They're pretty
quick to get this process complete (1-2d at most in my experience)


>- If so, what are the requirements?
>
>
Just fill out in the form


>- If not, is this something Google may plan for the future?
>- Does Google recommend any "best practices" for Android Developers so
>that they may one day sell their app with minimal complications? Perhaps
>creating a separate dev account for each account, or signing each app with
>a different key, or any other practices?
>
>
I personally recommend that you make a different alias for each of your
apps, but ultimately as long as someone doesn't have access to your account
they cannot upload a new version of your application, signed or not. I also
recommend that if you're selling your application you set up a contract
that limits the distribution of your signature and also makes it so you can
litigate if they attempt any access on your developer account.


>
>- Can a developer change the signing key of an app upon request or
>through any automated means?
>
>
No.


> I'm guessing the process is rudimentary and relegated to the huge
> companies buying big name apps like Draw Something, but curious to hear
> your thoughts. I'm still hoping Google will implement some simpler
> Developer features like Github-style organization/team management so
> multiple developers can administer an application in the Market/Play.
>
> Thanks for your help!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Getting Acquired: Selling Apps and Games to a Business/Investor

2012-04-02 Thread Dallas Gutauckis
Seems my original email didn't show up in the group, so if it does later, I 
apologize for the multiple responses.

On Wednesday, March 28, 2012 9:30:39 AM UTC-4, Rob Jackson wrote:
>
> I'm working on an article about app developers selling their apps/games to 
> larger companies for Phandroid.com and hoping some developers here may be 
> able to offer some insight. If you have any experience, insight, stories to 
> share, or people to refer, please respond here or shoot me an E-Mail at rob 
> (at) phandroid (.) com
>
> Some specific questions I have:
>
>- Does Google currently facilitate the transfer of acquired apps/games 
>from one developer account to another?
>
>
Yes. Go to 
http://support.google.com/googleplay/android-developer/bin/request.py?contact_type=publishingand
 select "Transfer applications to another account" -- They're pretty 
quick to get this process complete (1-2d at most in my experience)
 

>
>- If so, what are the requirements?
>
>
Nothing unexpected. Both parties have to agree to it being transferred.
 

>
>- If not, is this something Google may plan for the future?
>- Does Google recommend any "best practices" for Android Developers so 
>that they may one day sell their app with minimal complications? Perhaps 
>creating a separate dev account for each account, or signing each app with 
>a different key, or any other practices?
>- Can a developer change the signing key of an app upon request or 
>through any automated means?
>
>
The device verifies the key, so changing the key would render the app 
useless, even if the market permitted it to be uploaded. In my experience 
developers are ultimately willing to accept giving their key to us, even if 
they have other apps, given we still don't have access to their developer 
account and we sign contract basically saying we won't use the key for 
anything malicious. I've gone through the transfer process for at least 6 
applications, some applications more than once to different accounts.
 

>
> I'm guessing the process is rudimentary and relegated to the huge 
> companies buying big name apps like Draw Something, but curious to hear 
> your thoughts. I'm still hoping Google will implement some simpler 
> Developer features like Github-style organization/team management so 
> multiple developers can administer an application in the Market/Play.
>
> Thanks for your help!
>

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

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

2012-04-02 Thread sanyprashant
I am developing a cloud comp. Client side application,i am done with
gui part...but getting how do i pass the data like ip..port to vnc and
launch 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: developing a trivia game

2012-04-02 Thread Vinaya Godbole
how is it possibleplease explain


On Sunday, February 26, 2012 5:31:27 PM UTC+5:30, Vinaya Godbole wrote:
>
> hey m totally new to android n programming in particular 
> i need to make a game that has questions based on arithmetic, logic, 
> vocabulary n memory.. i also need to use animations for the memory 
> part. 
> the app should store the result of the user in terms of time required 
> to solve and also whether d answer is right... 
> n all this needs to occur in sessions... of abt 20 questions each 
> is it also possible to generate consecutive questions based on the 
> performance of the user so far in a particular session?

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

[android-developers] Intent explicit Find apps implementing specific intent

2012-04-02 Thread Patrick Kuckertz
Hi,

I want to find all apps implementing a specific intent. How can I do
this, maybe with reflection, or is there already a sdk method?

When I know the list of intents, I would like to call the applications
explicit. So I need to get all information about the intent to setup a
explicit intent (in a dynamic way)

And I would use the implicit intent as fall back, if the explicit call
does not work.

Goal: I want to have settings, where one can specify which intent one
likes to get (all of the same type). Afterwards, when I want to start
an activity of such a type, I would like to call the intent the user
has defined. Even if the default type differs.

Best Regards,

Patrick

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

2012-04-02 Thread Justin Anderson
http://catb.org/esr/faqs/smart-questions.html

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


On Fri, Mar 30, 2012 at 9:04 AM, vamsee  wrote:

> hi my name is vamsi i am doing MCA 2nd year .now i am doing my mini
> project on android Bluetooth chat 
> iam using android 2.3.2 version it gets compile errors some of the
> problems i can't solve it ...please any one tel me which version
> is better to develop this application
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Re: Get and save GPS location while i am walking

2012-04-02 Thread Ifor
The normal place to save gps data like this is in a .gpx file as a track.  
That will be the most portable format if you want to view the data in any 
other aplication.

On Thursday, 29 March 2012 17:22:47 UTC+1, Spica wrote:

> Guys, 
> How i can save GPS locations while i am walking? I will be displaying 
> my walking track which i will recording while walking. Where i would 
> be saving all those huge number of locations on my phone? 
> There are few apps in the market who are doing that, please share your 
> ideas how and where they save this data? 
>
> Thanks,

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

[android-developers] How can I change the active store?

2012-04-02 Thread evyevy
I'm about to publish applications to USA and CHINA.

I'm currently located at Israel.

how can I change my market store to test my search position?

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

2012-04-02 Thread saida gzem
bonjour,
Comment utilisé le facebook api pour créer un reader  rss/atom dans
android???
je vous remercie

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


[android-developers] Issue loading ImageView from InputStream obtained from web service in Android 3.0 and above

2012-04-02 Thread Girish K.N.


My app has to display an image preview from the image data obtained as 
InputStream from a web service. InputStream is decoded to Bitmap to display 
in ImageView. This entire flow is working fine in Android 2.2 and 2.3, 
whereas it's not functioning with Android 3.0 and 4.0. The bitmap decoded 
is null in the latter case whereas its fine in 2.x.

Here is the code snippet I use.

ImageView imgView = (ImageView) findViewById(R.id.image);   
String imageUrl = "my webservice url";  
HttpClient httpClient = new DefaultHttpClient();
HttpGet mHttpGetEntity = new HttpGet(imageUrl);
HttpResponse response;
try {
response = httpClient.execute(mHttpGetEntity);
InputStream is = response.getEntity().getContent();
imgView.setImageBitmap(BitmapFactory.decodeStream(is));
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

How can I make this work even with Android 3.0 above. Please advice.

-Girish



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

[android-developers] Renderscript memory and arrays

2012-04-02 Thread Harald Gustafsson
Hi,

I'm porting libx264 to renderscript as an exercise to see how much
trouble it is to take a sizeable chunk of c code that is developed for
GNU Linux and make it into renderscript. This code is fairly limited
in accesses to outside world so should be able to make it run on a DSP
or the CPU.

But now to my problem: I get this error message:
error: multidimensional arrays cannot be exported:
'x264_cabac_transition' cabac.rsh

The line looks like this:
extern const uint8_t x264_cabac_transition[128][2];

Is it not allowed to have multi-dimensional arrays in Renderscript
(since single dimension works)?

I also get similar errors
error: structures containing pointers cannot be exported:
'x264_weight_t' mc.rsh

When I have pointers in structures, is that not either allowed?

If this is true, does a list with all C constructs that is not
supported in Renderscript exist?

By the way does any way of using dynamic memory allocation inside
Renderscript exist, that is for memory that is not going to be visible
for the Java world?

/Harald

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


[android-developers] Renderscript extern multiarrays

2012-04-02 Thread Harald Gustafsson
Hi,

I'm porting libx264 to renderscript as an exercise to see how much
trouble it is to take a sizeable chunk of c code that is developed for
GNU Linux and make it into renderscript. This code is fairly limited
in accesses to outside world so should be able to make it run on a DSP
or the CPU.

But now to my problem: I get this error message:
error: multidimensional arrays cannot be exported:
'x264_cabac_transition' cabac.rsh

The line looks like this:
extern const uint8_t x264_cabac_transition[128][2];

Is it not allowed to have multi-dimensional arrays in Renderscript
(since single dimension works)?

I also get similar errors
error: structures containing pointers cannot be exported:
'x264_weight_t' mc.rsh

When I have pointers in structures, is that not either allowed?

If this is true, does a list with all C constructs that is not
supported in Renderscript exist?

My workaround that I'm trying now is to include all the c-code in the main 
.rs file so I can skip all the extern definitions and have all declarations 
as static.

The code also uses dynamic memory allocation (for rs-local usage) anyone 
having any tip on how to easiest convert that for renderscript?

/Harald

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

2012-04-02 Thread gaurav parmar
i have a button when user click the button than that text are display 
in the text view as same activity how it is possible please reply me fast?

On Tuesday, September 1, 2009 11:58:42 AM UTC+5:30, pink 444 wrote:
>
> Hai, 
>I have a EditText filed in my Activity class,Where i need to 
> retain data,when orientation is changed or "HOME" button is pressed or 
> "BACK(FINISH)" is pressed. 
>
>   Android internally maintaining EditText when orientation is 
> changed or HOME button is pressed .But it is not maintaining  EditText 
> status when BACK button is pressed. 
>
>   How can i make it happen to retain data in all three cases 
> (orientation is changed,HOME is pressed, Back is pressed) in a 
> feasible way? 
>
>
>   Any help would be appreciated highly. 
>
> Regards, 
> -Siva. 
>
>

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

[android-developers] Service best practice

2012-04-02 Thread dani
Hi guys,
i'm new to the Android development (and i don't speak english very well, so 
excuse me for any mistake i'm going to put in this text), so the answer may 
be very simple (and the question stupid).. i read the android documentation 
but i keep on with my doubts..

I have a service that use the location manager to know the location of the 
device.
I have others activities, let's say the A (main) activity, and the B 
(secundary) activity.
The idea is to start the service in A and keep using it in B.. i mean, i 
want to initialize the localization service in A, decide wher start/stop 
listening for location in A, and keep doing the same in B..
Also, I need to access some other method of the service.

My first attempt was to create a binded service.. in A it works well, i 
bind to it in A.onStart(), later in the code (button click, for example) i 
call  something like A.startListeningForLocation()... and I unbind from the 
service in A.onPause(). 

Now, if i do the same with the B activity, i found the service to pass 
through the onDestroy() method.. i'd like, in B, to bind to the service, 
and call other method, without having to initalizate the location manager 
again.. so i suppose the i have to start the activity normally and then 
bind to it.. 

So, my questions is: is this a correct solution? where should i have to 
start / bind / unbind /stop the service, in A and B (supposing y only have 
the two activity)?

Thank you very much guys,
Dani

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

2012-04-02 Thread gaurav parmar
I have to display message that are write in button text when button 
click then that message display the text view it is possible if yes than 
how please tell me.

On Tuesday, September 1, 2009 11:58:42 AM UTC+5:30, pink 444 wrote:
>
> Hai, 
>I have a EditText filed in my Activity class,Where i need to 
> retain data,when orientation is changed or "HOME" button is pressed or 
> "BACK(FINISH)" is pressed. 
>
>   Android internally maintaining EditText when orientation is 
> changed or HOME button is pressed .But it is not maintaining  EditText 
> status when BACK button is pressed. 
>
>   How can i make it happen to retain data in all three cases 
> (orientation is changed,HOME is pressed, Back is pressed) in a 
> feasible way? 
>
>
>   Any help would be appreciated highly. 
>
> Regards, 
> -Siva. 
>
>

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

2012-04-02 Thread Veerabhara Gundu
How is this embedded device is different from normal android phone? Please
give us more details about the device.

Thanks,
Veera

On Wed, Mar 28, 2012 at 2:01 PM, wrote:

>   Today's Topic Summary
>
> Group: http://groups.google.com/group/android-developers/topics
>
>- fragment pagers continued <#1365aaf5248ddf08_group_thread_0> [4
>Updates]
>- [No Subject] <#1365aaf5248ddf08_group_thread_1> [1 Update]
>- how to upload picture which taken by camera to web 
> service<#1365aaf5248ddf08_group_thread_2>[1 Update]
>- Remove / change website elements? <#1365aaf5248ddf08_group_thread_3>[1 
> Update]
>- Access Point Change detection <#1365aaf5248ddf08_group_thread_4> [2
>Updates]
>- Hello everyone, i couldn't figure out what this error in the logcat
>means!!! <#1365aaf5248ddf08_group_thread_5> [3 Updates]
>- Bluetooth keyboard <#1365aaf5248ddf08_group_thread_6> [1 Update]
>- google io <#1365aaf5248ddf08_group_thread_7> [1 Update]
>- write addPreferencesFromResource(R.xml.preferences); without
>extending preferenceactivity <#1365aaf5248ddf08_group_thread_8> [2
>Updates]
>- Two ListViews and viewpager <#1365aaf5248ddf08_group_thread_9> [1
>Update]
>- NFC bidirecional communication with Android ICS using two Nexus 
> S<#1365aaf5248ddf08_group_thread_10>[3 Updates]
>- how to different button design using xml 
> code<#1365aaf5248ddf08_group_thread_11>[1 Update]
>- How to get the TextView values in 
> ListView<#1365aaf5248ddf08_group_thread_12>[1 Update]
>- Are we allowed to email Google Play 
> customers?<#1365aaf5248ddf08_group_thread_13>[1 Update]
>- Run Shell Script file On Android Embedded Device using System
>function in Android NDK <#1365aaf5248ddf08_group_thread_14> [1 Update]
>- android tablet 3.0 <#1365aaf5248ddf08_group_thread_15> [1 Update]
>
>   fragment pagers 
> continued
>
>TreKing  Mar 28 01:23PM -0500
>
>
>> its possible in android fragment pagers that make the swiping
>between page
>> continue from last to first
>
>
>If you're swiping, how would it make sense to move from the last to
>first
>in one swipe?
>
>
>
> -
>TreKing  - Chicago
>transit tracking app for Android-powered devices
>
>
>
>
>Justin Anderson  Mar 28 12:34PM -0600
>
>
>> If you're swiping, how would it make sense to move from the last to
>first
>> in one swipe?
>
>I've actually seen this on some apps and, if done right, it works... I
>basically just turns the pages into a loop. That way if you have n
>pages
>are on the last page you don't have to swipe n - 1 times to get back
>to the
>first page... A single swipe can bring you back to the first.
>
>Thanks,
>Justin Anderson
>MagouyaWare Developer
>http://sites.google.com/site/magouyaware
>
>
>
>
>
>
>TreKing  Mar 28 01:50PM -0500
>
>> basically just turns the pages into a loop. That way if you have n
>pages
>> are on the last page you don't have to swipe n - 1 times to get back
>to the
>> first page... A single swipe can bring you back to the first
>
>
>Oohh, durf, that makes sense, to "wrap around". I thought the OP
>wanted
>to go from 4 to 1 *past 2 and 3*. That would not make sense.
>
>As for the actual problem, sorry, haven't used those classes.
>
>
>
> -
>TreKing  - Chicago
>transit tracking app for Android-powered devices
>
>
>
>
>Mark Murphy  Mar 28 02:54PM -0400
>
>> basically just turns the pages into a loop.  That way if you have n
>pages
>> are on the last page you don't have to swipe n - 1 times to get back
>to the
>> first page...  A single swipe can bring you back to the first.
>
>I imagine that you'd do that the same way you do an "infinite" gallery
>-- have your PagerAdapter return a huge number from getCount(), then
>interpret all the incoming position values (e.g., to
>instantiateItem()) as being modulo your actual size.
>
>However, I doubt that FragmentPagerAdapter/FragmentStatePagerAdapter
>would be aware of this behavior, and so you would probably have to
>roll your own PagerAdapter implementation. I also am uncertain how
>well this will work with PagerTitleStrip and kin.
>
>--
>Mark Murphy (a Commons Guy)
>http://commonsware.com | http://github.com/commonsguy
>http://commonsware.com/blog | http://twitter.com/commonsguy
>
>Android App Developer Books: http://commonsware.com/books
>
>
>
>   [No 
> Subject]
>
>Mark Phillips

[android-developers] android market limitations question

2012-04-02 Thread gsk
Hi, I have two questions about publishing apps in android market.

1. Are there any limitations about how many apps can I upload from one
account?
2. Can I put other people apps in market using my account and take
money from them for doing that ? Isn't it against android market
policy?

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

2012-04-02 Thread Gennaro Rega
Hello guys, I need to implement two fragments, and are invoked by
activity.
The fragment of the left is a listfragment, and the fragment of the
right is a tabhost that invokes three other fragment ... you could
help me make this activity

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


[android-developers] Bypassing Android Network thru Paros

2012-04-02 Thread divus
Hi,

I am doing Android security testing. I need to route Android network
traffic thru Paros. I have made the configuration. BUt the HTTP
response is giving (NTLM) NA NT_STATUS_WRONG_PASSWORD error. I am
working behind a proxy.

I have set the Android APN to 10.0.2.2 and port 8080. It would be a
greta help if anyone can help on this.

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


[android-developers] Can we use Android on embedded device without LCD?Are there any devices in the market with this option?

2012-04-02 Thread AndroidGuy
Hello Friends,

Android is mainly designed for phones and Tablets. But lot of embedded
devices doesn't have LCD display or in fact any user input device.Can
we use Android on embedded system without LCD? If so, is there any
such device available in the market.
I heard about headless Android, but didn't find any commercial device
with that option, in fact author of that article mentioned that not
ship any device with headless option.

Thanks,
AndroidGuy

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

2012-04-02 Thread dusslk
I need to send 10-bit data from the Analog to digital converter(ADC)
from a dsPIC at 2Mbps through UART interface, to the bluetooth module.
Then the bluetooth module should read this data through its UART
interface and transmit this data via bluetooth which will be finally
received by an Android phone. An application in the phone will take
this data and plot a waveform on the screen.

So basically the phone will recieve data at 2 Mbps via bluetooth. Is
this practically possible ?

Most bluetooth modules say they can transfer data only around 300 kbps
using RFCOMM protocol. To go upto 2Mbps it is needed to use the HCI
protocol. So then can the Android phone read data sent in HCI
protocol. Is there any support available. Currently all transfers done
in Android which I found are in RFCOMM.

Is there any way either using RFCOMM or any other means to for Android
phone to aquire atleast 1.5 Mbps data via bluetooth.

Thank you,
Best Regards.

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


[android-developers] ADT 17.0.0 wont install on Eclipse Indigo

2012-04-02 Thread Gregory Lange
I just recently re-installed my windows 7 64 bit machine and was trying to 
get everything setup however i cannot get it to install using either 64 or 
32 Eclipse and nothing i have found while googling even has a fix for this 
issue.

https://dl-ssl.google.com/android/eclipse/ <-- linked used  from the dev 
site. i have tried http:// also with same error.

Cannot complete the install because one or more required items could not be 
found.
  Software being installed: Android Development Tools 
17.0.0.v201203161636-291853 (com.android.ide.eclipse.adt.feature.group 
17.0.0.v201203161636-291853)

I downloaded the SDK zip and extracted it before i tried to do the ADT in 
Eclipseany help would be 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

Re: [android-developers] Parsing of JSON data

2012-04-02 Thread Justin Anderson
>
> I am not able to parse following data.
>
Why not?


> "
>
> *{"id":315,"name":"Sagar 
> Ratna","url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315","location":{"address":"B-1,
>  A-11 Mohan Co-operative Ind Area, Mathura Road, New 
> Delhi","locality":"Mathura 
> Road","city":"Delhi","latitude":"28.520727","longitude":"77.294253"},"phone":"011
>  26955802, 011 26955803, 011 26955804","cuisines":"South 
> Indian","timings":"11 AM to 11 
> PM","avgCostForTwo":450,"isPureVeg":1,"hasBar":0,"hasDineIn":1,"hasDelivery":1,"acceptsCreditCards":1,"serviceCharge":0,"vat":1,"editorRating":{"food":2.5,"service":3.5,"ambience":2,"overall":3},"editorReview":"","userReviews":{"count":2,"0":{"review":{"id":"24728","rating":0,"reviewText":"yyejbbxzszbxzbomato.comForDevelopmentPurposes","author":"Arup
>  Saha","reviewTime":"2012-01-25 16:23:10","reviewTimeFriendly":"2 months 
> ago"}},"1":{"review":{"id":"24727","rating":5,"reviewText":"testReviewOnZomato.comForDevelopmentPurposes","author":"Arup
>  Saha","reviewTime":"2012-01-25 16:14:16","reviewTimeFriendly":"2 months 
> ago"}}},"discounts":[],"photos":{"photos_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/photos#tabtop","0":{"photo":{"thumbUrl":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1_thumb.jpg","url":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1.jpg"}}},"image_470_310":"","image_310_310":"","image_310_150":"","image_150_150":"","menu":{"menu_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/menu#tabtop"}}*
>
> "
>
Are you expecting us to go through and validate the json data?

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


On Thu, Mar 29, 2012 at 3:36 AM, Mini agrawal  wrote:

> I am not able to parse following data. I am receiving this data from some
> URl in  object of JSONObject.
>
> "
>
> *{"id":315,"name":"Sagar 
> Ratna","url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315","location":{"address":"B-1,
>  A-11 Mohan Co-operative Ind Area, Mathura Road, New 
> Delhi","locality":"Mathura 
> Road","city":"Delhi","latitude":"28.520727","longitude":"77.294253"},"phone":"011
>  26955802, 011 26955803, 011 26955804","cuisines":"South 
> Indian","timings":"11 AM to 11 
> PM","avgCostForTwo":450,"isPureVeg":1,"hasBar":0,"hasDineIn":1,"hasDelivery":1,"acceptsCreditCards":1,"serviceCharge":0,"vat":1,"editorRating":{"food":2.5,"service":3.5,"ambience":2,"overall":3},"editorReview":"","userReviews":{"count":2,"0":{"review":{"id":"24728","rating":0,"reviewText":"yyejbbxzszbxzbomato.comForDevelopmentPurposes","author":"Arup
>  Saha","reviewTime":"2012-01-25 16:23:10","reviewTimeFriendly":"2 months 
> ago"}},"1":{"review":{"id":"24727","rating":5,"reviewText":"testReviewOnZomato.comForDevelopmentPurposes","author":"Arup
>  Saha","reviewTime":"2012-01-25 16:14:16","reviewTimeFriendly":"2 months 
> ago"}}},"discounts":[],"photos":{"photos_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/photos#tabtop","0":{"photo":{"thumbUrl":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1_thumb.jpg","url":"http:\/\/www.zomato.com\/data\/pictures\/chains\/305\/1.jpg"}}},"image_470_310":"","image_310_310":"","image_310_150":"","image_150_150":"","menu":{"menu_url":"http:\/\/www.zomato.com\/ncr\/restaurants\/south-delhi\/mathura-road\/sagar-ratna-315\/menu#tabtop"}}*
>
> "
>
>
> Please reply asap.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] I need help with my senior project, buttons, webview, test app development

2012-04-02 Thread gma2
I made a pretty good post on stack overflow, link below, any help you
guys can give me would be much appreciated

http://stackoverflow.com/questions/9928886/developing-test-app-for-a-senior-project-semi-urgent

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

2012-04-02 Thread james_sgp
Hi,

  I'm wondering if anyone here can help point me in the right
direction, I have a Joomla base website which includes some apps
(build in Fabrik) that I`ve spent a considerable amount of time
creating.  I would really like a mobile version of the database apps,
and was thinking would I be able to set up an Android tablet as a
localhost so I can just copy the website/database onto it and use it
anywhere without the need for internet connection?

There is a high chance that I`d make changes to the database on the
mobile device; so I could export out the tables and import them into
my 'live' web version...

So the question all comes down to the localhost, etc?  Can it be
done...???

I`ve seen some suggestions about using PAW and PHP addon...



Thanx in advance...

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


Re: [android-developers] What is the best development strategy?

2012-04-02 Thread Wei,Wu
minSkdVersion is just for indicate your application supporting min sdk
version, i think it is not a problem.
Example: you develop a APK using front facing camera, and you setting
minsdkversion to 1.6, you should check the hardware support in your
application, if it support, use the front facing camera, if not, just not
using. it reply on your application, not platform.

2012/3/30 Terry 

> How to keep developing an app - to take advantage of new features in
> new Android versions - and still support old customers?
>
> What is the best approach?
>
> Example: Let us say that I want to use the front facing camera, which
> seems to be supported from Android version 2.3, and I originally made
> the app to support Android version 1.6 and newer?  If a make a new
> version of my app - setting minSkdVersion to the value corresponding
> to Android 2.3, then my old customers cannot use it. Is that OK? Am I
> not letting my old customers down then?
>
> On the other side, if I always want to support Android version 1.6,
> then I cannot take advantage of all the new features of Android. Or
> can I? Is there another way?
>
> What is the best strategy?
>
> Regards, Terry
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, 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] My Bluetooth module doesn't require PINCODE and i cant connect to it

2012-04-02 Thread AlQurashi
I'm trying to connect to a Bluetooth module using android but before
establishing connection i have to enter a pin-code for the device and
it doesn't have one and i'm working on the 7th API android ver 2.1 so
i cant establish an insecure connection please help me what to do.

Thank you.

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


Re: [android-developers] LocationManager requestLocationUpdates minTime parameter not working

2012-04-02 Thread Sean Barbeau
Hi all,
I've been working with the Android platform code lately, and had a chance 
to look at this issue of the GPS provider ignoring the minTime parameter on 
a number of devices more in depth.  The GPS provider has two built-in 
scheduling modes, native and platform, that are designed to follow the 
minTime parameter, so the problem isn't lack of capability in Android.
 
After some research, I believe the issue stems from native code reporting 
that it can handle GPS refresh scheduling, but then the native code doesn't 
actually do the scheduling, effectively preventing the Android platform 
from properly handling the scheduling.  I posted a more detailed 
description about this issue in the Android Contributors group:
*
https://groups.google.com/forum/?fromgroups#!topic/android-contrib/KCE_ZNLsyLQ
*
 
I submitted a patch to the Android project (still under review) that 
essentially implements a fail-safe switch as a workaround for this problem, 
so the developer can force the Android platform to properly handle the GPS 
refresh scheduling if the native code isn't working properly:
*https://android-review.googlesource.com/#/c/34230/*
 
I've tested this patch on a custom Android build on a Nexus S 4G, and it 
works.  Without the patch, the Nexus S 4G just spits out locations at 1Hz 
no matter what you set the minTime parameter to.
 
If this issue has affected you as an Android developer and you'd like to 
see this patch make its way into Ice Cream Sandwich for all future Android 
device updates, I would suggest voicing your support by replying to my post 
on the Android Contributors list.  It would help if you mention the make 
and model of the device that has the problem as well, so we can track which 
phones are currently affected.
 
I haven't gotten much response about this from Google yet, but hopefully if 
they see this is an issue that is important to developers they would be 
willing to accept this patch.  If the patch is accepted, it would provide a 
fail-safe method for developers on all future Android devices to ensure 
that GPS scheduling performs as intended from the application's perspective.

Thanks,
Sean

Sean Barbeau
Center for Urban Transportation Research
University of South Florida

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

[android-developers] problem about show my current location in Google maps.

2012-04-02 Thread rajeb makhlouf
Unless this application code looks fine but it can't be running due
unclear mistake can be in Oncreate activity.
Please I need You help.
Thanks & regards.
mrajab

03-28 22:58:52.717: W/dalvikvm(3689): threadid=1: thread exiting with
uncaught exception (group=0x409c01f8)
03-28 22:58:52.736: E/AndroidRuntime(3689): FATAL EXCEPTION: main
03-28 22:58:52.736: E/AndroidRuntime(3689):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{test.map/test.map.TestActivity}:
java.lang.IllegalArgumentException: provider=network
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1956)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
1981)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread.access$600(ActivityThread.java:123)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.os.Handler.dispatchMessage(Handler.java:99)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.os.Looper.loop(Looper.java:137)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread.main(ActivityThread.java:4424)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
java.lang.reflect.Method.invokeNative(Native Method)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
java.lang.reflect.Method.invoke(Method.java:511)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
dalvik.system.NativeStart.main(Native Method)
03-28 22:58:52.736: E/AndroidRuntime(3689): Caused by:
java.lang.IllegalArgumentException: provider=network
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.os.Parcel.readException(Parcel.java:1331)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.os.Parcel.readException(Parcel.java:1281)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.location.ILocationManager$Stub
$Proxy.requestLocationUpdates(ILocationManager.java:646)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.location.LocationManager._requestLocationUpdates(LocationManager.java:
582)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.location.LocationManager.requestLocationUpdates(LocationManager.java:
446)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
test.map.TestActivity.onCreate(TestActivity.java:31)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.Activity.performCreate(Activity.java:4465)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1049)
03-28 22:58:52.736: E/AndroidRuntime(3689): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
1920)
03-28 22:58:52.736: E/AndroidRuntime(3689): ... 11 more


this is was My classes:
///MyPositionOverlay:
package test.map;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.RectF;
import android.location.Location;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.Overlay;
import com.google.android.maps.Projection;

public class MyPositionOverlay extends Overlay {

  private final int mRadius = 5;

  Location location;

  public Location getLocation() {
return location;
  }
  public void setLocation(Location location) {
this.location = location;
  }

  @Override
  public boolean onTap(GeoPoint point, MapView mapView) {
return false;
  }

  @Override
  public void draw(Canvas canvas, MapView mapView, boolean shadow) {
Projection projection = mapView.getProjection();

if ((shadow == false) && (location != null)) {
  // Get the current location
  Double latitude = location.getLatitude()*1E6;
  Double longitude = location.getLongitude()*1E6;
  GeoPoint geoPoint;
  geoPoint = new
GeoPoint(latitude.intValue(),longitude.intValue());

  // Convert the location to screen pixels
  Point point = new Point();
  projection.toPixels(geoPoint, point);

  RectF oval = new RectF(point.x - mRadius, point.y - mRadius,
 point.x + mRadius, point.y + mRadius);

  // Setup the paint
  Paint paint = new Paint();
  paint.setARGB(250, 255, 255, 255);
  paint.setAntiAlias(true);
  paint.setFakeBoldText(true);

  Paint backPaint 

Re: [android-developers] LocationManager requestLocationUpdates minTime parameter not working

2012-04-02 Thread Sean Barbeau
Hi all,
I've been working with the Android platform code lately, and had a chance 
to look at this issue of the GPS provider ignoring the minTime parameter on 
a number of devices more in depth.  The GPS provider has two built-in 
scheduling modes, native and platform, that are designed to follow the 
minTime parameter, so the problem isn't lack of capability in Android.

After some research, I believe the issue stems from native code reporting 
that it can handle GPS refresh scheduling, but then the native code doesn't 
actual do the scheduling, effectively preventing the Android platform from 
properly handling the scheduling.  I posted a more detailed description 
about this issue in the Android Contributors group:

https://groups.google.com/forum/?fromgroups#!topic/android-contrib/KCE_ZNLsyLQ

 

I submitted a patch to the Android project (still under review) that 
essentially implements a fail-safe switch as a workaround for this problem, 
so the developer can force the Android platform to properly handle the GPS 
refresh scheduling if the native code isn't working properly:

https://android-review.googlesource.com/#/c/34230/

 

I've tested this patch on a custom Android build on a Nexus S 4G, and it 
works.  Without the patch, the Nexus S 4G just spits out locations at 1Hz 
no matter what you set the minTime parameter to.

 

If this issue has affected you as an Android developer and you'd like to 
see this patch make its way into Ice Cream Sandwich for all future Android 
device updates, I would suggest voicing your support by replying to my post 
on the Android Contributors list.  It would help if you mention the make 
and model of the device that has the problem as well, so we can track which 
phones are currently affected.


I haven't gotten much response about this from Google yet, but hopefully if 
they see this is an issue that is important to developers they would be 
willing to accept this patch.  If the patch is accepted, it would provide a 
fail-safe method for developers on all future Android devices to ensure 
that GPS scheduling performs as intended from the application's perspective.


Thanks,

Sean


Sean Barbeau

Center for Urban Transportation Research

University of South Florida

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

2012-04-02 Thread Nimish John
Hi friends...
i have a query lik ths...

"select
item.a,item.b,customer.a,customer.b from item,customer
where (some condition)"

can i retrieve data from ths query like ths
cursor.getString(1);
cursor.getString(2);

will it create any problems?

how is it differentiate with getColumnindex();

please can any1 explain?

I am retrieving data from database(everywher) in this
format(cursor.getString(5) etc..
The problem i am facing is...
I have a item "stock" variable in one class which will b updated to db
frequently according to ma prgm logic
when i am retrieving this stock to another class where i need to check some
condition
it s simultaneosly changing the value.
sometimes it giving updated value sometimes it is not.am sure that am
retrieving from d exact place i want but the thing is it s always geting
interchnged...


One friend suggested me somethng,...i wanna knw more abt tht doubt? am
stuck.

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

[android-developers] Hierarchy Viewer Tool

2012-04-02 Thread Ankur-Ra
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?

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

2012-04-02 Thread Ventura
I would like to do dynamic views but i don't know where how I can use this 
constants.

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] Proguard issue on SDK update

2012-04-02 Thread Russell Kay
All,

I have been working on Android for well over a year now, without too
much trouble but the latest SDK update has introduced an issue that I
cannot make any headway with at all, basically everything works if I
do not use proguard (which I would really like to use), but if I do
use it then I get this error

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.yoyogames.droidwordsearch/
com.yoyogames.droidwordsearch.RunnerActivity}:
android.view.InflateException: Binary XML file line #8: Error
inflating class com.yoyogames.droidwordsearch.DemoGLSurfaceView

now the DemoGLSurfaceView class is setup as a keep in the proguard
config (attached the config below) and I really am scratching my head
as to what is going on here, it happens even if I tell it not to
optimize the output - if it passes through proguard at all I get this
error.

Does anyone have any idea why this has suddenly started happening
(NOTE: Application has been out for over a year prior to this, and
worked until the lastest SDK update).

Russell


--- proguard.cfg 

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-dump class_files.txt
-printseeds seeds.txt
-printusage unused.txt
-printmapping mapping.txt
-libraryjars libs
-ignorewarnings

-dontoptimize

#-optimizations !code/simplification/arithmetic,!code/simplification/
cast,!field/*,!class/merging/*
#-optimizationpasses 5
#-allowaccessmodification

-keepattributes *Annotation*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.opengl.GLSurfaceView
-keep public class * extends android.app.backup.BackupAgent
-keep public class * extends android.preference.Preference
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment
-keep public class com.android.vending.licensing.ILicensingService
-keep public class com.yoyogames.runner.RunnerActivity
-keep public class com.yoyogames.runner.RunnerJNILib {*;}
-keep public class com.yoyogames.runner.DemoRenderer
-keep public class com.yoyogames.runner.DemoGLSurfaceView {*;}
-keep public class com.yoyogames.runner.R {*;}
-keep public class com.yoyogames.runner.R$raw {*;}
-keep public class com.adwhirl.adapters.AdMobAdapter {*;}
-keep public class com.adwhirl.adapters.ZestAdzAdapter {*;}
-keep public class com.adwhirl.adapters.MillenialAdapter {*;}
-keep public class com.adwhirl.adapters.** {*;}
-keep public class com.admob.android.ads.** {*;}
-keep public class com.mopub.mobileads.** {*;}
-keep public class com.google.ads.** {*;}
-keep public class com.millenialmedia.android.** {*;}
-keep public class com.zestadz.android.** {*;}
-keep public class com.flurry.android.FlurryAgent {*;}
-keep class com.openfeint.internal.ui.** {*;}
-keep class * extends com.openfeint.internal.ui.WebNav$ActionHandler
{ ; }
-keep public class com.facebook.android.** {*;}
-keep public class com.facebook.android.Facebook.** {*;}
-keep public class com.verizon.vcast.apps.** {*;}

-keep public class * extends android.view.View {
public (android.content.Context);
public (android.content.Context, android.util.AttributeSet);
public (android.content.Context, android.util.AttributeSet,
int);
public void set*(...);
}

-keepclasseswithmembernames class * {
native ;
}

-keepclasseswithmembernames class * {
public (android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembernames class * {
public (android.content.Context, android.util.AttributeSet,
int);
}

-keepclassmembers class * extends android.app.Activity {
   public void *(android.view.View);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keepclassmembers class **.R$* {
public static ;
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version.  We know about them, and they are safe.
-dontwarn android.support.**

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


[android-developers] "UNINSTALL_SHORTCUT" does not work any more for android 4.0 (API 14 and above) anymore.

2012-04-02 Thread Ultraman
Hi,

The following code "INSTALL_SHORTCUT" & "UNINSTALL_SHORTCUT" works for
Android 2.3.3 (API 10) to Android 3.3 (API 13), but does not work any
more with Android 4.0 (API 14) or above.

The Toast message says it is removed, but actually it still exist and
the new one just place on top of the existing one.  This creates
multiple shortcuts on top of each other.

Does anyone see the same issue I am seeing or there's other fix for
this with Android 4.0?

Thanks in advance for your help.

=
private void deleteShortCut(Context context) {

Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
shortcutIntent.setClassName("com.example.androidapp",
"SampleIntent");
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
shortcutIntent.putExtra("someParameter", "HelloWorld");

Intent removeIntent = new Intent();
removeIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT,
shortcutIntent);
removeIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "Shortcut
Name");
removeIntent.putExtra("duplicate", false);
 
removeIntent.setAction("com.android.launcher.action.UNINSTALL_SHORTCUT");

context.sendBroadcast(removeIntent);
}

private void addShortCut(Context context) {

Intent shortcutIntent = new Intent(Intent.ACTION_MAIN);
shortcutIntent.setClassName("com.example.androidapp",
"SampleIntent");
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
shortcutIntent.putExtra("someParameter", "HelloWorld");

Intent addIntent = new Intent();
addIntent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent);
addIntent.putExtra(Intent.EXTRA_SHORTCUT_NAME, "Shortcut Name");
addIntent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
Intent.ShortcutIconResource.fromContext(context, R.drawable.icon));

 
addIntent.setAction("com.android.launcher.action.INSTALL_SHORTCUT");
context.sendBroadcast(addIntent);
}
===
AndroidManifest.xml...


http://schemas.android.com/apk/res/android";
package="com.example.addDeleteShortcut"
android:versionCode="8" android:versionName="1.0.0.1">
























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

2012-04-02 Thread Gaku
Offcourse you can made non-root packet capture!

see folowing url.
https://play.google.com/store/apps/details?id=jp.co.taosoftware.android.packetcapture
 


--
Gaku

On Tuesday, February 7, 2012 7:45:24 AM UTC+9, mellery451 wrote:
>
> I'm considering the possibility of using the new android (4.0) 
> VpnService interface to implement a non-root-required packet capture 
> utility. 
>
> Would it be possible to implement a VpnService such that each packet 
> it received from the device could be written to a file for subsequent 
> analysis and then simply sent on to the active network device for 
> proper delivery? 
>
> A normal VPN implementation would have a finite number of connections 
> to a vpn server to which all packets should be written. In my case, 
> I'd just want to send the packets along without the server to talk to. 
> Is this feasible or would OS permissions prevent writing the packet to 
> the active network? If it is possible, what APIs could I use to write 
> to the network device(s)? 
>
> Advice appreciated. 
>
> -Mike Ellery

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

2012-04-02 Thread Mohamed fathi
How can i record income call?
How can i send voice,data to OutCall?

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


[android-developers] JNI Error : local reference table overflow (max=512) in ICS android version

2012-04-02 Thread Sunil
I am developing web based application, in which I am overriding
shouldInterceptRequest of WebViewClient as shown below.

public WebResourceResponse shouldInterceptRequest(WebView view, String
url)
{
WebResourceResponse response = null;
if(url.startsWith("myscheme://"))
 {
String MY_CONTENT_PROVIDER_URI = "content://
android.sunil.myprovider/";
String myurl =  MY_CONTENT_PROVIDER_URI + url;
String mimeType = null;
String encoding = "utf-8";
int mimeIndex = myurl.lastIndexOf('?');
if (mimeIndex != -1)
   {
myurl= myurl.substring(0, mimeIndex);
mimeType = "text/html";
   }
  Uri myuri= Uri.parse(myurl);
  InputStream wrtInputStream =
mContext.getContentResolver().openInputStream(myuri);   response = new
MyWebResourceResponse(mimeType,encoding,wrtInputStream);
 }
else
 response = super.shouldInterceptRequest(view,url);
return  response;
}

// My Content Provider OpenFile function is defined as:::

public ParcelFileDescriptor openFile(Uri uri, String mode) throws
FileNotFoundException
{
  String filename = uri.toString();
filename = filename.replace("myscheme://","/mnt/sdcard/");
return ParcelFileDescriptor.open(new File(filename),
ParcelFileDescriptor.MODE_READ_ONLY);
  }


Now from my app I am calling WebView.loadUrl("myscheme://mywebfolder/
index.html") and mywebfolder is placed in mnt/sdcard which is resolved
in my content provider as shown above.

Now problem arises when count for call of loadUrl  increases beyond
510 then my app crashes with the given log::

03-08 11:01:33.190: E/dalvikvm(8499): JNI ERROR (app bug): local
reference table overflow (max=512)
03-08 11:01:33.190: W/dalvikvm(8499): JNI local reference table
(0x9a5598) dump:
03-08 11:01:33.190: W/dalvikvm(8499):   Last 10 entries (of 512):
03-08 11:01:33.190: W/dalvikvm(8499):   511: 0x41234248
java.io.FileDescriptor
03-08 11:01:33.190: W/dalvikvm(8499):   510: 0x40c3d7e0
libcore.io.Posix
03-08 11:01:33.190: W/dalvikvm(8499):   509: 0x4232f458 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   508: 0x42327440 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   507: 0x4231f428 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   506: 0x42317410 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   505: 0x4230f3f8 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   504: 0x423073e0 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   503: 0x422ff3c8 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   502: 0x422f73b0 byte[]
(32768 elements)
03-08 11:01:33.190: W/dalvikvm(8499):   Summary:
03-08 11:01:33.190: W/dalvikvm(8499):   510 of byte[] (32768
elements) (510 unique instances)
03-08 11:01:33.190: W/dalvikvm(8499): 1 of
java.io.FileDescriptor
03-08 11:01:33.190: W/dalvikvm(8499): 1 of libcore.io.Posix
03-08 11:01:33.190: E/dalvikvm(8499): Failed adding to JNI local ref
table (has 512 entries)
03-08 11:01:33.190: I/dalvikvm(8499): "Thread-384" prio=5 tid=18
RUNNABLE
03-08 11:01:33.190: I/dalvikvm(8499):   | group="main" sCount=0
dsCount=0 obj=0x41175f70 self=0x3f8d80
03-08 11:01:33.190: I/dalvikvm(8499):   | sysTid=8765 nice=0 sched=0/0
cgrp=default handle=3659544
03-08 11:01:33.190: I/dalvikvm(8499):   | schedstat=( 866337498
264198581 1430 ) utm=70 stm=16 core=0
03-08 11:01:33.190: I/dalvikvm(8499):   at
libcore.io.Posix.readBytes(Native Method)
03-08 11:01:33.190: I/dalvikvm(8499):   at
libcore.io.Posix.read(Posix.java:118)
03-08 11:01:33.190: I/dalvikvm(8499):   at
libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)
03-08 11:01:33.190: I/dalvikvm(8499):   at
libcore.io.IoBridge.read(IoBridge.java:422)
03-08 11:01:33.190: I/dalvikvm(8499):   at
java.io.FileInputStream.read(FileInputStream.java:179)
03-08 11:01:33.190: I/dalvikvm(8499):   at
java.io.InputStream.read(InputStream.java:163)
03-08 11:01:33.190: I/dalvikvm(8499):   at
dalvik.system.NativeStart.run(Native Method)
03-08 11:01:33.190: E/dalvikvm(8499): VM aborting
03-08 11:01:33.195: A/libc(8499): Fatal signal 11 (SIGSEGV) at
0xdeadd00d (code=1)

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


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

2012-04-02 Thread Techni
How would I do this?

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


[android-developers] How to use AlarmManager on Dialog?

2012-04-02 Thread rafuru
Hi!

I'm developing a calendar application with notification features but i'm a 
little confused about to implement an notification:

I know how to setup the notification manager and send notifications but i 
don't know how to set  a service for shedule the notifications (from 1 day 
to many months on the future).

I have read about alarmmanager and also i tested a example, but i'm stuck 
about shedule many alarms (if is  good idea do this) or if exists another 
way to solve this problem.

My code is this:

@Override
public void onClick(View v) {
if(chbx.isChecked()){ 
Evento evnt=eventos.get(position);
evnt.setStatus(true);
DbAdapter data=new DbAdapter(v.getContext());
data.open();
data.updateEvent(evnt.getIdEvento(),evnt);
*setAlarm(v.getContext());*
dialog.cancel();
data.close();
}else
dialog.cancel();
 }
 }
);

And the method "setAlarm()" is this:


private void setAlarm(Context context){
PendingIntent mAlarmSender=PendingIntent.getBroadcast(context,343, new 
Intent("com.siitne.candelaria.notificationSystem.AvisoReceiver.class"), 0);
AlarmManager alm=(AlarmManager)context.getSystemService(ALARM_SERVICE);
alm.set(AlarmManager.RTC_WAKEUP, 
System.currentTimeMillis()+(5*1000),mAlarmSender);
 }



I made this question on stackoverflow but i don't get any answer , i'm very 
beginner using AlarmManager, it's the first time using a service for notify 
future events so any help will be useful :)

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

2012-04-02 Thread Nimish John
Hi frnds...am new to android...i hav a doubt...
Hi friends...
i have a query lik ths...

"select
item.a,item.b,customer.a,customer.b from item,customer
where (some condition)"

can i retrieve data from ths query like ths
cursor.getString(1);
cursor.getString(2);

will it create any problems?

how is it differentiate with getColumnindex();

I am retrieving data from database(everywher) in this
format(cursor.getString(5) etc..
The problem i am facing is...
I have a item "stock" variable in one class which will b updated to db
frequently according to ma prgm logic
when i am retrieving this stock to another class where i need to check some
condition
it s simultaneosly changing the value.
sometimes it giving updated value sometimes it is not.am sure that am
retrieving from d exact place i want but the thing is it s always geting
interchnged...

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

2012-04-02 Thread ZeroOne
Just to establish the baseline so that we know what we can assume...
Have you ever programmed anything else before? Do you know Java
programming at all, or is this your first Java programming project
ever? I'm proficient with Java but new to Android so I found this
thread when struggling with getting the location. This is a pretty
good page explaining the details on what you need to do:
http://developer.android.com/guide/topics/location/obtaining-user-location.html
Read that and experiment.

   -ZeroOne


On Apr 1, 4:29 pm, Bhuvan Chandra  wrote:
> Hey i did run this code ...but iam getting some errors, what result am i
> expecting here, i couldnt run the code , any help will be appreciated.
>
> On Sat, Mar 31, 2012 at 1:26 AM, Save My Life! 
> wrote:
>
>
>
>
>
>
>
> > Good help Ankit.
>
> > Dear Bhuvan,
>
> > use following code for GPS Lat long (Location ) Traking [use Google API
> > 2.x in eclipse for creating AVD]
>
> >  import java.io.BufferedReader;
>
> > import java.io.BufferedWriter;
>
> > import java.io.File;
>
> > import java.io.FileWriter;
>
> > import java.io.IOException;
>
> > import java.io.InputStreamReader;
>
> > import java.util.List;
>
> > import java.util.Locale;
>
> > import org.apache.http.HttpEntity;
>
> > import org.apache.http.HttpResponse;
>
> > import org.apache.http.client.HttpClient;
>
> > import org.apache.http.client.methods.HttpGet;
>
> > import org.apache.http.impl.client.DefaultHttpClient;
>
> > import org.json.JSONArray;
>
> > import org.json.JSONObject;
>
> > import android.app.Activity;
>
> > import android.app.PendingIntent;
>
> > import android.content.ContentResolver;
>
> > import android.content.Context;
>
> > import android.content.Intent;
>
> > import android.content.pm.ActivityInfo;
>
> > import android.database.Cursor;
>
> > import android.graphics.Bitmap;
>
> > import android.graphics.BitmapFactory;
>
> > import android.graphics.Canvas;
>
> > import android.graphics.Point;
>
> > import android.location.Address;
>
> > import android.location.Geocoder;
>
> > import android.location.Location;
>
> > import android.location.LocationListener;
>
> > import android.location.LocationManager;
>
> > import android.location.LocationProvider;
>
> > import android.net.Uri;
>
> > import android.os.Bundle;
>
> > import android.provider.ContactsContract;
>
> > import android.telephony.SmsManager;
>
> > import android.util.Log;
>
> > import android.view.View;
>
> > import android.view.View.OnClickListener;
>
> > import android.widget.Button;
>
> > import android.widget.ProgressBar;
>
> > import android.widget.TextView;
>
> > import android.widget.Toast;
>
> > import com.google.android.maps.GeoPoint;
>
> > import com.google.android.maps.MapActivity;
>
> > import com.google.android.maps.MapController;
>
> > import com.google.android.maps.MapView;
>
> > import com.google.android.maps.Overlay;
>
> > public class clsGPSLocatorActivity extends MapActivity implements
> > OnClickListener {
>
> > /** Called when the activity is first created. */
>
> > private MapView mapView;
>
> > private MapController mapController;
>
> > public String GBLatitude="";
>
> > public String GBLongitude="";
>
> > LocationListener locationlistener;
>
> > LocationManager locationManager;
>
> > String Current_Address="";
>
> > TextView txtStatus;
>
> > TextView txtLocation;
>
> > TextView txtLoad;
>
> > Button btnExitme;
>
> > Button btnSendSMS;
>
> >  ProgressBar mapprogbar;
>
> > public static final int PICK_CONTACT = 10;
>
> > public int StopFlag=0;
>
> > String address="";
>
> > @Override
>
> > public void onCreate(Bundle savedInstanceState) {
>
> > super.onCreate(savedInstanceState);
>
> > try
>
> > {
>
> > Find_Current_LatLong();
>
> > }
>
> > catch(Exception e)
>
> > {
>
> > Log.v("Find Latlong error :",e.toString());
>
> > }
>
> > }
>
> >  @Override
>
> > protected boolean isRouteDisplayed() {
>
> > // TODO Auto-generated method stub
>
> > return false;
>
> > }
>
> >  private void Find_Current_LatLong() {
>
> > try
>
> > {
>
> > txtStatus.setText("Finding Current Latitude & Longitude..");
>
> > appendLog("\n ClsMyLocation : Find_Current_LatLong(); Called \n ");
>
> > appendLog("WaitLocating Accident Place!");
>
> > //Find Latitude & Longitude
>
> > locationManager =
> > (LocationManager)this.getSystemService(Context.LOCATION_SERVICE);
>
> > locationlistener = new LocationListener() {
>
> > public void onLocationChanged(Location location) {
>
> > mapprogbar.setVisibility(View.VISIBLE);
>
> > txtLoad.setVisibility(View.VISIBLE);
>
> > updateLocation(location);
>
> > }
>
> > public void onStatusChanged(
>
> > String provider, int status, Bundle extras) {
>
> > switch (status) {
>
> > case LocationProvider.AVAILABLE:
>
> > appendLog("GPS available again\n");
>
> > txtStatus.setText("GPS available again\n");
>
> > break;
>
> > case LocationProvider.OUT_OF_SERVICE:
>
> > appendLog("GPS out of service\n");
>
> > txtStatus.setText("GPS out of service\n");
>
> > break;
>
> > case LocationProvider.TEMPORARILY_

[android-developers] Does anyone know how to make perspective control and cropping

2012-04-02 Thread luq
Hye all

I try to make an application that can scan pinture by using pespective
control and cropping.

but i dont know where to start except for getting the picture taken.

I want to make something like an application called camscanner

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] Android app to talk to PC windows app

2012-04-02 Thread NYL
Dear Android experts,

I would like to create an Android application that communicates with a
PC Windows app using the USB interface. May I know if this is
possible?

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


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

2012-04-02 Thread wesker cheung
HI, I am a game designer form HK and have done a game by UNITY

However, when I published to Android,  there are lot of problem

1.Error  Package file was not signed correctly

2.The server could not process your apk

so on

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


[android-developers] NanoHttpd in andriod

2012-04-02 Thread kumar jeyakannan
All,

I need the information how to use NanoHttpd in andriod application.

My application is  am going to display the images in android mobile
Browser.Means i need to get all images in gallery and i need to
display those images when the user type this URL http://localhost:8080/images/
in andriod mobile browser

I have tried with NanoHttpd with serveFile.Some times it's working
some times not working.

Please help


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


[android-developers] Problems with Sqlite

2012-04-02 Thread Waltênio de Bessa Mendes
Hi,
How can I access a Sqlite database prepopulated ?
I tried "opendatabase" , "select * from " in jquery script and didn't
work.
Anyone can help me?

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

  1   2   >