HTC Evo 4G View (Screenshot) invoking from code... - HTC Flyer, EVO View 4G

Hi to group...
I am a noob to this site so am forced to post this flyer-specific developer ? here into Q&A.
I am trying from inside some standard Android code to invoke the screenshot function on my HTC 4G View (flyer) if it is possible for a demo I am constructing.
I tried several 'hackish ways' sending keystroke events (PowerOff + Home) without joy... But what I really want is How I can/should locate specific features for this device in general. (Is this inside their custom kernel?, in a public API somewhere I can call, a special 'HTC Intent for Screenshots' ect.
I am happy to read docs/code elsewhere if someone points me in the proper direction I would really appreciate it.
Many thanks in advance. Cheers GH

Related

Default Messaging App Source Code

Hi guys,
I was wanting to look at the default sms app to see how it works and possibly look into modifying parts. I've googled high and low and still havent found the source, does anyone know how I would get it just for the sms app?
Any help is much appreciated.
Sorry, can't post links, but here is some source for you.
Code:
public void sendSMS(String phoneNumber, String message)
{
SmsManager sms = SmsManager.getDefault();
Pendingetent pi = Pendingetent.getActivity(this, 0, new Intent(this, SMS.class), 0);
sms.sendTextMessage(phoneNumber, null, message, pi, null);
}
Don't forget to set manifest permissions for "SEND_SMS" and "RECEIVE_SMS" if required.
Code:
<manifest>
...
<uses-permission android:name="android.permission.SEND_SMS">
</uses-permission>
...
</manifest>
Thanks, much appreciated. How come you are not able to post links? would it be possible to PM them to me? Thanks again.
http://android.git.kernel.org/?p=platform/packages/apps/Mms.git;a=summary
I had this exact same thought yesterday.
I was thinking that I could easily take the stock SMS app and modify it to include what I consider an annoyingly missing feature, marking a message or thread unread. How hard could it be? Just add a new item to a context menu and then some SQL that will mark the message unread.
Well, apparently it is kinda hard.
Here's what I did:
I got the source for the SMS app by typing this:
git clone git://android.git.kernel.org/platform/packages/apps/Mms.git
Then I went to Eclipse, created a new Android project and said "from existing source" and pointed it to this folder I'd just checked out of the repository.
FAIL.
Tons of red Xs in Eclipse. Tons of references it couldn't find. I started digging through the repo to see if I could find the things it wanted and started adding those to the project, but one thing just lead to another missing dependency and after adding half a dozen other apps I just gave up.
Maybe I need the entire framework or something? In that case, I have no idea how to set up the project and how to build just that app based on the stock app.
I know this can be done. People have branched other stock apps (the launcher, the email client, etc.) and released their own enhanced versions. But I just couldn't figure out how to get started -- I couldn't even build an UNMODIFIED version.
If anyone can point me in the right directions, that would be quite helpful.
Thanks!
Sorry for pushing a somewhat dated thread, but this topic is very interessting for me as well since all Messaging apps currently kind of suck and I really like the minimalistic approach of the default app but it lacks basic features.
Any new ideas?
A link to the best source I could find:
http://grepcode.com/file/repository...pps/4.0.3_r1/com/android/mms/MmsApp.java?av=f
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Moving to Q&A
okay thank you
Anyone knows where to get the source?
Any help would be greatly appreciated!
Found it!
https://github.com/android/platform_packages_apps_mms
edit: Weird problem. Lots of errors with missing classes/methods even though I can find those classes in online repos with the same API level (4.0.3). Importing those classes is not an option since a lot of new dependencies would be missing.
I know that the source is MMS for 4.0.4 but I find a lot of sources with the needed classes in the 4.0.3 framework. How is that possible?
edit2: Just found out that Google introduced their own Javadoc where they can hide experimental methods/classes for certain APIs but still use them in their stock apps. Now I only have to find a way to trick the system

[Q] Running VBA code within Android a possibility?

Before starting a new thread, I used the search function and looked through the "check these threads before starting a new one" listed threads but didn't find an answer. If this has already been addressed, my apoiogies.
My company uses Excel spreadsheets with custom Visual Basic macros that I have written when we test medical imaging equipment. I would love to use a Tablet for this but Dataviz states "that code type is not supported by handheld platforms, so Documents To Go cannot execute the VB code necessary to use those features. "
Is this an accurate statement? I don't know enough about Android yet to know whether it is correct or if this is perhaps outdated information. The statement was made in June of 2010.
Is Visual Basic totally imcompatible with Android or is there hope that custom macro enabled Excel spreadsheets may work in the semi-near future?
Thank you in advance for any information you give me.
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A

[Q] Wi-fi class question

Hello fellow developers nice to meet you!
I've started studying java + android fundamendals in order to create a couple apps i have in mind but i came across something i would like to ask you.
My application entails that some information will be transfered over wifi or bluetooth between two phones in close distance.
What i would like to ask you is this; will i be able to fill a couple TextViews and ImageViews with strings and images respectively?
I prefer using WiFi for the longer distance but is that feasible?
Can you give me a clue as to where i start? i dont need any code just some references..
Thanks in advance!

Newbie app development help.

Hello guys, this is my first post here in the forum and i'm looking for a very specific answer, hope you can help me.
So I had this idea for an app that could really optimize the way people work here @ my workplace, but the thing is: i know nothing about programming and development
The question is: how hard would it be/how long would it take for a complete newbie to develop this app? (description below).
It consists basically in a scheduler & task assignment app. It must be able to:
Register two kinds off app users: workers/schedulers (WS) and schedulers only (SO).
Create WS subgroups (something like tags or flags so tasks can be assigned to a specific subgroup of WS').
Allow WS to create their own daily schedule and share it with all schedulers.
Allow SO to have access to all WS' schedules and fill them remotely.
Allow SO to auto-assign tasks to the nearest availabe WS of an specific subgroup.
Allow both WS and SO to see wich tasks were assigned by each one.
This is the main idea, of course there are some minor changes and details that I need to add, but this is enough to get the main idea.
Waiting for an answer, thank you in advance.

Android App Development help please

Hello, I am looking Android App Development help please.
I would like to make an Android TV box app and was wondering if I can get some help creating one with the following requirements;
1) Looking for a Template, for starters, so I don't have to code one from scratch since I have no idea of what I'm doing
2) Configure the app to utilize a Username/Password which verifies the account on a server database that I control.
3) Hopefully it will be easy to include a link within the code that reaches out to an XML file on my server or whatever where I have a list of Video Streams/Feeds that the app reads and you can select what video you want to play.
Thank you
Hi I'm not an android coder but a c# coder in terms of a template project, something like this? https://github.com/hitherejoe/AndroidTvBoilerplate
I just searched android TV boilerplate (a boilerplate is template). Hope it helped.

Categories

Resources