[android-developers] Regarding RSA

2013-11-22 Thread sourabh sahu
Dear All,

Can you please share the code which uses RSA Encryption and Decryption.

I want encryption at Android side and decryption at server side(asp.net)

Any help will be highly appreciated.

Regards,
Sourabh Sahu

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Hijri Calender in android

2013-11-22 Thread Jose_GD
This: http://en.wikipedia.org/wiki/Islamic_calendar

Helps in some way?

El jueves, 21 de noviembre de 2013 04:35:08 UTC-3, sree escribió:

 Hi friends,

 i am developing HRMS app,it is developing with english and arabic.When i 
 am implementing calender date will display in english and arabic.arabic 
 follows hijri calender,how can i implement hijri calendeplease guide 
 me.how can i do.


 thank you 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] ActionBar strange behaviour

2013-11-22 Thread Simon Giddings


I am writing an application for Android tablets - version 4.0 (min sdk 14)

Here is the content at the start of the activity :

https://lh4.googleusercontent.com/-s7H2b2yp8Gk/Uo9E9VZP1XI/Am8/W0maYf5wefQ/s1600/actionbar_prb1.jpg

When I click (I am working in the emulator) on the plus button (to zoom in 
one level),  this is the result :

https://lh4.googleusercontent.com/-YP1eyEF13RM/Uo9FY9thC6I/AnE/VX-FuuZILZk/s1600/actionbar_prb2.jpghttps://lh4.googleusercontent.com/-s7H2b2yp8Gk/Uo9E9VZP1XI/Am8/W0maYf5wefQ/s1600/actionbar_prb1.jpg



If I remove the TextView control at the head of the ActionBar, this is the 
resulting visual behaviour :

https://lh5.googleusercontent.com/-D52Fjc3_60c/Uo9QWtiXGwI/AnU/WbKsz70aZ98/s1600/actionbar_prb3.jpg

https://lh6.googleusercontent.com/-CiWez7jbELA/Uo9QpMeOZuI/Anc/O11uYPVre7U/s1600/actionbar_prb4.jpg

The number button is defined in the menu as -

item
android:id=@+id/partion_songnumber
android:title=Numéro du chant
android:showAsAction=always 
android:actionLayout=@layout/actionbar_songnumber_btn /

The layout file is defined as

TextView xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/tv_songnumber
android:layout_width=match_parent
android:layout_height=match_parent
android:paddingLeft=5dp
android:paddingRight=5dp
android:layout_gravity=center_vertical
android:clickable=true
android:textSize=29dp /

The menu is modified via the method onPrepareOptionsMenu

The content of this method is like this :

@Override
public boolean onPrepareOptionsMenu(Menu menu)
{
boolean bOk = super.onPrepareOptionsMenu(menu);
TextView tv;
int iZoomLevel = m_ZoomListHandler.GetCurrentPosition();

if(bOk)
{
menu.findItem(R.id.partition_zoomin).setEnabled(iZoomLevel  7);
menu.findItem(R.id.partition_zoomout).setEnabled(iZoomLevel  
0);

// set the songnumber
tv = (TextView)menu.findItem(R.id.partion_songnumber)
.getActionView();
tv.setText(String.format(%d, m_iSongNumber));
}

return true;
}
I have tried searching for why this happens, with no success.

Can anyone help me resolve this ?

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


[android-developers] new earnings report in developer console broken?

2013-11-22 Thread mot12
Hi,

if this is not the right forum to ask this, I would appreciate if someone 
could point me to the right direction. Google Wallet doesn't seem to have 
the info I need.

My problem regards the earnings reports on the developer console. Older 
reports seem fine but the October report has only 2 sales (should be more 
like a 1000 sales) and gives me 366 byte zip file. Usually, I have at 40k 
zip files.
Does anybody else have the same problem? Does anybody know of a different 
way to get this info (couldn't get it via Google Wallet)?

Why this is so important to me:
As a developer in Germany with an income exceeding a certain threshold, I 
am required to do monthly tax reports regarding VAT. In a few days, I have 
to submit my earnings and tax info for October and there will be financial 
penalties if I am unable to do so. The earnings reports are the only 
overview I have on sales income and sales taxes.

Many thanks,
Martin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Regarding RSA

2013-11-22 Thread Justin Anderson
Step 1: Read this -
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
Step 2: Start developing your project, using the tips provided in the above
link
Step 3: When you run into problems and have a specific question, try to
solve it yourself first...
Step 4: If you still have problems, ask your specific question on here...

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


On Fri, Nov 22, 2013 at 2:51 AM, sourabh sahu souruit...@gmail.com wrote:

 Dear All,

 Can you please share the code which uses RSA Encryption and Decryption.

 I want encryption at Android side and decryption at server side(asp.net)

 Any help will be highly appreciated.

 Regards,
 Sourabh Sahu

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Long Click in the presences of a ContextualActionBar.

2013-11-22 Thread Justin Anderson
While I don't necessarily agree with his opinion that you should NEVER use
a contextual action bar, perhaps this link will help you with some ways to
work around your problem:

http://dazcorp.blogspot.com/2013/04/edit-mode-and-why-using-contextual.html

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


On Thu, Nov 21, 2013 at 8:26 PM, Nathan nathan.d.mel...@gmail.com wrote:

 Has anyone had any ideas?

 I didn't know there would be so much bitterness about copy/paste not
 working. Apparently some users are advanced enough to long click.

 Nathan


 On Friday, September 27, 2013 2:33:09 PM UTC-7, Nathan wrote:

 Here's a situation I have run across.

 We have a Contextual Action Bar on screen. So far so good. When the user
 dismisses this, they are also done with the Activity/Fragment so we go
 ahead and close it for them.

 While our contextual action bar is active, the user long presses an
 EditText field on the same screen.

 It then brings up another contextual action bar, the copy and paste
 action bar. onDestroyActionMode is then called. Thinking the user dismissed
 the form, we close the Activity/Fragment for them.

 From the user's perspective, using copy/paste kills the form.

 It seems like the proper behavior would be to com back to
 ContextActionBars in the order they were opened.

 Any advice on how we can detect and handle this situation.

 Nathan

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Provide events to Calendar-App using ContentProvider

2013-11-22 Thread Justin Anderson
Step 1: Read this -
http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
Step 2: http://lmgtfy.com/?q=android+calendar+content+provider
Step 3: Read up on Calendar Provider (the very FIRST link in the above
search)

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


On Thu, Nov 21, 2013 at 12:22 PM, Danny S. danny.schi...@googlemail.comwrote:

 Hi,

 I want to provide events from my application to the standard Android
 calendar (com.android.com). Now I know, that a ContentProvider is used to
 give other applications access to application data. First I thought about
 adding my own ContenProvider to allow the calendar-APP accessing my events
 indirectly, but this isn't possible, because the calendar doesn't know my
 provider. Do I have another chance instead of adding events manually to the
 Android calendar, or is it possible to create my own ContentProvider using
 the calendar's URI?

 I need an approach how to keep the sync between the calendar and my
 applications data. I only want to use a local calendar, no synchronization
 with a server! If my app becomes new data I need to remove old events and
 add new ones. Other events should stay in the calendar... Thats what I am
 thinking about...

 Thanks very much in advance!
 -Danny Schimke

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] status bar noticfication click event

2013-11-22 Thread Justin Anderson
Unless you are modifying the Android OS and writing your own custom version
of Android there is no way to do this.

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


On Thu, Nov 21, 2013 at 5:10 AM, Rahul Kaushik rahulkaushi...@gmail.comwrote:

 Hi,
  How i can get click event  in status bar notification and call method on
 click event

 pls suggest

 Thanks
 RK

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Re: Long Click in the presences of a ContextualActionBar.

2013-11-22 Thread Nathan


On Friday, November 22, 2013 8:23:01 AM UTC-8, MagouyaWare wrote:

 While I don't necessarily agree with his opinion that you should NEVER use 
 a contextual action bar, perhaps this link will help you with some ways to 
 work around your problem:

 http://dazcorp.blogspot.com/2013/04/edit-mode-and-why-using-contextual.htmlhttp://www.google.com/url?q=http%3A%2F%2Fdazcorp.blogspot.com%2F2013%2F04%2Fedit-mode-and-why-using-contextual.htmlsa=Dsntz=1usg=AFQjCNF4n90_nyx3qj4JcU1QpYTb-a596w


Thank you 

This is another reference I have found on the topic. 
http://www.grokkingandroid.com/adding-action-items-from-within-fragments/

In both cases, it seems that adding to or transmogrifying the action bar 
instead of using a contextual actionbar makes a lot of sense. I have the 
developer working on it. 

Nathan
 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Car dock mode in 4.3

2013-11-22 Thread chris a.
We created an app for enterprise customer that launches a car mode 
activity when driving. Our customers bought android phones largely for this 
reason... Now, car dock mode no longer launches our app when the home key 
is pressed in 4.3. If this issue is not resolved, they may not buy new 
android phones and our company may abandon Android as well.. 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] ViewPager does not respect WRAP_CONTENT?

2013-11-22 Thread Ab
I would like to create a ViewPager whose width wrap's to its contents, and 
is centered horizontally in it's parent.  The first code snippet uses a 
LinearLayout to create this effect, as shown in the first screenshot.  The 
second code snippet is my attempt to do this with a ViewPager instead of 
the LinearLayout, but the result is not the desired behavior, as shown in 
the second screenshot.

Any suggestions as to how I create the first effect, but using a ViewPager?

  @Override
protected void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);

textView = new TextView(this);
textView.setLayoutParams(new 
ViewGroup.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 
LinearLayout.LayoutParams.WRAP_CONTENT));
textView.setText(abcabcabcabcabc);
textView.setBackgroundColor(Color.YELLOW);

LinearLayout llayout = new LinearLayout(this);
llayout.setBackgroundColor(Color.BLUE);
RelativeLayout.LayoutParams layoutParams = new 
RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
RelativeLayout.LayoutParams.MATCH_PARENT);
layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
llayout.setLayoutParams(layoutParams);
llayout.addView(textView);

layout = new RelativeLayout(this);
layout.setLayoutParams(new 
ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
ViewGroup.LayoutParams.MATCH_PARENT));
layout.setBackgroundColor(Color.GREEN);
layout.addView(llayout);

setContentView(layout);
}


@Override
protected void onCreate(Bundle savedInstanceState) 
{
super.onCreate(savedInstanceState);

textView = new TextView(this);
textView.setLayoutParams(new 
ViewGroup.LayoutParams(ViewPager.LayoutParams.WRAP_CONTENT, 
ViewPager.LayoutParams.WRAP_CONTENT));
textView.setText(abcabcabcabcabc);
textView.setBackgroundColor(Color.YELLOW);

ViewPager pager = new ViewPager(this);
pager.setBackgroundColor(Color.BLUE);
RelativeLayout.LayoutParams layoutParams = new 
RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
RelativeLayout.LayoutParams.FILL_PARENT);
layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
pager.setLayoutParams(layoutParams);
pager.setAdapter(new ViewPagerAdapter());

layout = new RelativeLayout(this);
layout.setLayoutParams(new 
ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
ViewGroup.LayoutParams.MATCH_PARENT));
layout.setBackgroundColor(Color.GREEN);
layout.addView(pager);

setContentView(layout);
}

class ViewPagerAdapter extends PagerAdapter
{
@Override
public int getCount() 
{
return 1;
}

public Object instantiateItem(ViewGroup collection, int 
position) 
{
collection.addView(textView, 0);
return textView;
}

@Override
public void destroyItem(ViewGroup collection, int position, 
Object view) 
{
collection.removeView((View) view);
}

@Override
public boolean isViewFromObject(View view, Object object) 
{
return (view==object);
}

@Override
public void finishUpdate(ViewGroup arg0) {}


@Override
public void restoreState(Parcelable arg0, ClassLoader arg1) {}

@Override
public Parcelable saveState() 
{
return null;
}

@Override
public void startUpdate(ViewGroup arg0) {}
}

![enter image description here][1]

![enter image description here][2]


  [1]: http://i.stack.imgur.com/6Ajm7.png
  [2]: http://i.stack.imgur.com/qWYQY.png

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Android Studio is driving me nuts

2013-11-22 Thread Brill Pappin
I'm really hating that I can't have more than one project open in the same 
place.
I use that feature *all the time* in Eclipse.

So maybe I'm missing something:

Can anyone tell me if and how to display a panel similar to the Eclipse 
Package Explorer panel?



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Android Studio is driving me nuts

2013-11-22 Thread Larry Meadors
I'm an IDEA user, so it's less maddening...but it still has it's moments. :)

It doesn't do multiple projects in one window - unfortunate, but true.

I think if you select the Packages view in the project pane, it'll
be close to the Package Explorer view.

Larry

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Passing the design for tablets checks (dev console optilmization tips)

2013-11-22 Thread b0b

I have an app that I think is tablet friendly yet the dev console 
optimization tips report:

Your layout should make use of the available space on tablets

Great. It point to this page to solve it:
 
http://developer.android.com/distribute/googleplay/quality/tablet.html#use-extra-space

The problem is that it is a bit vague about what exactly is required to 
pass this requirement.

- does it check for layout-sw600dp and res/layout-sw720dp   (my app only 
has the former) ?
- does it check for XML Fragment declaration ?
- etc...

What is exactly required is not crystal clear...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Android Studio is driving me nuts

2013-11-22 Thread Brill Pappin
Thanks Larry,

I'm both glad and disappointed that I'm not just missing something. 
I switched from IDEA to Eclipse more than a decade ago, so things are 
somewhat different now.

In Eclipse I'm used to working on multiple projects at once, even if its 
just a library i need to modify across multiple instance of the same 
project (e.g. free version, paid version). I'm finding it a bit maddening 
that I have to have multiple windows, but it's still mostly workable.



On Friday, 22 November 2013 16:14:27 UTC-5, Larry Meadors wrote:

 I'm an IDEA user, so it's less maddening...but it still has it's moments. 
 :) 

 It doesn't do multiple projects in one window - unfortunate, but true. 

 I think if you select the Packages view in the project pane, it'll 
 be close to the Package Explorer view. 

 Larry 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Android Studio is driving me nuts

2013-11-22 Thread Tor Norbye
With the new gradle build system you shouldn't have to have different
projects for different versions (free, paid, etc.); you should be able to
set everything up in a single project, with separate resources and classes
(as necessary) for your variations.  This is now handled by the build
system in Android Studio directly (flavors); see
http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants.
We're working on better UI support for this so you don't need to
configure it in Gradle config files.

-- Tor


On Fri, Nov 22, 2013 at 1:48 PM, Brill Pappin br...@pappin.ca wrote:

 Thanks Larry,

 I'm both glad and disappointed that I'm not just missing something.
 I switched from IDEA to Eclipse more than a decade ago, so things are
 somewhat different now.

 In Eclipse I'm used to working on multiple projects at once, even if its
 just a library i need to modify across multiple instance of the same
 project (e.g. free version, paid version). I'm finding it a bit maddening
 that I have to have multiple windows, but it's still mostly workable.



 On Friday, 22 November 2013 16:14:27 UTC-5, Larry Meadors wrote:

 I'm an IDEA user, so it's less maddening...but it still has it's moments.
 :)

 It doesn't do multiple projects in one window - unfortunate, but true.

 I think if you select the Packages view in the project pane, it'll
 be close to the Package Explorer view.

 Larry

  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_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
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: Eclipse not starting since last ADT update

2013-11-22 Thread Nathan
Maybe it is time to start with Android Studio, despite all the warnings 
that is still very preproduction. 

No leads on getting Eclipse to start. 

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


Re: [android-developers] Android Studio is driving me nuts

2013-11-22 Thread Brill Pappin
That does sound like a pretty cool feature, a lot like Maven Modules.
Although it might actually resolve the multi-lib project, it is not really 
the same thing.

Having the server code, the mobile code and all my other projects for 
reference is a big deal.
e.g.
I've even had a single project that contained server components in Java, 
PHP and Ruby along with Android and Blackberry mobile components. Eclipse 
is a master at that kind of workflow, and I'll miss it in IDEA.

I do have some catching-up to do with IDEA, so hopefully I'll find some 
satisfactory workflows I can use.

On Friday, November 22, 2013 4:57:41 PM UTC-5, Tor Norbye wrote:

 With the new gradle build system you shouldn't have to have different 
 projects for different versions (free, paid, etc.); you should be able to 
 set everything up in a single project, with separate resources and classes 
 (as necessary) for your variations.  This is now handled by the build 
 system in Android Studio directly (flavors); see 
 http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants.
  We're working on better UI support for this so you don't need to 
 configure it in Gradle config files.

 -- Tor



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Android Studio is driving me nuts

2013-11-22 Thread Brill Pappin
Just took a closer look at that documentation you sent.
Build variants is going to be a *huge* help to me, and one I look forward 
to getting into.


On Saturday, November 23, 2013 1:05:08 AM UTC-5, Brill Pappin wrote:

 That does sound like a pretty cool feature, a lot like Maven Modules.
 Although it might actually resolve the multi-lib project, it is not really 
 the same thing.




-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[android-developers] Re: ViewPager does not respect WRAP_CONTENT?

2013-11-22 Thread gjs
Hi,

Couldn't you just also add the linearlayout (with its textview) to the 
relative layout in (2) as you did in (1) ?

And specifically, add and remove the linear layout to the collection in 
your instantiate  destroy item methods instead of just the text view.

Regards

On Saturday, November 23, 2013 7:11:43 AM UTC+11, Ab wrote:

 I would like to create a ViewPager whose width wrap's to its contents, and 
 is centered horizontally in it's parent.  The first code snippet uses a 
 LinearLayout to create this effect, as shown in the first screenshot.  The 
 second code snippet is my attempt to do this with a ViewPager instead of 
 the LinearLayout, but the result is not the desired behavior, as shown in 
 the second screenshot.

 Any suggestions as to how I create the first effect, but using a ViewPager?

   @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
 super.onCreate(savedInstanceState);
 
 textView = new TextView(this);
 textView.setLayoutParams(new 
 ViewGroup.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 
 LinearLayout.LayoutParams.WRAP_CONTENT));
 textView.setText(abcabcabcabcabc);
 textView.setBackgroundColor(Color.YELLOW);
 
 LinearLayout llayout = new LinearLayout(this);
 llayout.setBackgroundColor(Color.BLUE);
 RelativeLayout.LayoutParams layoutParams = new 
 RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
 RelativeLayout.LayoutParams.MATCH_PARENT);
 layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
 llayout.setLayoutParams(layoutParams);
 llayout.addView(textView);
 
 layout = new RelativeLayout(this);
 layout.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
 ViewGroup.LayoutParams.MATCH_PARENT));
 layout.setBackgroundColor(Color.GREEN);
 layout.addView(llayout);
 
 setContentView(layout);
 }
 
 
 @Override
 protected void onCreate(Bundle savedInstanceState) 
 {
 super.onCreate(savedInstanceState);
 
 textView = new TextView(this);
 textView.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewPager.LayoutParams.WRAP_CONTENT, 
 ViewPager.LayoutParams.WRAP_CONTENT));
 textView.setText(abcabcabcabcabc);
 textView.setBackgroundColor(Color.YELLOW);
 
 ViewPager pager = new ViewPager(this);
 pager.setBackgroundColor(Color.BLUE);
 RelativeLayout.LayoutParams layoutParams = new 
 RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, 
 RelativeLayout.LayoutParams.FILL_PARENT);
 layoutParams.addRule(RelativeLayout.CENTER_HORIZONTAL);
 pager.setLayoutParams(layoutParams);
 pager.setAdapter(new ViewPagerAdapter());
 
 layout = new RelativeLayout(this);
 layout.setLayoutParams(new 
 ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 
 ViewGroup.LayoutParams.MATCH_PARENT));
 layout.setBackgroundColor(Color.GREEN);
 layout.addView(pager);
 
 setContentView(layout);
 }
 
 class ViewPagerAdapter extends PagerAdapter
 {
 @Override
 public int getCount() 
 {
 return 1;
 }
 
 public Object instantiateItem(ViewGroup collection, int 
 position) 
 {
 collection.addView(textView, 0);
 return textView;
 }
 
 @Override
 public void destroyItem(ViewGroup collection, int position, 
 Object view) 
 {
 collection.removeView((View) view);
 }
 
 @Override
 public boolean isViewFromObject(View view, Object object) 
 {
 return (view==object);
 }
 
 @Override
 public void finishUpdate(ViewGroup arg0) {}
 
 
 @Override
 public void restoreState(Parcelable arg0, ClassLoader arg1) {}
 
 @Override
 public Parcelable saveState() 
 {
 return null;
 }
 
 @Override
 public void startUpdate(ViewGroup arg0) {}
 }

 ![enter image description here][1]

 ![enter image description here][2]


   [1]: 
 http://i.stack.imgur.com/6Ajm7.pnghttp://www.google.com/url?q=http%3A%2F%2Fi.stack.imgur.com%2F6Ajm7.pngsa=Dsntz=1usg=AFQjCNHvdfuqP1sArG9Qk5ylvyI24qqx7A
   [2]: 
 http://i.stack.imgur.com/qWYQY.pnghttp://www.google.com/url?q=http%3A%2F%2Fi.stack.imgur.com%2FqWYQY.pngsa=Dsntz=1usg=AFQjCNHCgTlx4GxeVq7aMXc-Wk4aF21lWg


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

[android-developers] Re: Car dock mode in 4.3

2013-11-22 Thread gjs
Hi,

You mean it did launch your app when the device is placed in the car dock 
before 4.3, but after pressing Home in 4.3 the user no longer somehow later 
returns to your activity, running in car dock mode ?

Perhaps try explaining the old behaviour vs the new behaviour with 4.3 in a 
lot more detail. What happens with 4.4 ? What happens when the phone rang 
for example, whilst in car dock mode, did it return to your car mode 
activity ok after the call was completed ?

Regards



On Saturday, November 23, 2013 4:41:12 AM UTC+11, chris a. wrote:

 We created an app for enterprise customer that launches a car mode 
 activity when driving. Our customers bought android phones largely for this 
 reason... Now, car dock mode no longer launches our app when the home key 
 is pressed in 4.3. If this issue is not resolved, they may not buy new 
 android phones and our company may abandon Android as well.. 


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.