Questions tagged [commonsware]

**DEPRECATED**: Questions regarding CommonsWare's open source projects

To better comply with Stack Overflow tagging standards, this tag is deprecated. Please use one of these other tags:

59 questions
38
votes
4 answers

Why it is not possible to use ViewPager within a Fragment? It actually is

There are information that it is impossible to use ViewPager within a Fragment in many sources like "The Busy Coders Guide for Android Developers" by Mark Murphy, or posts like this on SO. I'm confused because I don't have such a problem and I…
Eugene
  • 59,186
  • 91
  • 226
  • 333
15
votes
2 answers

XML attributes from merge layout to RelativeLayout via inflate

According to this CommonsWare example I managed to get my RelativeLayout subclass to be merged with my layout described in a xml layout with merge root. My only concern is that I cannot describe my RelativeLayout parameters in xml. My xml…
13
votes
4 answers

Develop Alarm Application

I'd like develop an Alarm Application. The application should work like this: launch it the activity show me the time I can set the alarm I can close the application when the alarm time comes , it starts an activity (even if the device is…
vittochan
  • 635
  • 1
  • 7
  • 18
9
votes
3 answers

how to keep an Intent service running

I have two examples of Intentservice. One is the Download example in the commonsware book. the other is at http://www.vogella.com/articles/AndroidServices/article.html#servicecommunication_handler. Both of these examples show the service executing…
Dean Blakely
  • 3,535
  • 11
  • 51
  • 83
8
votes
1 answer

Wake Service directly from AlarmManager

In the https://github.com/commonsguy/cwac-wakeful demo, the OnAlarmReceiver (a BroadcastReceiver) onReceive() method is called in response to an Alarm. The onReceive() method starts the Service. There are two Intents used, one received by the…
alexbirkett
  • 2,604
  • 2
  • 26
  • 30
8
votes
1 answer

Unable to pause activity, content view not yet created

I grabbed the EU4You sample project demonstrated in The Busy Coder's Guide to Android Development 4.2 (courtesy of Mark Murphy aka commonsware here on StackOverflow). It may be easier to follow along with this sample project, but I will try to post…
Jason Down
  • 21,731
  • 12
  • 83
  • 117
8
votes
3 answers

What's the difference between passing this vs. ClassName.this from an event handler when passed to Intent constructor?

In the earlier Android Programming Tutorial, page 192, we see an implementation of LunchList#onOptionsItemSelected. Within this implementation we see two Intents passed to startActivity: one whose constructor is passed LunchList.this, the other…
ybakos
  • 8,152
  • 7
  • 46
  • 74
7
votes
2 answers

Not allowed to start service Intent without permission - sender does not get permissions

I'm working with Mark Murphy's excellent Commonsware books - but it's a lot to digest. I built the 'FakePlayer' app (pretends to be an mp3 player). It contains a service. As a learning experience I tried to write a trivial app (has only a button)…
Art Swri
  • 2,799
  • 3
  • 25
  • 36
7
votes
4 answers

send broadcast with combination of localbroadcastmanager sendorderedbroadcast

I'm wanting to implement what CommonsWare describes on this blog post: http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html. The post makes sense, and I was able to browse the example source here:…
joshkendrick
  • 3,497
  • 8
  • 38
  • 52
7
votes
1 answer

Why do recipes promote overriding getItemViewType and getViewTypeCount when it doesn't seem necessary?

I've been working through the Commonsware Android Programming Tutorials and in tutorial 5, extra credit 2, the challenge is to use multiple layouts for displaying rows in a ListView depending on the "type name" of the object (a Restaurant's "type"…
ybakos
  • 8,152
  • 7
  • 46
  • 74
6
votes
2 answers

Android Reduce Size Of Camera Picture

UPDATE maybe changing the Bitmap size in the new Activity may fix the problem String myRef = this.getIntent().getStringExtra("filepath"); File imgFile = new File(myRef); Log.e("BeatEmUp", myRef); if(imgFile.exists()){ Bitmap…
Matt
  • 1,747
  • 8
  • 33
  • 58
6
votes
1 answer

Standard intent URI broken?

I'm having problems with intent URIs on a particular device, so I tried the CommonsWare URLHandler sample as suggested here: Launching my app using the intent URI, and the intent URI hyperlink on its sample page also fails to invoke the application.…
Simon
  • 453
  • 5
  • 14
3
votes
2 answers

Image saved with wrong orientation

I am using this code: https://github.com/commonsguy/cw-advandroid/blob/master/Camera/Picture/src/com/commonsware/android/picture/PictureDemo.java where in Manifest, Activity Orientation is set to Landscape. So, its like allowing user to take picture…
Archie.bpgc
  • 23,812
  • 38
  • 150
  • 226
3
votes
1 answer

autolink not working on HTC - HtcLinkifyDispatcher

I am using android:autoLink set to web on a TextView in my Android app to enable clickable links. But if I run this on my HTC Desire S upgraded to ICS, when I tap on one of the links I get the following…
2
votes
2 answers

How can I wake my android application at certain regular time intervals?

My intention is to make an application that will track the movement of my android phone for every few minutes and send it to my server. I have read a lot online on how to do it with a service, AlarmManager and Partial_WakeLock. I have also gone…
Sap
  • 168
  • 1
  • 16
1
2 3 4