16,021,041 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by pyler (Top 11 by date)
pyler
14-Jun-15 2:36am
View
Thanks for trying.
pyler
13-Jun-15 23:03pm
View
It appears you haven't fully read my question.
pyler
13-Jun-15 22:10pm
View
I don't quite follow...
pyler
12-Jun-15 12:22pm
View
Are you trying to understand my question or trying to answer it?
pyler
2-Jun-15 23:14pm
View
Solved it, thanks!
pyler
2-Jun-15 0:22am
View
for some reason the debugger hangs whenever I run this project so I can't really findout what's going wrong with my code. Any other suggestions?
pyler
27-May-15 16:27pm
View
The code for FragmentOne class is the same for FragmentTwo and FragmentThree, the only difference between them are the class names.
Something strange that happens when I comment out this line only in FragmentOne.java
ivIcon.setImageDrawable(view.getResources().getDrawable(getArguments().getInt(IMAGE_RESOURCE_ID), view.getContext().getTheme()));
What happens is that the apps runs perfectly without any errors. The problem I have now is some icons don't show up in the layout when touched.
pyler
27-May-15 16:19pm
View
Deleted
But in my MainActivity I have a function that selects the right fragment based on the position of the chosen icon.
public void SelectItem(int position){
Fragment fragment = null;
Bundle args = new Bundle();
switch (position) {
case 0:
fragment = new FragmentOne();
args.putString(FragmentOne.ITEM_NAME,dataList.get(position).getItemName());
args.putInt(FragmentOne.IMAGE_RESOURCE_ID,dataList.get(position).getImgResID());
break;
.
.
.
}
}
So FragmentOne.IMAGE_RESOURCE_ID can't be an int unless you're proposing an entirely different way of doing the problem.
pyler
14-May-15 1:22am
View
Not to worry, I solved the problem and it does sound like I need to learn programming from the very beginning but I can assure you that I don't. I know what I know and what I need to know.
pyler
21-Nov-14 2:53am
View
Suppose I'm pushing eggs into the vector. Could you please provide an example to shed some more light on this?
pyler
21-Nov-14 2:14am
View
Yes I was.
So in the TRAY.cpp file, eggs are pushed into the eggs vector.
I have no problems serializing an object's attributes so long as they are ints or strings, but I was stuck when it came to data structures like vectors and arrays. I thought of making variables for each object in the vector but I didn't know how to go about it.
Show More